
NxLabs / Insurgency: Sandstorm
Map Vote Screen Icon Rework
Beta testing for Map Vote labels Icon addition

Description
Just some beta testing. This will be added eventually to MapVoteLabels as a branch alternative mutator. This is a stripped down Map Vote HUD with icons added and full config allowed for external links, icons, colors, labels, mapnames, etc. The goal is to allow for a great variety of mutators to be represented easily on the existing map vote screen. You may need to remove MapVoteLabels files in order for this to function.
This is here to provide opportunity for feedback on UI and configuration.
Mutator=MapIcons
AUTO SELECT
Config is below:
[/MapVoteLabels/Mutator/MapIcons.MapIcons_C] ;Server info header. If any are defined as "", then the associated text will be hidden ServerIconURL="https://static.wikia.nocookie.net/insurgency/images/6/64/Security_Banner.png/revision/latest?cb=20181125111429" DiscordURL="https://discord.gg/insurgencysandstorm" AdminURL="https://mod.io/g/insurgencysandstorm" WebsiteURL="https://newworldinteractive.com/"
;If true, then only label will be used for all maps. No Mapname - label format. Just Label bDisableMapname=False
;If true, then the label will simply be ignored when left empty and the gamemode will NOT be auto-populated bDisableGamemode=False
;Bottom button row config bRemoveRandomButton=True bRestoreOtherScenariosButton=True bRemovePlayAgainButton=False
;Auto-icon selection config. ;Master switch. If false, then no icon selection will be done at all. IconOrder is only used if bAutoIcon=True bAutoIcon=True ;Icon order sets the icons that will be auto-selected and the order. Note that the order will be in reverse since the icons fill from right to left. IconX are the custom keywords defined below. Lighting and Weather are also available, but excluded by default. IconOrder="Faction,Mode,Loadout,Supply,Icon1,Icon2"
;custom icon selection by setting keyword to a string to search for in mutator list for map. If keyword is found, then icon will be added keyword1="NoNVG" icon1="Flashlight,Only" keyword2="NoRestrictedArea" icon2="NoZones,NoZones,Green"
;Colors are auto-selected for faction and lighting. The others default to white but can be configured using the following: ModeColor=White LoadoutColor=White SupplyColor=White Icon1Color=White Icon2Color=White
MANUAL SELECT
Once icon selection is used or disabled you can additionally assign icons on a per map basis for additional icons or for all manual setting of all icons. Text in all caps is shown to demonstrate which arguments are labels and which are not. Syntax for icons goes as follows where <> represents optional argument: icon_name,<icon_label>,<color>;icon_name,<icon_label>,<color>;... In order to set a color without the label you would need to do a blank label like the following: Icons=Pistol, ,Red;
(Scenario="Scenario_Bab_Checkpoint_Security",Lighting="Night",Options="?mutators=PistolsOnly?Mapname=BAB!!!?Label=LABEL?Icons=Pistol,PISTOL;Sec,SEC,Blue;Mode,CP;Night,NIGHT,Red")
Icon Options: Day, Night, Difficulty, Count, Ins, Sec, Mode, ISMC, NoZones, Pistol, Time, Shotgun, Waves, Sandstorm44, Supply, Flashlight
Color Options: Red, Green, Blue, Orange, White (default or unassigned)
NOTES:
-% is NOT ALLOWED in labels since this will brick your mapcycle and server will crash -COMMAS and SEMI-COLONS are RESERVED as delimiters in icon arguments and neither can be used in labels -Icon names are CASE SENSITIVE so they must have the letters capitalized as above -SERVER ICON should be something close to 1024X1024 PNG. Other formats may work, but were found to fail periodically. -If using with dynamic weather, then you need to remove the Lighting="xxx" from your mapcycle in order to use the appropriate loading screen and vote screen. -If the last map vote screen in the rotation has only 1 or 2 maps, then map icons will not be loaded for those maps due to the offset created by having less than 3.
FUTURE IMPROVEMENTS(?):
- Infinite map cycle instead of ending map rotation
- Larger icon option
- Cleanup link header to look better when certain links are hidden
BUGS:
Ratings & reviews
Sign in to leave a rating or comment.