2 CLASS(XonoticHUDChatDialog) EXTENDS(XonoticRootDialog)
3 METHOD(XonoticHUDChatDialog, fill, void(entity))
4 ATTRIB(XonoticHUDChatDialog, title, string, _("Chat Panel"))
5 ATTRIB(XonoticHUDChatDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
6 ATTRIB(XonoticHUDChatDialog, intendedWidth, float, 0.4)
7 ATTRIB(XonoticHUDChatDialog, rows, float, 15)
8 ATTRIB(XonoticHUDChatDialog, columns, float, 4)
9 ATTRIB(XonoticHUDChatDialog, name, string, "HUDchat")
10 ENDCLASS(XonoticHUDChatDialog)
14 void XonoticHUDChatDialog_fill(entity me)
17 string panelname = "chat";
19 DIALOG_HUDPANEL_COMMON();
22 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, _("Chat entries:")));
25 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Chat size:")));
26 me.TD(me, 1, 2.6, e = makeXonoticSlider(6, 20, 1, "con_chatsize"));
29 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Chat lifetime:")));
30 me.TD(me, 1, 2.6, e = makeXonoticSlider(5, 60, 5, "con_chattime"));
33 me.TD(me, 1, 3.8, e = makeXonoticCheckBox(0, "con_chatsound", _("Chat beep sound")));