From: terencehill Date: Mon, 14 Feb 2011 21:32:06 +0000 (+0100) Subject: Add GFX_CLEARBUTTON to skin-customizables.inc X-Git-Tag: xonotic-v0.7.0~55^2~13^2~10 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=288f88fc8e7c8d2e3f39908964616a3ecc0c57b1;p=xonotic%2Fxonotic-data.pk3dir.git Add GFX_CLEARBUTTON to skin-customizables.inc --- diff --git a/qcsrc/menu/item/inputbox.c b/qcsrc/menu/item/inputbox.c index dc532c0ca3..b44db7c42a 100644 --- a/qcsrc/menu/item/inputbox.c +++ b/qcsrc/menu/item/inputbox.c @@ -34,8 +34,7 @@ CLASS(InputBox) EXTENDS(Label) ATTRIB(InputBox, cb_size, vector, '0 0 0') ATTRIB(InputBox, cb_pressed, float, 0) ATTRIB(InputBox, cb_focused, float, 0) - // ATTRIB(InputBox, cb_src, string, SKINGFX_CLEARBUTTON) - ATTRIB(InputBox, cb_src, string, "clearbutton") + ATTRIB(InputBox, cb_src, string, SKINGFX_CLEARBUTTON) ENDCLASS(InputBox) void InputBox_Clear_Click(entity btn, entity me); #endif diff --git a/qcsrc/menu/skin-customizables.inc b/qcsrc/menu/skin-customizables.inc index ca8f4cf8e9..a4a4f9e80e 100644 --- a/qcsrc/menu/skin-customizables.inc +++ b/qcsrc/menu/skin-customizables.inc @@ -159,6 +159,7 @@ SKINBEGIN SKINSTRING(GFX_INPUTBOX, "inputbox"); SKINVECTOR(COLOR_INPUTBOX_N, '1 1 1'); SKINVECTOR(COLOR_INPUTBOX_F, '1 1 1'); + SKINSTRING(GFX_CLEARBUTTON, "clearbutton"); SKINFLOAT(MARGIN_INPUTBOX_CHARS, 1); // item: key grabber