Basically putting all the translation stuff together before I refactor things to use it.

This commit is contained in:
2025-05-25 12:53:34 -05:00
parent 1e2d971643
commit f5cb84e0c9
31 changed files with 254 additions and 327 deletions

View File

@@ -9,7 +9,6 @@ class_name QuestMenu extends Panel
var currentQuestKey
var currentQuestObjective
func _ready() -> void:
hide()
@@ -43,11 +42,11 @@ func setQuest(questKey = null):
var quest = QUEST.quests[questKey];
questList.select(questKey)
questName.text = quest.questName
questName.text = quest.title
questObjectiveList.clear()
questObjectiveList.deselect_all()
for objective in quest.objectives:
questObjectiveList.add_item(objective.objectiveName)
questObjectiveList.add_item(objective.title)
func setQuestObjective(objective = null):
@@ -63,7 +62,7 @@ func setQuestObjective(objective = null):
var questObjective = quest.objectives[objective]
questObjectiveList.select(objective)
questObjectiveInfo.text = questObjective.objectiveName + "\n"
questObjectiveInfo.text = questObjective.title + "\n"
func open(questKey = null) -> void:
@@ -85,7 +84,7 @@ func _updateQuestList():
questList.deselect_all()
for questKey in QUEST.quests:
var q = QUEST.quests[questKey]
var n = q.questName;
var n = q.title;
if q.isCompleted():
n += " (Complete)"
elif q.isStarted():