X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudsetup_exit.qc;h=cf65049ea580713aaad277ae9c4a41325ea269ee;hb=54c73db251372d28956d780656c4a0a78a2e54ca;hp=63c5e42ec0164ef7b66d556682aff28dbb79443e;hpb=1f6bb8abe6e65fadd5b1a9e73de2f124f738f5db;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_hudsetup_exit.qc b/qcsrc/menu/xonotic/dialog_hudsetup_exit.qc index 63c5e42ec..cf65049ea 100644 --- a/qcsrc/menu/xonotic/dialog_hudsetup_exit.qc +++ b/qcsrc/menu/xonotic/dialog_hudsetup_exit.qc @@ -1,20 +1,14 @@ -#ifndef DIALOG_HUDSETUP_EXIT_H -#define DIALOG_HUDSETUP_EXIT_H -#include "rootdialog.qc" -CLASS(XonoticHUDExitDialog, XonoticRootDialog) - METHOD(XonoticHUDExitDialog, fill, void(entity)); - ATTRIB(XonoticHUDExitDialog, title, string, _("Panel HUD Setup")) - ATTRIB(XonoticHUDExitDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT) - ATTRIB(XonoticHUDExitDialog, intendedWidth, float, 0.8) - ATTRIB(XonoticHUDExitDialog, rows, float, 18) - ATTRIB(XonoticHUDExitDialog, columns, float, 8.2) - ATTRIB(XonoticHUDExitDialog, name, string, "HUDExit") - ATTRIB(XonoticHUDExitDialog, requiresConnection, float, true) -ENDCLASS(XonoticHUDExitDialog) +#include "dialog_hudsetup_exit.qh" -#endif +#include "textlabel.qh" +#include "button.qh" +#include "textslider.qh" +#include "inputbox.qh" +#include "hudskinlist.qh" +#include "colorpicker_string.qh" +#include "checkbox.qh" +#include "commandbutton.qh" -#ifdef IMPLEMENTATION void XonoticHUDExitDialog_fill(entity me) { entity e; @@ -40,10 +34,13 @@ void XonoticHUDExitDialog_fill(entity me) e.onClick = SetHUDSkin_Click; e.onClickEntity = hudskinlist; me.gotoRC(me, me.rows - 2.5, 0); - me.TDempty(me, 0.75); - me.TD(me, 1, 2.5, e = makeXonoticButton(_("Save current skin"), '0 0 0')); + me.TD(me, 1, 2, e = makeXonoticButton_T(_("Save current skin"), '0 0 0', + "Note: HUD skins are saved in data/data/ directory and can be manually renamed/deleted from there")); e.onClick = SaveHUDSkin_Click; e.onClickEntity = hudskinlist; + me.TD(me, 1, 2, e = makeXonoticInputBox(0, string_null)); + e.onChange = HUDSkinList_SavedName_Change; + e.onChangeEntity = hudskinlist; me.gotoRC(me, 0, 4.2); me.setFirstColumn(me, me.currentColumn); me.TD(me, 1, 4, makeXonoticTextLabel(0, _("Panel background defaults:"))); @@ -145,6 +142,5 @@ void XonoticHUDExitDialog_fill(entity me) setDependent(e, "hud_configure_grid", 1, 1); 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.TD(me, 1, me.columns, e = makeXonoticCommandButton(_("Exit setup"), '0 0 0', "_hud_configure 0", COMMANDBUTTON_CLOSE)); } -#endif