]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add blank crosshair and model settings dialogs
authorSamual <samual@xonotic.org>
Tue, 17 Jan 2012 01:58:29 +0000 (20:58 -0500)
committerSamual <samual@xonotic.org>
Tue, 17 Jan 2012 01:58:29 +0000 (20:58 -0500)
qcsrc/menu/classes.c
qcsrc/menu/skin-customizables.inc
qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c
qcsrc/menu/xonotic/mainwindow.c

index 44141dfcdb5030745cd2fcd7cbde83cb748c8350..87769c806ec78f66e704e4ec7e2ccb22f94a67d7 100644 (file)
@@ -80,7 +80,9 @@
 #include "xonotic/dialog_credits.c"
 #include "xonotic/credits.c"
 #include "xonotic/dialog_multiplayer_playersetup_hudconfirm.c"
+#include "xonotic/dialog_multiplayer_playersetup_model.c"
 #include "xonotic/dialog_multiplayer_playersetup_view.c"
+#include "xonotic/dialog_multiplayer_playersetup_crosshair.c"
 #include "xonotic/dialog_multiplayer_playersetup_weapons.c"
 #include "xonotic/weaponslist.c"
 #include "xonotic/dialog_multiplayer_demo.c"
index 5449cd916bd7aa09b53e297f09b557cd8ccf0d4f..d9f32efd501e8ddfe5d72a7ce0e0dac667bf34fb 100644 (file)
@@ -65,6 +65,8 @@ SKINBEGIN
        SKINVECTOR(COLOR_DIALOG_CREDITS, '0.7 0.7 1');
        SKINVECTOR(COLOR_DIALOG_WEAPONS, '1 0.7 0.7');
        SKINVECTOR(COLOR_DIALOG_VIEW, '1 0.7 0.7');
+       SKINVECTOR(COLOR_DIALOG_MODEL, '1 0.7 0.7');
+       SKINVECTOR(COLOR_DIALOG_CROSSHAIR, '1 0.7 0.7');
        SKINVECTOR(COLOR_DIALOG_SERVERINFO, '0.7 0.7 1');
        SKINVECTOR(COLOR_DIALOG_CVARS, '1 0 0');
        SKINVECTOR(COLOR_DIALOG_HUDCONFIRM, '1 0 0');
index 4f7bd1168639f546f55f53107505ee345683bec0..85060dca9a25146d0d0a6d51c045be3f68ee32ed 100644 (file)
@@ -149,16 +149,16 @@ void XonoticPlayerSettingsTab_fill(entity me)
        me.TR(me);
                me.TDempty(me, 0.5);
                me.TD(me, 1, 2, e = makeXonoticButton(_("Other crosshair settings"), '0 0 0'));
-                       e.onClick = HUDSetup_Start;
-                       e.onClickEntity = me;
+                       e.onClick = DialogOpenButton_Click;
+                       e.onClickEntity = main.crosshairDialog;
                setDependent(e, "crosshair_enabled", 1, 2);
                // TODO: show status of crosshair dot and hittest and pickups and such here with text
        me.TR(me);
        me.TR(me);
                me.TDempty(me, 0.5);
                me.TD(me, 1, 2, e = makeXonoticButton(_("Model settings"), '0 0 0'));
-                       e.onClick = HUDSetup_Start;
-                       e.onClickEntity = me;
+                       e.onClick = DialogOpenButton_Click;
+                       e.onClickEntity = main.modelDialog;
                // TODO: show csqc model settings like forcemyplayer and deglowing/ghosting bodies with text here
        me.TR(me);
                me.TDempty(me, 0.5);
@@ -171,7 +171,7 @@ void XonoticPlayerSettingsTab_fill(entity me)
                me.TD(me, 1, 2, e = makeXonoticButton(_("Weapon settings"), '0 0 0'));
                        e.onClick = DialogOpenButton_Click;
                        e.onClickEntity = main.weaponsDialog;
-               // I don't really think this is useful, and especially it doesn't look very clean...
+               // I don't really think this is useful as is, and especially it doesn't look very clean...
                // In the future, if ALL of these buttons had some information, then it would be justified/clean
                //me.TD(me, 1, 1, e0 = makeXonoticTextLabel(0, string_null)); 
                //      e0.textEntity = main.weaponsDialog;
index 9054bef6a778bf349cfa631cb8a80918bdf6230f..291e02338b96d839ff19dbd651081387305cd068 100644 (file)
@@ -12,6 +12,8 @@ CLASS(MainWindow) EXTENDS(ModalController)
        ATTRIB(MainWindow, serverInfoDialog, entity, NULL)
        ATTRIB(MainWindow, cvarsDialog, entity, NULL)
        ATTRIB(MainWindow, viewDialog, entity, NULL)
+       ATTRIB(MainWindow, modelDialog, entity, NULL)
+       ATTRIB(MainWindow, crosshairDialog, entity, NULL)
        ATTRIB(MainWindow, hudconfirmDialog, entity, NULL)
        ATTRIB(MainWindow, mainNexposee, entity, NULL)
        ATTRIB(MainWindow, fadedAlpha, float, SKINALPHA_BEHIND)
@@ -167,6 +169,14 @@ void MainWindow_configureMainWindow(entity me)
        i.configureDialog(i);
        me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
        
+       me.modelDialog = i = spawnXonoticModelDialog();
+       i.configureDialog(i);
+       me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
+
+       me.crosshairDialog = i = spawnXonoticCrosshairDialog();
+       i.configureDialog(i);
+       me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
+       
        me.mainNexposee = n = spawnXonoticNexposee();
        /*
                if(checkextension("DP_GECKO_SUPPORT"))