]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/languagelist.qh
Merge branch 'martin-t/msnt' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / languagelist.qh
1 #pragma once
2
3 #include "listbox.qh"
4 CLASS(XonoticLanguageList, XonoticListBox)
5         METHOD(XonoticLanguageList, configureXonoticLanguageList, void(entity));
6         ATTRIB(XonoticLanguageList, rowsPerItem, float, 1);
7         METHOD(XonoticLanguageList, drawListBoxItem, void(entity, int, vector, bool, bool));
8         METHOD(XonoticLanguageList, resizeNotify, void(entity, vector, vector, vector, vector));
9         METHOD(XonoticLanguageList, setSelected, void(entity, float));
10         METHOD(XonoticLanguageList, loadCvars, void(entity));
11         METHOD(XonoticLanguageList, saveCvars, void(entity));
12
13         ATTRIB(XonoticLanguageList, realFontSize, vector, '0 0 0');
14         ATTRIB(XonoticLanguageList, realUpperMargin, float, 0);
15         ATTRIB(XonoticLanguageList, columnNameOrigin, float, 0);
16         ATTRIB(XonoticLanguageList, columnNameSize, float, 0);
17         ATTRIB(XonoticLanguageList, columnPercentageOrigin, float, 0);
18         ATTRIB(XonoticLanguageList, columnPercentageSize, float, 0);
19
20         METHOD(XonoticLanguageList, doubleClickListBoxItem, void(entity, float, vector));
21         METHOD(XonoticLanguageList, keyDown, float(entity, float, float, float));  // enter handling
22
23         METHOD(XonoticLanguageList, destroy, void(entity));
24
25         ATTRIB(XonoticLanguageList, languagelist, float, -1);
26         METHOD(XonoticLanguageList, getLanguages, void(entity));
27         METHOD(XonoticLanguageList, setLanguage, void(entity));
28         METHOD(XonoticLanguageList, languageParameter, string(entity, float, float));
29
30         ATTRIB(XonoticLanguageList, name, string, "languageselector");  // change this to make it noninteractive (for first run dialog);
31 ENDCLASS(XonoticLanguageList)
32
33 entity makeXonoticLanguageList();
34 void SetLanguage_Click(entity btn, entity me);