]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/picker.qh
Merge branch '2259-ca-uses-lms-start-values' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / picker.qh
1 #pragma once
2
3 #include "../item.qh"
4 CLASS(XonoticPicker, MenuItem)
5         METHOD(XonoticPicker, configureXonoticPicker, void(entity));
6         METHOD(XonoticPicker, mousePress, bool(XonoticPicker this, vector pos));
7         METHOD(XonoticPicker, mouseRelease, float(entity, vector));
8         METHOD(XonoticPicker, mouseMove, float(entity, vector));
9         METHOD(XonoticPicker, mouseDrag, float(entity, vector));
10         METHOD(XonoticPicker, keyDown, float(entity, float, float, float));
11         METHOD(XonoticPicker, draw, void(entity));
12         ATTRIB(XonoticPicker, focusable, float, 1);
13         ATTRIB(XonoticPicker, disabled, float, 0);
14         ATTRIB(XonoticPicker, alpha, float, 1);
15         ATTRIB(XonoticPicker, disabledAlpha, float, SKINALPHA_DISABLED);
16
17         ATTRIB(XonoticPicker, rows, float, 3);
18         ATTRIB(XonoticPicker, columns, float, 2);
19
20         METHOD(XonoticPicker, moveFocus, void(entity, vector, vector));
21         METHOD(XonoticPicker, cellSelect, void(entity, vector));
22         METHOD(XonoticPicker, cellDraw, void(entity, vector, vector));
23         METHOD(XonoticPicker, cellIsValid, bool(entity, vector));
24         ATTRIB(XonoticPicker, realCellSize, vector, '0 0 0');
25         ATTRIB(XonoticPicker, selectedCell, vector, '-1 -1 0');
26         ATTRIB(XonoticPicker, focusedCell, vector, '-1 -1 0');
27         ATTRIB(XonoticPicker, focusedCellAlpha, float, 0);
28         ATTRIB(XonoticPicker, focusedCellTime, float, 0);
29         ATTRIB(XonoticPicker, pressedCell, vector, '-1 -1 0');
30 ENDCLASS(XonoticPicker)
31 entity makeXonoticPicker();