summaryrefslogtreecommitdiff
path: root/Thronefall_1_0/GameCode/ChoiceUI.cs
diff options
context:
space:
mode:
authorchai <215380520@qq.com>2024-05-19 16:46:27 +0800
committerchai <215380520@qq.com>2024-05-19 16:46:27 +0800
commit8b1fc7063b387542803c6bc214ccf8acb32870bd (patch)
treed310eb99872c8215f1c1f67731ec21f0915cd778 /Thronefall_1_0/GameCode/ChoiceUI.cs
parent8e13e7e2874adc8982e16d1d2ed2e28d7480b45f (diff)
* rename
Diffstat (limited to 'Thronefall_1_0/GameCode/ChoiceUI.cs')
-rw-r--r--Thronefall_1_0/GameCode/ChoiceUI.cs48
1 files changed, 0 insertions, 48 deletions
diff --git a/Thronefall_1_0/GameCode/ChoiceUI.cs b/Thronefall_1_0/GameCode/ChoiceUI.cs
deleted file mode 100644
index 62415e2..0000000
--- a/Thronefall_1_0/GameCode/ChoiceUI.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-using TMPro;
-using UnityEngine;
-using UnityEngine.UI;
-
-public class ChoiceUI : MonoBehaviour
-{
- public Choice choice;
-
- public TMP_Text title;
-
- public TMP_Text description;
-
- public GameObject selected;
-
- public Image icon;
-
- public GameObject unlocked;
-
- public GameObject locked;
-
- private bool isunlocked;
-
- public bool IsUnlocked => isunlocked;
-
- public void SetChoice(Choice _choice)
- {
- if (!_choice.requiresUnlocked)
- {
- isunlocked = true;
- }
- else
- {
- isunlocked = PerkManager.instance.UnlockedEquippables.Contains(_choice.requiresUnlocked);
- }
- unlocked.SetActive(isunlocked);
- locked.SetActive(!isunlocked);
- choice = _choice;
- title.text = _choice.name;
- description.text = _choice.tooltip;
- icon.sprite = _choice.icon;
- SetHighlighted(_highlighted: false);
- }
-
- public void SetHighlighted(bool _highlighted)
- {
- selected.SetActive(_highlighted);
- }
-}