then again, i have to admit, 4.3 ones are way better scripted/programmed, and way easier to maintain.
e.g. they make use of dynamic lists and uiScripts to display the menus, instead of having two items per weapon. and a 2k line code just for the primary selection menu.
Anyways. i got bored:
i wrote a MATLAB script , which generates a 4.1ish styled gear selection menu.
why a script?
well. easier to maintain. if a script creates all those selection menus for you, does all the position calculation and stuff, you can do it the "4.1 way", without a shitton of work
why matlab?
hm. faster for simple tasks, easier to maintain, has dynamic allocations, concatenate,...
in the end C would probably have ended up with the same cluttered code.... :S
This is what it looks like:
screenshot:
main features:
a) hotkeys
b) no scrolling list
c) icons
d) bigger buttons
e) doesnt create any sort of flood protection problem
d) a "comparison" view between the currently equipped and selected/focused weapon to the right of the window
the "tmp" items are placeholders for the 4 weapons to be added with 4.3
NOTES/KNOWN BUGS:
1)the "current" weapon doesnt detail show atm.
2)the "current" item always displays Item one, this is to make the code easier for now, and will obviously be changed in the future ;)
download:
current version - mediafire, 18kB
NOTE: that this breaks your URT main menu. you need to delete the .pk3 after testing
NOTE: its working in 4.2 only atm, due to uiScripts i used, which dont seem to exist in 4.3 anymore.
//edit Iye:
v5 now up
This post has been edited by Iye: 14 February 2016 - 01:24 AM