]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Create the "view settings" dialog
authorSamual <samual@xonotic.org>
Sat, 14 Jan 2012 22:55:22 +0000 (17:55 -0500)
committerSamual <samual@xonotic.org>
Sat, 14 Jan 2012 22:55:22 +0000 (17:55 -0500)
qcsrc/menu/classes.c
qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c
qcsrc/menu/xonotic/mainwindow.c

index 428a9020b8569b3e79e2f51a7bfa9f4fd9f2a94e..0be24e5ea16a32750b462d8cd636b3ed62cc6a4d 100644 (file)
@@ -79,6 +79,7 @@
 #include "xonotic/dialog_singleplayer_winner.c"
 #include "xonotic/dialog_credits.c"
 #include "xonotic/credits.c"
+#include "xonotic/dialog_multiplayer_playersetup_view.c"
 #include "xonotic/dialog_multiplayer_playersetup_weapons.c"
 #include "xonotic/weaponslist.c"
 #include "xonotic/dialog_multiplayer_demo.c"
index c70eb159de18c263bce036b517038243fb51abd8..69539a4085258f52404ff32c84c4a46e2e9ac2f8 100644 (file)
@@ -160,8 +160,8 @@ void XonoticPlayerSettingsTab_fill(entity me)
        me.TR(me);
                me.TDempty(me, 0.5);
                me.TD(me, 1, 2, e = makeXonoticButton(_("View settings"), '0 0 0'));
-                       e.onClick = HUDSetup_Join_Click;
-                       e.onClickEntity = me;
+                       e.onClick = DialogOpenButton_Click;
+                       e.onClickEntity = main.viewDialog;
                // TODO: show fov and other settings with text here
        me.TR(me);
                me.TDempty(me, 0.5);
index 15c9a2e0c869fb9115797b34d66c82e162461c3f..4f762b6188b22721653e308e44215781f9026591 100644 (file)
@@ -11,6 +11,7 @@ CLASS(MainWindow) EXTENDS(ModalController)
        ATTRIB(MainWindow, winnerDialog, entity, NULL)
        ATTRIB(MainWindow, serverInfoDialog, entity, NULL)
        ATTRIB(MainWindow, cvarsDialog, entity, NULL)
+       ATTRIB(MainWindow, viewDialog, entity, NULL)
        ATTRIB(MainWindow, mainNexposee, entity, NULL)
        ATTRIB(MainWindow, fadedAlpha, float, SKINALPHA_BEHIND)
        ATTRIB(MainWindow, dialogToShow, entity, NULL)
@@ -156,6 +157,10 @@ void MainWindow_configureMainWindow(entity me)
        me.cvarsDialog = i = spawnXonoticCvarsDialog();
        i.configureDialog(i);
        me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
+
+       me.viewDialog = i = spawnXonoticViewDialog();
+       i.configureDialog(i);
+       me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
        
        me.mainNexposee = n = spawnXonoticNexposee();
        /*