X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudpanel_chat.qc;h=1ffa41f68c802d9c1cdb96995f2aa50619db762e;hb=2c2ae11a123c5faad5807508e32fcb33c8d2bde7;hp=4c18f206653265318b5fa2d37a20f2be29650f7c;hpb=8d10ea819c27736320d03e75134af341f8127199;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_chat.qc b/qcsrc/menu/xonotic/dialog_hudpanel_chat.qc index 4c18f2066..1ffa41f68 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_chat.qc +++ b/qcsrc/menu/xonotic/dialog_hudpanel_chat.qc @@ -1,19 +1,9 @@ -#ifndef DIALOG_HUDPANEL_CHAT_H -#define DIALOG_HUDPANEL_CHAT_H -#include "rootdialog.qc" -CLASS(XonoticHUDChatDialog, XonoticRootDialog) - METHOD(XonoticHUDChatDialog, fill, void(entity)); - ATTRIB(XonoticHUDChatDialog, title, string, _("Chat Panel")) - ATTRIB(XonoticHUDChatDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT) - ATTRIB(XonoticHUDChatDialog, intendedWidth, float, 0.4) - ATTRIB(XonoticHUDChatDialog, rows, float, 15) - ATTRIB(XonoticHUDChatDialog, columns, float, 4) - ATTRIB(XonoticHUDChatDialog, name, string, "HUDchat") - ATTRIB(XonoticHUDChatDialog, requiresConnection, float, true) -ENDCLASS(XonoticHUDChatDialog) -#endif +#include "dialog_hudpanel_chat.qh" + +#include "textlabel.qh" +#include "checkbox.qh" +#include "slider.qh" -#ifdef IMPLEMENTATION void XonoticHUDChatDialog_fill(entity me) { entity e; @@ -35,4 +25,3 @@ void XonoticHUDChatDialog_fill(entity me) me.TDempty(me, 0.2); me.TD(me, 1, 3.8, e = makeXonoticCheckBox(0, "con_chatsound", _("Chat beep sound"))); } -#endif