X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudpanel_chat.c;h=ba3f0d0090ec31755414b5991dbc0ed75f808550;hb=66f4c044bcbde335535342e2d5b0e42e2c5eabf5;hp=cd9f3854b903f60257b6668424fe09615e890d1f;hpb=16c35f41a25bb2edf3d4b7d664049d2923000f96;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_chat.c b/qcsrc/menu/xonotic/dialog_hudpanel_chat.c index cd9f3854b..ba3f0d009 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_chat.c +++ b/qcsrc/menu/xonotic/dialog_hudpanel_chat.c @@ -1,7 +1,7 @@ #ifdef INTERFACE CLASS(XonoticHUDChatDialog) EXTENDS(XonoticRootDialog) METHOD(XonoticHUDChatDialog, fill, void(entity)) - ATTRIB(XonoticHUDChatDialog, title, string, "Chat Panel Setup") + ATTRIB(XonoticHUDChatDialog, title, string, _("Chat Panel")) ATTRIB(XonoticHUDChatDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT) ATTRIB(XonoticHUDChatDialog, intendedWidth, float, 0.4) ATTRIB(XonoticHUDChatDialog, rows, float, 15) @@ -14,25 +14,22 @@ ENDCLASS(XonoticHUDChatDialog) void XonoticHUDChatDialog_fill(entity me) { entity e; + string panelname = "chat"; + + DIALOG_HUDPANEL_COMMON(); + + me.TR(me); + me.TD(me, 1, 2, e = makeXonoticTextLabel(0, _("Chat entries:"))); + me.TR(me); + me.TDempty(me, 0.2); + me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Chat size:"))); + me.TD(me, 1, 2.6, e = makeXonoticSlider(6, 20, 1, "con_chatsize")); me.TR(me); - me.TR(me); - me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_chat", "On/Off")); - me.TR(me); - me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Team Color:")); - me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_chat_bg_color_team")); - me.TR(me); - me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Background Alpha:")); - me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_chat_bg_alpha")); + me.TDempty(me, 0.2); + me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Chat lifetime:"))); + me.TD(me, 1, 2.6, e = makeXonoticSlider(5, 60, 5, "con_chattime")); me.TR(me); - me.TR(me); - me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Font size:")); - me.TD(me, 1, 2, e = makeXonoticSlider(6, 16, 1, "con_chatsize")); - me.TR(me); - me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Message lifetime:")); - me.TD(me, 1, 2, e = makeXonoticSlider(16, 40, 2, "con_chattime")); - me.TR(me); - me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "con_chatsound", "Message sound beep")); - //me.gotoRC(me, me.rows - 1, 0); - //me.TD(me, 1, me.columns, e = makeXonoticCommandButton("Exit Setup", '0 0 0', "_hud_configure 0", 1)); + me.TDempty(me, 0.2); + me.TD(me, 1, 3.8, e = makeXonoticCheckBox(0, "con_chatsound", _("Chat beep sound"))); } #endif