diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-21 00:58:49 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-21 00:58:49 +1000 |
commit | 4b0bc220e4da1173f742a4973939b139bef562db (patch) | |
tree | 0ff66d5957575fa814fc10b8cd93e3dd378f45dc /source/frontend/StarQuestInterface.cpp | |
parent | 607be749451aa40e3619e7ceab0927d1fcec8233 (diff) |
Support for changing the game's timescale
Context-specific (like per-world) timescales can also be added later
Diffstat (limited to 'source/frontend/StarQuestInterface.cpp')
-rw-r--r-- | source/frontend/StarQuestInterface.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/frontend/StarQuestInterface.cpp b/source/frontend/StarQuestInterface.cpp index 324cbd8..d9f0b1b 100644 --- a/source/frontend/StarQuestInterface.cpp +++ b/source/frontend/StarQuestInterface.cpp @@ -93,12 +93,12 @@ void QuestLogInterface::pollDialog(PaneManager* paneManager) { void QuestLogInterface::displayed() { Pane::displayed(); - tick(); + tick(0); fetchData(); } -void QuestLogInterface::tick() { - Pane::tick(); +void QuestLogInterface::tick(float dt) { + Pane::tick(dt); auto selected = getSelected(); if (selected && m_manager->hasQuest(selected->data().toString())) { auto quest = m_manager->getQuest(selected->data().toString()); @@ -284,7 +284,7 @@ void QuestLogInterface::showQuests(List<QuestPtr> quests) { } auto verticalLayout = fetchChild<VerticalLayout>("scrollArea.verticalLayout"); - verticalLayout->update(); + verticalLayout->update(0); } QuestPane::QuestPane(QuestPtr const& quest, PlayerPtr player) : Pane(), m_quest(quest), m_player(move(player)) {} |