]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/soundlist.qh
Optimize vehicle impact code by only calling vlen() if damage would be taken
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / soundlist.qh
1 #pragma once
2
3 #include "listbox.qh"
4 CLASS(XonoticSoundList, XonoticListBox)
5         METHOD(XonoticSoundList, configureXonoticSoundList, void(entity));
6         ATTRIB(XonoticSoundList, rowsPerItem, float, 1);
7         METHOD(XonoticSoundList, resizeNotify, void(entity, vector, vector, vector, vector));
8         METHOD(XonoticSoundList, drawListBoxItem, void(entity, int, vector, bool, bool));
9         METHOD(XonoticSoundList, getSounds, void(entity));
10         METHOD(XonoticSoundList, soundName, string(entity, int));
11         METHOD(XonoticSoundList, doubleClickListBoxItem, void(entity, int, vector));
12         METHOD(XonoticSoundList, keyDown, float(entity, float, float, float));
13         METHOD(XonoticSoundList, destroy, void(entity));
14         METHOD(XonoticSoundList, showNotify, void(entity));
15
16         ATTRIB(XonoticSoundList, listSound, int, -1);
17         ATTRIB(XonoticSoundList, realFontSize, vector, '0 0 0');
18         ATTRIB(XonoticSoundList, columnNameOrigin, float, 0);
19         ATTRIB(XonoticSoundList, columnNameSize, float, 0);
20         ATTRIB(XonoticSoundList, columnNumberOrigin, float, 0);
21         ATTRIB(XonoticSoundList, columnNumberSize, float, 0);
22         ATTRIB(XonoticSoundList, realUpperMargin, float, 0);
23         ATTRIB(XonoticSoundList, origin, vector, '0 0 0');
24         ATTRIB(XonoticSoundList, itemAbsSize, vector, '0 0 0');
25
26         ATTRIB(XonoticSoundList, filterString, string);
27         ATTRIB(XonoticSoundList, playlist, entity);
28 ENDCLASS(XonoticSoundList)
29
30 entity makeXonoticSoundList();
31 void SoundList_Filter_Change(entity box, entity me);
32 void SoundList_Add(entity box, entity me);
33 void SoundList_Add_All(entity box, entity me);
34 void SoundList_Menu_Track_Change(entity box, entity me);
35 void SoundList_Menu_Track_Reset(entity box, entity me);