X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fpicker.qh;h=bbff7d551be6b22d04c68b0f2da9a13ba9af9958;hb=38f4a1731d66faca35562977b145f76e119f2887;hp=c530c7ca9cda274a197448aab1085ad1187d3e50;hpb=edf01df130d0d1877461561178b8833a9ab6051c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/picker.qh b/qcsrc/menu/xonotic/picker.qh index c530c7ca9..bbff7d551 100644 --- a/qcsrc/menu/xonotic/picker.qh +++ b/qcsrc/menu/xonotic/picker.qh @@ -1,31 +1,31 @@ #pragma once #include "../item.qh" -CLASS(XonoticPicker, Item) +CLASS(XonoticPicker, MenuItem) METHOD(XonoticPicker, configureXonoticPicker, void(entity)); - METHOD(XonoticPicker, mousePress, float(entity, vector)); + METHOD(XonoticPicker, mousePress, bool(XonoticPicker this, vector pos)); METHOD(XonoticPicker, mouseRelease, float(entity, vector)); METHOD(XonoticPicker, mouseMove, float(entity, vector)); METHOD(XonoticPicker, mouseDrag, float(entity, vector)); METHOD(XonoticPicker, keyDown, float(entity, float, float, float)); METHOD(XonoticPicker, draw, void(entity)); - ATTRIB(XonoticPicker, focusable, float, 1) - ATTRIB(XonoticPicker, disabled, float, 0) - ATTRIB(XonoticPicker, alpha, float, 1) - ATTRIB(XonoticPicker, disabledAlpha, float, SKINALPHA_DISABLED) + ATTRIB(XonoticPicker, focusable, float, 1); + ATTRIB(XonoticPicker, disabled, float, 0); + ATTRIB(XonoticPicker, alpha, float, 1); + ATTRIB(XonoticPicker, disabledAlpha, float, SKINALPHA_DISABLED); - ATTRIB(XonoticPicker, rows, float, 3) - ATTRIB(XonoticPicker, columns, float, 2) + ATTRIB(XonoticPicker, rows, float, 3); + ATTRIB(XonoticPicker, columns, float, 2); METHOD(XonoticPicker, moveFocus, void(entity, vector, vector)); METHOD(XonoticPicker, cellSelect, void(entity, vector)); METHOD(XonoticPicker, cellDraw, void(entity, vector, vector)); METHOD(XonoticPicker, cellIsValid, bool(entity, vector)); - ATTRIB(XonoticPicker, realCellSize, vector, '0 0 0') - ATTRIB(XonoticPicker, selectedCell, vector, '-1 -1 0') - ATTRIB(XonoticPicker, focusedCell, vector, '-1 -1 0') - ATTRIB(XonoticPicker, focusedCellAlpha, float, 0) - ATTRIB(XonoticPicker, focusedCellTime, float, 0) - ATTRIB(XonoticPicker, pressedCell, vector, '-1 -1 0') + ATTRIB(XonoticPicker, realCellSize, vector, '0 0 0'); + ATTRIB(XonoticPicker, selectedCell, vector, '-1 -1 0'); + ATTRIB(XonoticPicker, focusedCell, vector, '-1 -1 0'); + ATTRIB(XonoticPicker, focusedCellAlpha, float, 0); + ATTRIB(XonoticPicker, focusedCellTime, float, 0); + ATTRIB(XonoticPicker, pressedCell, vector, '-1 -1 0'); ENDCLASS(XonoticPicker) entity makeXonoticPicker();