1 #include "dialog_hudpanel_chat.qh"
2 #ifndef DIALOG_HUDPANEL_CHAT_H
3 #define DIALOG_HUDPANEL_CHAT_H
4 #include "rootdialog.qc"
5 CLASS(XonoticHUDChatDialog, XonoticRootDialog)
6 METHOD(XonoticHUDChatDialog, fill, void(entity));
7 ATTRIB(XonoticHUDChatDialog, title, string, _("Chat Panel"))
8 ATTRIB(XonoticHUDChatDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
9 ATTRIB(XonoticHUDChatDialog, intendedWidth, float, 0.4)
10 ATTRIB(XonoticHUDChatDialog, rows, float, 15)
11 ATTRIB(XonoticHUDChatDialog, columns, float, 4)
12 ATTRIB(XonoticHUDChatDialog, name, string, "HUDchat")
13 ATTRIB(XonoticHUDChatDialog, requiresConnection, float, true)
14 ENDCLASS(XonoticHUDChatDialog)
18 void XonoticHUDChatDialog_fill(entity me)
21 string panelname = "chat";
23 DIALOG_HUDPANEL_COMMON();
26 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, _("Chat entries:")));
29 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Chat size:")));
30 me.TD(me, 1, 2.6, e = makeXonoticSlider(6, 20, 1, "con_chatsize"));
33 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Chat lifetime:")));
34 me.TD(me, 1, 2.6, e = makeXonoticSlider(5, 60, 5, "con_chattime"));
37 me.TD(me, 1, 3.8, e = makeXonoticCheckBox(0, "con_chatsound", _("Chat beep sound")));