X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fitem%2Finputbox.qc;h=35ffe44d8bfa387446e55faea7c894ebcf29a693;hb=8d10ea819c27736320d03e75134af341f8127199;hp=275b20046def9e411a8211d231fc55a3117e162e;hpb=37903827937b44f174275a75d2dab5301b8ab53e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/item/inputbox.qc b/qcsrc/menu/item/inputbox.qc index 275b20046..35ffe44d8 100644 --- a/qcsrc/menu/item/inputbox.qc +++ b/qcsrc/menu/item/inputbox.qc @@ -1,16 +1,18 @@ -#ifdef INTERFACE -CLASS(InputBox) EXTENDS(Label) - METHOD(InputBox, configureInputBox, void(entity, string, float, float, string)) - METHOD(InputBox, draw, void(entity)) - METHOD(InputBox, setText, void(entity, string)) - METHOD(InputBox, enterText, void(entity, string)) - METHOD(InputBox, keyDown, float(entity, float, float, float)) - METHOD(InputBox, mouseMove, float(entity, vector)) - METHOD(InputBox, mouseRelease, float(entity, vector)) - METHOD(InputBox, mousePress, float(entity, vector)) - METHOD(InputBox, mouseDrag, float(entity, vector)) - METHOD(InputBox, showNotify, void(entity)) - METHOD(InputBox, resizeNotify, void(entity, vector, vector, vector, vector)) +#ifndef ITEM_INPUTBOX_H +#define ITEM_INPUTBOX_H +#include "label.qc" +CLASS(InputBox, Label) + METHOD(InputBox, configureInputBox, void(entity, string, float, float, string)); + METHOD(InputBox, draw, void(entity)); + METHOD(InputBox, setText, void(entity, string)); + METHOD(InputBox, enterText, void(entity, string)); + METHOD(InputBox, keyDown, float(entity, float, float, float)); + METHOD(InputBox, mouseMove, float(entity, vector)); + METHOD(InputBox, mouseRelease, float(entity, vector)); + METHOD(InputBox, mousePress, float(entity, vector)); + METHOD(InputBox, mouseDrag, float(entity, vector)); + METHOD(InputBox, showNotify, void(entity)); + METHOD(InputBox, resizeNotify, void(entity, vector, vector, vector, vector)); ATTRIB(InputBox, src, string, string_null)