From 8b1fc7063b387542803c6bc214ccf8acb32870bd Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Sun, 19 May 2024 16:46:27 +0800 Subject: * rename --- Thronefall_1_0/GameCode/QuestEntry.cs | 87 ----------------------------------- 1 file changed, 87 deletions(-) delete mode 100644 Thronefall_1_0/GameCode/QuestEntry.cs (limited to 'Thronefall_1_0/GameCode/QuestEntry.cs') diff --git a/Thronefall_1_0/GameCode/QuestEntry.cs b/Thronefall_1_0/GameCode/QuestEntry.cs deleted file mode 100644 index 625cbab..0000000 --- a/Thronefall_1_0/GameCode/QuestEntry.cs +++ /dev/null @@ -1,87 +0,0 @@ -using I2.Loc; -using TMPro; -using UnityEngine; - -public class QuestEntry : MonoBehaviour -{ - public TextMeshProUGUI questText; - - public TextMeshProUGUI numericalCondition; - - public GameObject equippableConditionsParent; - - public QuestConditionEquippable equippableConditionPrefab; - - public CanvasGroup canvasGroup; - - public void Init(Quest data, int index, bool completed) - { - string text = ""; - switch (index) - { - case 0: - text += "A."; - break; - case 1: - text += "B."; - break; - case 2: - text += "C."; - break; - case 3: - text += "D."; - break; - case 4: - text += "E."; - break; - case 5: - text += "F."; - break; - case 6: - text += "G."; - break; - case 7: - text += "H."; - break; - } - text += " "; - text += ""; - switch (data.questType) - { - case Quest.EType.AchieveScoreOf: - equippableConditionsParent.SetActive(value: false); - numericalCondition.gameObject.SetActive(value: true); - numericalCondition.text = data.achieveScoreOf.ToString(); - text += LocalizationManager.GetTranslation("Quests/Achieve Score"); - break; - case Quest.EType.BeatTheLevel: - equippableConditionsParent.SetActive(value: false); - numericalCondition.gameObject.SetActive(value: false); - text += LocalizationManager.GetTranslation("Quests/Achieve Victory"); - break; - case Quest.EType.BeatTheLevelWith: - equippableConditionsParent.SetActive(value: true); - numericalCondition.gameObject.SetActive(value: false); - text += LocalizationManager.GetTranslation("Quests/Achieve Victory With"); - foreach (Equippable item in data.beatTheLevelWith) - { - Object.Instantiate(equippableConditionPrefab, equippableConditionsParent.transform).SetData(item); - } - break; - case Quest.EType.BeatTheLevelWithout: - equippableConditionsParent.SetActive(value: true); - numericalCondition.gameObject.SetActive(value: false); - text += LocalizationManager.GetTranslation("Quests/Achieve Victory Without"); - foreach (Equippable item2 in data.beatTheLevelWithout) - { - Object.Instantiate(equippableConditionPrefab, equippableConditionsParent.transform).SetData(item2); - } - break; - } - questText.text = text; - if (completed) - { - canvasGroup.alpha = 0.1f; - } - } -} -- cgit v1.1-26-g67d0