]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Define the color of the viewer
authorterencehill <piuntn@gmail.com>
Thu, 12 Aug 2010 17:56:30 +0000 (19:56 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 12 Aug 2010 17:56:30 +0000 (19:56 +0200)
And do a small cleanup on dialog_multiplayer_screenshot.c

gfx/menu/default/skinvalues.txt
gfx/menu/xaw/skinvalues.txt
qcsrc/menu/skin-customizables.inc
qcsrc/menu/xonotic/dialog_multiplayer_screenshot.c
qcsrc/menu/xonotic/dialog_multiplayer_screenshot_screenshotviewer.c

index 8e0f548a707932eeb0451686eb765d6917e43d08..de81ef878cfa3bdd7fba6a8ef7327f114802c963 100755 (executable)
@@ -177,6 +177,7 @@ COLOR_DIALOG_WEAPONS            '1 1 1'
 COLOR_DIALOG_RADAR              '1 1 1'
 COLOR_DIALOG_SERVERINFO         '1 1 1'
 COLOR_DIALOG_CVARS              '1 0 0'
+COLOR_DIALOG_SCREENSHOTVIEWER   '1 1 1'
 
 // item: input box
 //   uses "inputbox" images
index 666b971c23d9d032da0bf6646cdfcc401b2eaba3..b34f88c8a099538899964a7bc618c422238565fa 100644 (file)
@@ -32,6 +32,7 @@ COLOR_DIALOG_WEAPONS            '1 1 1'
 COLOR_DIALOG_RADAR              '1 1 1'
 COLOR_DIALOG_SERVERINFO         '1 1 1'
 COLOR_DIALOG_CVARS              '1 0 0'
+COLOR_DIALOG_SCREENSHOTVIEWER   '1 1 1'
 
 // nexposee positions of windows (they are the scale transformation
 // centers, NOT the actual positions of the windows!)
index c3320e503874d751d0a1688c8fa9c986a851f0c0..5270cb6722312d1f6adf4742f353f40e732db6f0 100644 (file)
@@ -65,6 +65,7 @@ SKINBEGIN
        SKINVECTOR(COLOR_DIALOG_RADAR, '0.7 0.7 1');
        SKINVECTOR(COLOR_DIALOG_SERVERINFO, '0.7 0.7 1');
        SKINVECTOR(COLOR_DIALOG_CVARS, '1 0 0');
+       SKINVECTOR(COLOR_DIALOG_SCREENSHOTVIEWER, '0.7 0.7 1');
 
        // nexposee positions of windows (they are the scale transformation
        // centers, NOT the actual positions of the windows!)
index c46d631d38cb6099728014feaf8ee2f76e1a61a9..56aacdf302d75c414ec0d004380632169c3e8d99 100644 (file)
@@ -33,6 +33,7 @@ void XonoticScreenshotBrowserTab_fill(entity me)
 {
        entity e, btn, slist;
        slist = makeXonoticScreenshotList();
+       const float slist_height = 8;
        me.TR(me);
                me.TD(me, 1, 0.5, e = makeXonoticTextLabel(0, "Filter:"));
                me.TD(me, 1, 0.5, btn = makeXonoticButton("Clear", '0 0 0'));
@@ -48,13 +49,14 @@ void XonoticScreenshotBrowserTab_fill(entity me)
                        e.onClick = ScreenshotList_Refresh_Click;
                        e.onClickEntity = slist;
        me.TR(me);
-               me.TD(me, 8, me.columns, slist);
-       me.gotoRC(me, 9, 0);
+               me.TD(me, slist_height, me.columns, slist);
+
+       me.gotoRC(me, slist_height + 1, 0);
                me.TD(me, 1, me.columns, e = makeXonoticButton("Open in the viewer", '0 0 0'));
                        e.onClick = StartScreenshot_Click;
                        e.onClickEntity = slist;
        me.TR(me);
-               me.TD(me, me.rows - 10, me.columns, e = makeXonoticScreenshotImage());
+               me.TD(me, me.rows - me.currentRow, me.columns, e = makeXonoticScreenshotImage());
                        e.showTitle = 0;
                        me.screenshotImage = e;
                        slist.screenshotPreview = e;
index 07047cf0f9b7d1475ce0e2660856e3473de9388c..f0cd2ecc60ba374183a536bb6efd81f7c3efdfc5 100644 (file)
@@ -8,7 +8,7 @@ CLASS(XonoticScreenshotViewerDialog) EXTENDS(XonoticDialog)
        ATTRIB(XonoticScreenshotViewerDialog, intendedWidth, float, 1)
        ATTRIB(XonoticScreenshotViewerDialog, rows, float, 25)
        ATTRIB(XonoticScreenshotViewerDialog, columns, float, 6.5)
-       ATTRIB(XonoticScreenshotViewerDialog, color, vector, SKINCOLOR_DIALOG_MULTIPLAYER)
+       ATTRIB(XonoticScreenshotViewerDialog, color, vector, SKINCOLOR_DIALOG_SCREENSHOTVIEWER)
        ATTRIB(XonoticScreenshotViewerDialog, scrList, entity, NULL)
        ATTRIB(XonoticScreenshotViewerDialog, screenshotImage, entity, NULL)
        ATTRIB(XonoticScreenshotViewerDialog, currentScrPath, string, string_null)