XCOM 2
251 ratings
[WOTC] Facility Overlay Slot Index Fix
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
251.354 KB
Apr 10, 2022 @ 1:26pm
1 Change Note ( view )
You need DLC to use this item.

Subscribe to download
[WOTC] Facility Overlay Slot Index Fix

Description
What is this?
This is a bug fix mod for other mods to use.

Creates a tuple to allow custom facilities/slots to adjust the discrepancy between the UI Icon Index displayed in the facility overlay with the actual Facility Slot Index.
This happens when a facility has locked/hidden slots from an upgrade template.

Config/Options/Player Use
No options on this, its on the mod authors to implement the fix by Event Listener in affected facility mods.

For Mod Authors
Implement an Event Listener in your mod for the following tuple;
OverrideTuple = new class'XComLWTuple'; OverrideTuple.Id = 'OverrideGridSlotIndexTuple'; OverrideTuple.Data.Add(2); OverrideTuple.Data[0].kind = XComLWTVBool; // use override hook OverrideTuple.Data[0].b = bUseOverride; OverrideTuple.Data[1].kind = XComLWTVInt; // UI Icon index in - Facility Slot index out OverrideTuple.Data[1].i = SlotIndex; `XEVENTMGR.TriggerEvent('OverrideGridSlotIndex', OverrideTuple, Facility, none);
Please see Psionics Ex Machina , X2EventListener_StaffIconIndexFix_PexM
or Combined Workshop Lab , X2EventListener_StaffIconIndexFix_Combi for working examples

Compatibility
Works perfectly fine with, and is recommended to be used alongside this mod by -bg-
Facility Clearing UI Indicator Fix
That fix is now integrated into Highlander v1.26.3+

Has an MCO for UIStaffIcon.uc. I can't think of anything else that does...

Credits
Many thanks to the XCOM2 and MEME Modders discords for always supporting me.

~ Enjoy !! and please buy me a Cuppa Tea[www.buymeacoffee.com] :)
1 Comments
LooseNooseZeusMooseGooseJuice Apr 15, 2022 @ 4:26am 
Every time I check back in on Xcom 2, you've pulled off some more amazing work. Hope you're doing well my man.