![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
This script goes on the upgrade panel in the details panel of the ability inventory and has functions for handling ability upgrades.
Documentation updated 2/7/2025
Public Member Functions | |
void | OnUpgradeButtonPressed () |
If the player has enough resources and the ability can be upgraded, open a confirmation box asking to upgrade the ability. | |
void | UpgradeSelectedAbility () |
Upgrades whichever ability is open in the details panel. DOES NOT CHECK FOR VALID RESOURCES! | |
void | UpdateCostTextboxes () |
Update the text beside the upgrade button to match the cost for the next ability upgrade. | |
Private Member Functions | |
void | Awake () |
Set references. | |
Private Attributes | |
DataManager | dataManager |
Reference to the data manager. | |
DetailsPanel | detailsPanel |
Reference to details panel. | |
ConfirmationPanel | confirmationPanel |
Reference to confirmation panel. | |
AbilityInventory | abilityInventory |
Reference to Scriptables_AbilityInventory. | |
AbilityInventoryUI | abilityInventoryUI |
Reference to the ability inventory UI. | |
GameObject | warningMessage |
Reference to warning message popup when the player attempts an invalid upgrade. | |
TMP_Text | soulCostText |
TMP_Text | godsoulCostText |
|
private |
Set references.
void UpgradePanel.OnUpgradeButtonPressed | ( | ) |
If the player has enough resources and the ability can be upgraded, open a confirmation box asking to upgrade the ability.
void UpgradePanel.UpdateCostTextboxes | ( | ) |
Update the text beside the upgrade button to match the cost for the next ability upgrade.
void UpgradePanel.UpgradeSelectedAbility | ( | ) |
Upgrades whichever ability is open in the details panel. DOES NOT CHECK FOR VALID RESOURCES!
|
private |
Reference to Scriptables_AbilityInventory.
|
private |
Reference to the ability inventory UI.
|
private |
Reference to confirmation panel.
|
private |
Reference to the data manager.
|
private |
Reference to details panel.
|
private |
|
private |
|
private |
Reference to warning message popup when the player attempts an invalid upgrade.