]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/maplist.qh
Optimize vehicle impact code by only calling vlen() if damage would be taken
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / maplist.qh
1 #pragma once
2
3 #include "listbox.qh"
4 CLASS(XonoticMapList, XonoticListBox)
5         METHOD(XonoticMapList, configureXonoticMapList, void(entity));
6         ATTRIB(XonoticMapList, rowsPerItem, float, 4);
7         METHOD(XonoticMapList, draw, void(entity));
8         METHOD(XonoticMapList, drawListBoxItem, void(entity, int, vector, bool, bool));
9         METHOD(XonoticMapList, clickListBoxItem, void(entity, float, vector));
10         METHOD(XonoticMapList, doubleClickListBoxItem, void(entity, float, vector));
11         METHOD(XonoticMapList, resizeNotify, void(entity, vector, vector, vector, vector));
12         METHOD(XonoticMapList, refilter, void(entity));
13         METHOD(XonoticMapList, refilterCallback, void(entity, entity));
14         METHOD(XonoticMapList, keyDown, float(entity, float, float, float));
15
16         ATTRIB(XonoticMapList, realFontSize, vector, '0 0 0');
17         ATTRIB(XonoticMapList, columnPreviewOrigin, float, 0);
18         ATTRIB(XonoticMapList, columnPreviewSize, float, 0);
19         ATTRIB(XonoticMapList, columnNameOrigin, float, 0);
20         ATTRIB(XonoticMapList, columnNameSize, float, 0);
21         ATTRIB(XonoticMapList, checkMarkOrigin, vector, '0 0 0');
22         ATTRIB(XonoticMapList, checkMarkSize, vector, '0 0 0');
23         ATTRIB(XonoticMapList, realUpperMargin1, float, 0);
24         ATTRIB(XonoticMapList, realUpperMargin2, float, 0);
25
26         ATTRIB(XonoticMapList, lastGametype, entity);
27         ATTRIB(XonoticMapList, lastFeatures, float, 0);
28
29         ATTRIB(XonoticMapList, origin, vector, '0 0 0');
30         ATTRIB(XonoticMapList, itemAbsSize, vector, '0 0 0');
31
32         ATTRIB(XonoticMapList, g_maplistCache, string);
33         METHOD(XonoticMapList, g_maplistCacheToggle, void(entity, float));
34         METHOD(XonoticMapList, g_maplistCacheQuery, float(entity, float));
35
36         ATTRIB(XonoticMapList, stringFilter, string);
37         ATTRIB(XonoticMapList, stringFilterBox, entity);
38
39         ATTRIB(XonoticMapList, startButton, entity);
40
41         METHOD(XonoticMapList, loadCvars, void(entity));
42
43         ATTRIB(XonoticMapList, typeToSearchString, string);
44         ATTRIB(XonoticMapList, typeToSearchTime, float, 0);
45
46         METHOD(XonoticMapList, destroy, void(entity));
47
48         ATTRIB(XonoticMapList, alphaBG, float, 0);
49 ENDCLASS(XonoticMapList)
50 entity makeXonoticMapList();
51 void MapList_StringFilterBox_Change(entity box, entity me);
52 float MapList_StringFilterBox_keyDown(entity me, float key, float ascii, float shift);
53 void MapList_Add_Shown(entity btn, entity me);
54 void MapList_Remove_Shown(entity btn, entity me);
55 void MapList_Add_All(entity btn, entity me);
56 void MapList_Remove_All(entity btn, entity me);
57 void MapList_LoadMap(entity btn, entity me);