X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fbutton.qc;h=d86c4a4537b062fab660bbe5e180cd82976fb266;hb=df33af4f3b2347ecf28f744da7a2814c004b57cb;hp=a9a8fe2160773595473d5e5cb5754c3105396e00;hpb=120ad19fdf46b7096a0f90b940e590f1909ad22c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/button.qc b/qcsrc/menu/xonotic/button.qc index a9a8fe216..d86c4a453 100644 --- a/qcsrc/menu/xonotic/button.qc +++ b/qcsrc/menu/xonotic/button.qc @@ -1,25 +1,5 @@ -#ifndef BUTTON_H -#define BUTTON_H -#include "../item/button.qc" -CLASS(XonoticButton, Button) - METHOD(XonoticButton, configureXonoticButton, void(entity, string, vector, string)); - ATTRIB(XonoticButton, fontSize, float, SKINFONTSIZE_NORMAL) - ATTRIB(XonoticButton, image, string, SKINGFX_BUTTON) - ATTRIB(XonoticButton, grayImage, string, SKINGFX_BUTTON_GRAY) - ATTRIB(XonoticButton, color, vector, SKINCOLOR_BUTTON_N) - ATTRIB(XonoticButton, colorC, vector, SKINCOLOR_BUTTON_C) - ATTRIB(XonoticButton, colorF, vector, SKINCOLOR_BUTTON_F) - ATTRIB(XonoticButton, colorD, vector, SKINCOLOR_BUTTON_D) - ATTRIB(XonoticButton, alpha, float, SKINALPHA_TEXT) - ATTRIB(XonoticButton, disabledAlpha, float, SKINALPHA_DISABLED) - ATTRIB(XonoticButton, marginLeft, float, SKINMARGIN_BUTTON) // chars - ATTRIB(XonoticButton, marginRight, float, SKINMARGIN_BUTTON) // chars -ENDCLASS(XonoticButton) -entity makeXonoticButton_T(string theText, vector theColor, string theTooltip); -entity makeXonoticButton(string theText, vector theColor); -#endif +#include "button.qh" -#ifdef IMPLEMENTATION entity makeXonoticButton_T(string theText, vector theColor, string theTooltip) { entity me; @@ -47,4 +27,3 @@ void XonoticButton_configureXonoticButton(entity me, string theText, vector theC } setZonedTooltip(me, theTooltip, string_null); } -#endif