11 me.configureXonoticWeaponsList(me);
16 me.configureXonoticListBox(me);
31 if(me.selectedItem > 0)
34 me.setSelected(me, me.selectedItem - 1);
39 if(me.selectedItem < me.nItems - 1)
42 me.setSelected(me, me.selectedItem + 1);
49 me.realFontSize_y = me.fontSize / (absSize.y * me.itemHeight);
50 me.realFontSize_x = me.fontSize / (absSize.x * (1 - me.controlWidth));
51 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
55 int i = me.selectedItem;
60 if(me.selectedItem != i)
63 me.applyButton.disabled =
false;
77 for(i = 0; i < n; ++i)
80 s =
strcat(s, e.m_name,
", ");
88 draw_Fill(
'0 0 0',
'1 1 0', SKINCOLOR_LISTBOX_SELECTED, SKINALPHA_LISTBOX_SELECTED);
91 me.focusedItemAlpha =
getFadedAlpha(me.focusedItemAlpha, SKINALPHA_LISTBOX_FOCUSED, SKINFADEALPHA_LISTBOX_FOCUSED);
92 draw_Fill(
'0 0 0',
'1 1 0', SKINCOLOR_LISTBOX_FOCUSED, me.focusedItemAlpha);
95 string msg = e.m_name;
102 vector fs = me.realFontSize;
104 draw_Text(me.realUpperMargin *
eY, msg, fs, SKINCOLOR_TEXT, SKINALPHA_TEXT, 0);
void XonoticWeaponsList_configureXonoticWeaponsList(entity me)
string W_FixWeaponOrder(string order, float complete)
void XonoticWeaponsList_draw(entity me)
#define REGISTRY_GET(id, i)
float XonoticWeaponsList_keyDown(entity me, float scan, float ascii, float shift)
void WeaponsList_MoveDown_Click(entity box, entity me)
void XonoticWeaponsList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
string W_NumberWeaponOrder(string order)
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
entity makeXonoticWeaponsList()
string swapInPriorityList(string order, float i, float j)
float XonoticWeaponsList_mouseDrag(entity me, vector pos)
vector(float skel, float bonenum) _skel_get_boneabs_hidden
string W_NameWeaponOrder(string order)
string XonoticWeaponsList_toString(entity me)
void XonoticWeaponsList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
const int WEP_FLAG_MUTATORBLOCKED
void WeaponsList_MoveUp_Click(entity box, entity me)