]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Display the screenshot name as dialog title :)
authorterencehill <piuntn@gmail.com>
Sat, 4 Feb 2012 21:47:32 +0000 (22:47 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 4 Feb 2012 21:47:32 +0000 (22:47 +0100)
qcsrc/menu/xonotic/dialog_multiplayer_screenshot_screenshotviewer.c

index a4a4ce7cc0a7ecced7303e8f2784f162a8a32dab..1ff4c340a41f5eac4d5a008df6a22d8691bcb558 100644 (file)
@@ -26,6 +26,7 @@ void XonoticScreenshotViewerDialog_loadScreenshot(entity me, string scrImage)
                strunzone(me.currentScrPath);
        me.currentScrPath = strzone(scrImage);
        me.screenshotImage.configureXonoticScreenshotImage(me.screenshotImage, me.currentScrPath);
+       me.frame.setText(me.frame, me.screenshotImage.screenshotTitle);
 }
 void prevScreenshot_Click(entity btn, entity me)
 {
@@ -114,6 +115,7 @@ void XonoticScreenshotViewerDialog_fill(entity me)
        entity e;
        me.TR(me);
                me.TD(me, me.rows - 1, me.columns, e = makeXonoticScreenshotImage());
+                       e.showTitle = 0; // dialog title is enough
                        me.screenshotImage = e;
        me.gotoRC(me, me.rows - 1, 0);
                me.TDempty(me, 1/20 * me.columns);