master
E. Almqvist 5 years ago
parent 36fa89bfb5
commit d9eb30f753
  1. 5
      gamemode/engine/derma/lib/cl_menu_dialogueBox.lua

@ -275,7 +275,7 @@ function log.createDialogueInterface(f, dialogue)
setDialogueOptions( f.dialogue, dialogue, "init" ) setDialogueOptions( f.dialogue, dialogue, "init" )
-- add the goodbye button -- 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) f.dialogue.cont.options.bye:UpdateSize(padding_s)
-- Update the containers pos -- Update the containers pos
@ -302,11 +302,10 @@ function log.updateDialogueInterface(i, qID)
end end
-- update the responses -- update the responses
genDialogueOptions( i.cont, i.contScroll, i.log, qID ) setDialogueOptions( i, i.log, qID )
-- update the question -- update the question
i.q:UpdateQ(qlog.question) i.q:UpdateQ(qlog.question)
end end
return log return log

Loading…
Cancel
Save