]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/keybinder.qh
Merge branch 'master' into Mario/speed_var
[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);
27         ATTRIB(XonoticKeyBinder, keyGrabButton, entity);
28         ATTRIB(XonoticKeyBinder, clearButton, entity);
29         ATTRIB(XonoticKeyBinder, userbindEditDialog, entity);
30         ATTRIB(XonoticKeyBinder, bindingsResetDialog, entity);
31         METHOD(XonoticKeyBinder, editUserbind, void(entity, string, string, string));
32 ENDCLASS(XonoticKeyBinder)
33 entity makeXonoticKeyBinder();
34 void KeyBinder_Bind_Change(entity btn, entity me);
35 void KeyBinder_Bind_Clear(entity btn, entity me);
36 void KeyBinder_Bind_Edit(entity btn, entity me);
37 void KeyBinder_Bind_Reset_All(entity btn, entity me);