From: terencehill Date: Tue, 6 Aug 2013 12:31:15 +0000 (+0200) Subject: Remove the standalone clear button from the screenshot browser dialog X-Git-Tag: xonotic-v0.8.0~139^2~1^2~155^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bf0c1888f491fa247791680740223cd5ffdfdc85;p=xonotic%2Fxonotic-data.pk3dir.git Remove the standalone clear button from the screenshot browser dialog --- diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_screenshot.c b/qcsrc/menu/xonotic/dialog_multiplayer_screenshot.c index 94b9f5552..5f28e36ff 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_screenshot.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_screenshot.c @@ -33,17 +33,14 @@ void XonoticScreenshotBrowserTab_loadPreviewScreenshot(entity me, string scrImag } void XonoticScreenshotBrowserTab_fill(entity me) { - entity e, btn, slist; + entity e, slist; slist = makeXonoticScreenshotList(); float slist_height = me.rows - 2; 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')); - btn.onClick = InputBox_Clear_Click; me.TD(me, 1, me.columns - 1.5, e = makeXonoticInputBox(0, string_null)); e.onChange = ScreenshotList_Filter_Would_Change; e.onChangeEntity = slist; - btn.onClickEntity = e; slist.screenshotViewerDialog = main.screenshotViewerDialog; main.screenshotViewerDialog.scrList = slist; me.TD(me, 1, 0.5, e = makeXonoticButton("Refresh", '0 0 0'));