public void SetValues(GUI_SpellBook bookGUI, SpellBookEntry entry)
        {
            this.bookGUI = bookGUI;
            this.entry   = entry;

            costLabel.SetValueServer($"Cost: {entry.Cost}");
            descriptionLabel.SetValueServer(entry.Description);

            if (entry is SpellBookSpell spellEntry)
            {
                SetSpellValues(spellEntry);
            }
            else if (entry is SpellBookArtifact artifactEntry)
            {
                SetArtifactValues(artifactEntry);
            }

            // Enable or disable button interactivity based on affordability.
            button.SetValueServer(entry.Cost > bookGUI.Points ? "false" : "true");
        }
Esempio n. 2
0
 void ServerDisableButtonInteraction(GUI_ExoFabButton button)
 {
     button.SetValueServer("false");
 }
Esempio n. 3
0
 void ServerEnableButtonInteraction(GUI_ExoFabButton button)
 {
     button.SetValueServer("true");
 }