Eye of the Nile Docs
Everything you need to know to get started!
Loading...
Searching...
No Matches
UpgradePanel Class Reference

Detailed Description

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

Author
Alexander Art

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
 

Member Function Documentation

◆ Awake()

void UpgradePanel.Awake ( )
private

Set references.

◆ OnUpgradeButtonPressed()

void UpgradePanel.OnUpgradeButtonPressed ( )

If the player has enough resources and the ability can be upgraded, open a confirmation box asking to upgrade the ability.

◆ UpdateCostTextboxes()

void UpgradePanel.UpdateCostTextboxes ( )

Update the text beside the upgrade button to match the cost for the next ability upgrade.

◆ UpgradeSelectedAbility()

void UpgradePanel.UpgradeSelectedAbility ( )

Upgrades whichever ability is open in the details panel. DOES NOT CHECK FOR VALID RESOURCES!

Member Data Documentation

◆ abilityInventory

AbilityInventory UpgradePanel.abilityInventory
private

Reference to Scriptables_AbilityInventory.

◆ abilityInventoryUI

AbilityInventoryUI UpgradePanel.abilityInventoryUI
private

Reference to the ability inventory UI.

◆ confirmationPanel

ConfirmationPanel UpgradePanel.confirmationPanel
private

Reference to confirmation panel.

◆ dataManager

DataManager UpgradePanel.dataManager
private

Reference to the data manager.

◆ detailsPanel

DetailsPanel UpgradePanel.detailsPanel
private

Reference to details panel.

◆ godsoulCostText

TMP_Text UpgradePanel.godsoulCostText
private

◆ soulCostText

TMP_Text UpgradePanel.soulCostText
private

◆ warningMessage

GameObject UpgradePanel.warningMessage
private

Reference to warning message popup when the player attempts an invalid upgrade.


The documentation for this class was generated from the following file: