void drawListBoxItemNexuizWeaponsList(entity me, float i, vector absSize, float isSelected) { entity e; if(isSelected) draw_Fill('0 0 0', '1 1 0', SKINCOLOR_LISTBOX_SELECTED, SKINALPHA_LISTBOX_SELECTED); e = get_weaponinfo(stof(argv(i))); draw_Text(me.realUpperMargin * eY, e.message, me.realFontSize, '1 1 1', SKINALPHA_TEXT, 0); }
string toStringNexuizWeaponsList(entity me) { float n, i; string s; entity e; n = tokenize_console(W_NumberWeaponOrder(cvar_string("cl_weaponpriority"))); s = ""; for(i = 0; i < n; ++i) { e = get_weaponinfo(stof(argv(i))); s = strcat(s, e.message, ", "); } return substring(s, 0, strlen(s) - 2); }
string WeaponArenaString() { string s; float n, i, j; entity e; s = cvar_string("g_weaponarena"); if(s == "0") return ""; if(s == "all") return "All Weapons Arena"; if(s == "most") return "Most Weapons Arena"; if(s == weaponarenastring_cvar) return weaponarenastring; if(weaponarenastring) strunzone(weaponarenastring); if(weaponarenastring_cvar) strunzone(weaponarenastring_cvar); weaponarenastring_cvar = strzone(s); n = tokenize_console(s); s = ""; for(i = 0; i < n; ++i) { for(j = WEP_FIRST; j <= WEP_LAST; ++j) { e = get_weaponinfo(j); if(argv(i) == e.netname) s = strcat(s, " & ", e.message); } } s = strcat(substring(s, 3, strlen(s) - 3), " Arena"); weaponarenastring = strzone(s); return weaponarenastring; }