Fixed dialogue options

master
E. Almqvist 5 years ago
parent 5fe5be4a5f
commit 71c17ed385
  1. 3
      gamemode/engine/derma/menus/menu_dialogue.lua
  2. 5
      gamemode/settings/sh_dialogues.lua

@ -100,6 +100,9 @@ function menu.open( dt )
f.dialogue.cont.options[i] = log.createOptionButton( f.dialogue.contScroll, i, option.text, btnFont ) f.dialogue.cont.options[i] = log.createOptionButton( f.dialogue.contScroll, i, option.text, btnFont )
f.dialogue.cont.options[i]:UpdateSize(padding_s) f.dialogue.cont.options[i]:UpdateSize(padding_s)
end end
-- add the goodbye button
f.dialogue.cont.options.bye = log.createOptionButton( f.dialogue.contScroll, #f.dialogue.cont.options + 1, dialogue.bye, btnFont )
f.dialogue.cont.options.bye:UpdateSize(padding_s)
f.dialogue.cont:SetPos( f.w/2 - f.dialogue.cont.w/2, f.h - f.dialogue.cont.h - padding ) f.dialogue.cont:SetPos( f.w/2 - f.dialogue.cont.w/2, f.h - f.dialogue.cont.h - padding )
f.dialogue.cont.x, f.dialogue.cont.y = f.dialogue.cont:GetPos() f.dialogue.cont.x, f.dialogue.cont.y = f.dialogue.cont:GetPos()

@ -18,11 +18,6 @@ Quantum.Dialogue.Create( "npc_generalvendor" )
print("You pressed this response!") print("You pressed this response!")
end end
}, 1 ) }, 1 )
Quantum.Dialogue.AddResponse( "npc_generalvendor", "init", {
text = "To take all of your money! Aaaaa aaaa a aa a a a aa aa a aa a a a aa aa a a a a aaaaaaaaaaaaaaaaa a a a a aa a a a a aa a aa a aa a a a aaaa a a aa a aa aa aa!"
}, 2 )
Quantum.Dialogue.AddQuestion( "npc_generalvendor", "sellorbuy", "What do you have in mind?" ) Quantum.Dialogue.AddQuestion( "npc_generalvendor", "sellorbuy", "What do you have in mind?" )

Loading…
Cancel
Save