XCOM 2
UltraWide Squad Selection UI Fix
Constapatience  [developer] 1 Aug, 2016 @ 9:53pm
Updates
Update 1.7.1: Upodate UIAfterAction code to be a bit better optimized and get rid of some of my hardcoded values so it should funciton better. Fixed the scrollbar issues and added a config option for SCOLLBAR_HEIGHT. That way if for some reason you don't like the scroll bar being at the bottom or want more padding between it and the squad list you can.

Update 1.7: With the added healthbars I fixed some height issues I noticed, specifically with the afteraction screen. I also noticed that this mod doesn't work with the LW Toolbox. I'll try to get it to work with it, although a part of me thinks I might have to create a seperate mod for that specifically.

Update 1.6: Came across an issue with the reordering of slots where everytime the ui refreshed it attempted to reorder again causing the slots to go out of alignment. This has now been fixed. Sorry for any incovience for anyone who may be using that feature.

Update 1.5: Now take full advantage of your ultrawide screen. I added a config file to where you can set how many slots will display before the scrollbar is needed. So you have an Ultrawide monitor and want to use the whole canvase? Well now you can. All you have to do is open up XComUISquadSelect_UltraWideFix.ini and change LIST_WIDTH_BY_SLOTS to the number of slots you would like to be displayed before the scrollbar is need. As for me 8 is the max before it overflows on my ultrawide monitor but maybe with a triple monitor setup you can display more. Infact I kind of wonder if this mod works well with a triple monitor set up. Someone with one should let me know.
BUT WAIT THERES MORE! When you increase the max display slots you can also decide if you want to reorder the slots to have the default 6 always be lined up with the models. In the same file just set REORDER_SLOTS equal to true then your slots will be magically re-ordered with a very magical algorithim that will ensure the default 6 are always lined up. (NOT GURARANTEED TO BE OTHER MOD FRIENDLY... but it should be... I hope). The algorithim, I think, should always work even with squad sizes higher than 8, such as 10 or 12... although I tested it with 10 and things got a little wonky but I don't think it was my mod. Why more than 8 do you ask if you can't have more than 8 before the game gltiches and breaks? My hope is that oneday either fraxis will make a patch or someone will make a mod to support more than 8 soldiers in a squad and if or when that does happen this mod should already be ready for it. Now if I can get rid of all the compatiblity issues that keeps happening with other mods that effect the squad UI.

Update 1.4: Reworked and completely overhauled the mod in attempt to make sure it can be compatiable with other mods. One example was it didn't work with the Show Me The Skills mod. Well now it does. Or at least it should thorugh my testing. Hopefully to this will fix other issues that other users were having that I wasn't able to replicate.

Update 1.3: Discovered an issue with normal squad sizes where before upgrading the squad size the extra slots that appear would cause the scroll bar to appear. I fixed that in this latest change. I apologize for missing that.

UPDATE 1.2: FIXED issue where the mod didn't work well with squad sizes larger than 6. I even cleaned up the UI a bit for those cases. So now you can use this mod in conjunction with Larger Starting Squad and More Squad Size Upgrades by BlueRaja. The only issue I still run into is when a squad member is equiped with heavy armor such as the War Suit and has a heavy weapon, the edit button for the squad member doesn't show up, actaully you have maybe a 5 pixel area to click on it. I'm not sure if that is something to do with my mod as I still experience it without my mod enabled with squad sizes larger than 6. Normal Squad Sizes (6 or less) shouldn't have that problem. I also fixed the height issue I mentioned eariler at the other aspect ratios. The after Action UI (When the solders return after a mission) should remained lined up. Thank you all for your patience. I will still work on trying to to fix the Mutilplayer Squad Select for UltraWide Monitors and if you have any issues please let me know. Thanks.

update 1.1: I realized that the after action ui was still out of alignemnt too so I quickly fixed that and updated this mod so now when your soldiers return from combat the after action ui should line up too.

Update: Removed Src/XComGame folder to decrease dl size. Thanks BlueRaja
Last edited by Constapatience; 1 Aug, 2016 @ 10:06pm