Basically putting all the translation stuff together before I refactor things to use it.
This commit is contained in:
@@ -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():
|
||||
|
Reference in New Issue
Block a user