XCOM 2

File information

Last updated

Original upload

Created by

Constapatience

Uploaded by

Constapatience

Virus scan

Safe to use

About this mod

This fixes the squad select screen for ultrawide monitors to make sure the UI lines up with the squad members.

Permissions and credits
IMPORTANT NOTICE: When using this mod in conjuction with either the Larger Starting Squad or More Squad Size Upgrades mods by BlueRaja, make sure you go into the config file (.ini) for those mods and change the setting "TryToFitEveryoneOnSquadSelectScreen" from true to false. If not bad things can happen and make the mods not play well with each other. 
C:\Program Files (x86)\Steam\steamapps\workshop\content\268500\619895689\Config\XComMoreSquadSizeUpgrades.ini 
or 
C:\Program Files (x86)\Steam\steamapps\workshop\content\268500\619922328\Config\XComLargerStartingSquad.ini 
is where you would go to disable the TryToFitEveryonOnSquadSelectScreen. 

Also from various testing I have come to the conclusion that my mod tends to work best with other mods when it is loaded last. I've tend to notice less to no compatiblity issues with other mods when my mod is loaded last. For example when my mod is loaded first then Show Me The Skills is loaded sometimes the ui is set to the normal y level and therefore the extra ui added from Show Me The Skills is overlapping with the buttons at the bottom of the screen. BlueRaja has a detailed discussion post on how mod load order workshttp://steamcommunity.com/workshop/filedetails/discussion/620600092/412446890563673250/ 

--------------------------LatestUpdate v1.7.1 08/01/2016------------------------------------------ 

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.

--------------------------------------------Description----------------------------------------------- 

This fixes the squad select screen for ultrawide monitors to make sure the UI lines up with the squad members. I also wanted to make sure this mod still functions even at the normal aspect ratios (4:3, 16:9, 16:10) in case in the event you need to use a different non-ultrawide monitor for some reason. With my experience with using mods for XCOM 2, it won't let you load a save that has previously used a mod that is now disabled. So I didn't want a user to be unable to progress in their current save in the event he/she needed to switch monitors. 

This mod also fixes the After Action UI (The screen when the squad returns from combat) to have it align properly on (21:9) monitors. 

Currently this is only for Single Player. After I uploaded it I realized I neglected Multi-player. I tried to do a fix for it real quickly but it didn't work so as soon as I figure it out, I will update this mod to also fix the UI for the squad editor for multi-player as well. 

In the config file (XComUISquadSelect_UltraWideFix.ini) steamapps\workshop\content\268500\624476027\Config\XComUISquadSelect_UltraWideFix.ini: 
LIST_WIDTH_BY_SLOTS 
----default value is 6. 
----Used to set how wide you would like the list to be in terms of number of slots and that many slots will be displayed before a scroll bar is needed 

REORDERSLOTS 
---default value is false 
---if set to true it will reorder the slots to ensure the default 6 are always lined up with the models initailly. This is supposed to be used in conjuction when LIST_WIDTH_BY_SLOTS is greater than 6 to allow proper alignment of the slots. 

------------------------------------------------Updates------------------------------------------------------------ 

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