X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_multiplayer_media_screenshot.qc;h=afde0914a48b981db347492f8db456e31ae4da64;hb=bc50c2d7ca3e0a44ed1712400ef8e170e6df8210;hp=58230253f4375d9e02aef7f70ddb2a9045f2289d;hpb=7bae88d09fbd53cce732e31633aea92671b43699;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_media_screenshot.qc b/qcsrc/menu/xonotic/dialog_multiplayer_media_screenshot.qc index 58230253f..afde0914a 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_media_screenshot.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_media_screenshot.qc @@ -1,21 +1,13 @@ -#ifndef DIALOG_MULTIPLAYER_MEDIA_SCREENSHOT_H -#define DIALOG_MULTIPLAYER_MEDIA_SCREENSHOT_H -#include "tab.qc" -CLASS(XonoticScreenshotBrowserTab, XonoticTab) - METHOD(XonoticScreenshotBrowserTab, fill, void(entity)); - ATTRIB(XonoticScreenshotBrowserTab, intendedWidth, float, 1) - ATTRIB(XonoticScreenshotBrowserTab, rows, float, 21) - ATTRIB(XonoticScreenshotBrowserTab, columns, float, 6.5) - ATTRIB(XonoticScreenshotBrowserTab, name, string, "ScreenshotBrowser") +#include "dialog_multiplayer_media_screenshot.qh" - METHOD(XonoticScreenshotBrowserTab, loadPreviewScreenshot, void(entity, string)); - ATTRIB(XonoticScreenshotBrowserTab, screenshotImage, entity, NULL) - ATTRIB(XonoticScreenshotBrowserTab, currentScrPath, string, string_null) -ENDCLASS(XonoticScreenshotBrowserTab) -entity makeXonoticScreenshotBrowserTab(); -#endif +#include "dialog_multiplayer_media_screenshot_viewer.qh" +#include "screenshotlist.qh" + +#include "textlabel.qh" +#include "inputbox.qh" +#include "checkbox.qh" +#include "button.qh" -#ifdef IMPLEMENTATION entity makeXonoticScreenshotBrowserTab() { entity me; @@ -27,9 +19,7 @@ void XonoticScreenshotBrowserTab_loadPreviewScreenshot(entity me, string scrImag { if (me.currentScrPath == scrImage) return; - if (me.currentScrPath) - strunzone(me.currentScrPath); - me.currentScrPath = strzone(scrImage); + strcpy(me.currentScrPath, scrImage); me.screenshotImage.load(me.screenshotImage, me.currentScrPath); } void XonoticScreenshotBrowserTab_fill(entity me) @@ -80,4 +70,3 @@ void XonoticScreenshotBrowserTab_fill(entity me) slist.screenshotBrowserDialog = me; */ } -#endif