]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/keybinder.qh
4d0482dd9dfcbf9e1e0770ebd393a31327853185
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / keybinder.qh
1 #pragma once
2
3 #include "listbox.qh"
4 CLASS(XonoticKeyBinder, XonoticListBox)
5         METHOD(XonoticKeyBinder, configureXonoticKeyBinder, void(entity));
6         ATTRIB(XonoticKeyBinder, rowsPerItem, int, 1)
7         METHOD(XonoticKeyBinder, drawListBoxItem, void(entity, int, vector, bool, bool));
8         METHOD(XonoticKeyBinder, doubleClickListBoxItem, void(entity, float, vector));
9         METHOD(XonoticKeyBinder, resizeNotify, void(entity, vector, vector, vector, vector));
10         METHOD(XonoticKeyBinder, showNotify, void(entity));
11         METHOD(XonoticKeyBinder, setSelected, void(entity, float));
12         METHOD(XonoticKeyBinder, keyDown, float(entity, float, float, float));
13         METHOD(XonoticKeyBinder, keyGrabbed, void(entity, float, float));
14         METHOD(XonoticKeyBinder, destroy, void(entity));
15
16         ATTRIB(XonoticKeyBinder, realFontSize, vector, '0 0 0')
17         ATTRIB(XonoticKeyBinder, realUpperMargin, float, 0)
18         ATTRIB(XonoticKeyBinder, columnFunctionOrigin, float, 0)
19         ATTRIB(XonoticKeyBinder, columnFunctionSize, float, 0)
20         ATTRIB(XonoticKeyBinder, columnKeysOrigin, float, 0)
21         ATTRIB(XonoticKeyBinder, columnKeysSize, float, 0)
22
23         METHOD(XonoticKeyBinder, loadKeyBinds, void(entity));
24         ATTRIB(XonoticKeyBinder, previouslySelected, int, -1)
25         ATTRIB(XonoticKeyBinder, inMouseHandler, float, 0)
26         ATTRIB(XonoticKeyBinder, userbindEditButton, entity, NULL)
27         ATTRIB(XonoticKeyBinder, keyGrabButton, entity, NULL)
28         ATTRIB(XonoticKeyBinder, clearButton, entity, NULL)
29         ATTRIB(XonoticKeyBinder, userbindEditDialog, entity, NULL)
30         METHOD(XonoticKeyBinder, editUserbind, void(entity, string, string, string));
31 ENDCLASS(XonoticKeyBinder)
32 entity makeXonoticKeyBinder();
33 void KeyBinder_Bind_Change(entity btn, entity me);
34 void KeyBinder_Bind_Clear(entity btn, entity me);
35 void KeyBinder_Bind_Edit(entity btn, entity me);
36 void KeyBinder_Bind_Reset_All(entity btn, entity me);