XCOM 2
347 betyg
[WOTC] Facility Overlay Slot Index Fix
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
251.354 KB
10 apr, 2022 @ 13:26
1 ändringsnotis ( visa )
Du behöver DLC för att kunna använda denna artikel.

Abonnera för att ladda ner
[WOTC] Facility Overlay Slot Index Fix

Beskrivning
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 kommentarer
LooseNooseZeusMooseGooseJuice 15 apr, 2022 @ 4:26 
Every time I check back in on Xcom 2, you've pulled off some more amazing work. Hope you're doing well my man.