1#include "dialog_hudpanel_chat.qh" 2 3#include "textlabel.qh" 4#include "checkbox.qh" 5#include "slider.qh" 6 7void XonoticHUDChatDialog_fill(entity me) 8{ 9 entity e; 10 string panelname = "chat"; 11 12 DIALOG_HUDPANEL_COMMON(); 13 14 me.TR(me); 15 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, _("Chat entries:"))); 16 me.TR(me); 17 me.TDempty(me, 0.2); 18 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Chat size:"))); 19 me.TD(me, 1, 2.6, e = makeXonoticSlider(6, 20, 1, "con_chatsize")); 20 me.TR(me); 21 me.TDempty(me, 0.2); 22 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Chat lifetime:"))); 23 me.TD(me, 1, 2.6, e = makeXonoticSlider(5, 60, 5, "con_chattime")); 24 me.TR(me); 25 me.TDempty(me, 0.2); 26 me.TD(me, 1, 3.8, e = makeXonoticCheckBox(0, "con_chatsound", _("Chat beep sound"))); 27} 28