Make R act as the refresh button in the icon marketplace download menu
This commit is contained in:
@@ -22,7 +22,7 @@ public class IconMarketplaceDownloadIcon : MonoBehaviour
|
||||
private string statusMessage;
|
||||
private Coroutine statusRoutine;
|
||||
public AudioSource iconPurchaseSound;
|
||||
[SerializeField] private Button refreshButton;
|
||||
[SerializeField] internal Button refreshButton;
|
||||
[SerializeField] private Button optionsButton;
|
||||
[SerializeField] internal GameObject optionsPanel;
|
||||
[SerializeField] internal Button optionsPanelSubmitButton;
|
||||
@@ -120,7 +120,7 @@ public class IconMarketplaceDownloadIcon : MonoBehaviour
|
||||
balanceText.text = Tools.FormatWithCommas(BazookaManager.Instance.GetCustomBirdIconData().Balance);
|
||||
}
|
||||
|
||||
async void GetIcons()
|
||||
internal async void GetIcons()
|
||||
{
|
||||
refreshButton.interactable = false;
|
||||
optionsButton.interactable = false;
|
||||
|
||||
@@ -81,5 +81,6 @@ public class IconMarketplaceManager : MonoBehaviour
|
||||
else if (downloadPanel.activeSelf || uploadPanel.activeSelf) SwitchPanel(0);
|
||||
else await SceneManager.LoadSceneAsync("MainMenu");
|
||||
}
|
||||
else if (Keyboard.current.rKey.wasPressedThisFrame && downloadPanel.activeSelf && downloadPanelScript.refreshButton.interactable) downloadPanelScript.GetIcons();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user