]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/campaign.qh
Merge branch '2259-ca-uses-lms-start-values' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / campaign.qh
1 #pragma once
2
3 #include "listbox.qh"
4 CLASS(XonoticCampaignList, XonoticListBox)
5         METHOD(XonoticCampaignList, configureXonoticCampaignList, void(entity));
6         ATTRIB(XonoticCampaignList, rowsPerItem, float, 10);
7         METHOD(XonoticCampaignList, draw, void(entity));
8         METHOD(XonoticCampaignList, drawListBoxItem, void(entity, int, vector, bool, bool));
9         METHOD(XonoticCampaignList, doubleClickListBoxItem, void(entity, float, vector));
10         METHOD(XonoticCampaignList, resizeNotify, void(entity, vector, vector, vector, vector));
11         METHOD(XonoticCampaignList, setSelected, void(entity, float));
12         METHOD(XonoticCampaignList, keyDown, float(entity, float, float, float));
13         METHOD(XonoticCampaignList, campaignGo, void(entity, float));
14         METHOD(XonoticCampaignList, destroy, void(entity));
15
16         ATTRIB(XonoticCampaignList, campaignGlob, float, 0);
17         ATTRIB(XonoticCampaignList, realFontSize, vector, '0 0 0');
18         ATTRIB(XonoticCampaignList, columnPreviewOrigin, float, 0);
19         ATTRIB(XonoticCampaignList, columnPreviewSize, float, 0);
20         ATTRIB(XonoticCampaignList, columnNameOrigin, float, 0);
21         ATTRIB(XonoticCampaignList, columnNameSize, float, 0);
22         ATTRIB(XonoticCampaignList, columnCheckMarkOrigin, float, 0);
23         ATTRIB(XonoticCampaignList, columnCheckMarkSize, float, 0);
24         ATTRIB(XonoticCampaignList, checkMarkOrigin, vector, '0 0 0');
25         ATTRIB(XonoticCampaignList, checkMarkSize, vector, '0 0 0');
26         ATTRIB(XonoticCampaignList, typeIconOrigin, vector, '0 0 0');
27         ATTRIB(XonoticCampaignList, typeIconSize, vector, '0 0 0');
28         ATTRIB(XonoticCampaignList, realUpperMargin1, float, 0);
29         ATTRIB(XonoticCampaignList, realUpperMargin2, float, 0);
30
31         ATTRIB(XonoticCampaignList, origin, vector, '0 0 0');
32         ATTRIB(XonoticCampaignList, itemAbsSize, vector, '0 0 0');
33         ATTRIB(XonoticCampaignList, emptyLineHeight, float, 0.5);
34
35         ATTRIB(XonoticCampaignList, campaignIndex, float, 0);
36         ATTRIB(XonoticCampaignList, controlledCvar, string);
37         METHOD(XonoticCampaignList, loadCvars, void(entity));
38         METHOD(XonoticCampaignList, saveCvars, void(entity));
39         ATTRIB(XonoticCampaignList, hasNextCampaign, bool, false);
40         ATTRIB(XonoticCampaignList, hasPrevCampaign, bool, false);
41
42         ATTRIB(XonoticCampaignList, buttonNext, entity);
43         ATTRIB(XonoticCampaignList, buttonPrev, entity);
44         ATTRIB(XonoticCampaignList, labelTitle, entity);
45 ENDCLASS(XonoticCampaignList)
46 entity makeXonoticCampaignList();
47 void CampaignList_LoadMap(entity btn, entity me);
48 void MultiCampaign_Next(entity btn, entity me);
49 void MultiCampaign_Prev(entity btn, entity me);