From d9eb30f75312c4258d9fddb6ed3420d12e39a5fe Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sun, 14 Jun 2020 21:54:26 +0200 Subject: [PATCH] Fixed bugs --- gamemode/engine/derma/lib/cl_menu_dialogueBox.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gamemode/engine/derma/lib/cl_menu_dialogueBox.lua b/gamemode/engine/derma/lib/cl_menu_dialogueBox.lua index 99dbab1..8a7b0c2 100644 --- a/gamemode/engine/derma/lib/cl_menu_dialogueBox.lua +++ b/gamemode/engine/derma/lib/cl_menu_dialogueBox.lua @@ -275,7 +275,7 @@ function log.createDialogueInterface(f, dialogue) setDialogueOptions( f.dialogue, dialogue, "init" ) -- add the goodbye button - f.dialogue.cont.options.bye = log.createOptionButton( f.dialogue, #f.dialogue.cont.options + 1, dialogue.bye, btnFont ) + f.dialogue.cont.options.bye = log.createOptionButton( f.dialogue, #f.dialogue.cont.options + 1, {text = dialogue.bye}, btnFont ) f.dialogue.cont.options.bye:UpdateSize(padding_s) -- Update the containers pos @@ -302,11 +302,10 @@ function log.updateDialogueInterface(i, qID) end -- update the responses - genDialogueOptions( i.cont, i.contScroll, i.log, qID ) + setDialogueOptions( i, i.log, qID ) -- update the question i.q:UpdateQ(qlog.question) - end return log