[WOTC] Facility Overlay Slot Index Fix

If you liked this item, please rate it up on Steam Workshop page.

Author: RustyDios

Last revision: 10 Apr, 2022 at 20:26 UTC

File size: 245.76 KB

On Steam Workshop

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 for a working example

Compatibility

Works perfectly fine with, and is recommended to be used alongside this mod by -bg-
Facility Clearing UI Indicator Fix

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] 🙂

Download
Required DLC:

These DLC should be installed in order to use this item.


XCOM 2: War of the Chosen
Required items:

Click the title to search on this site.


X2WOTCCommunityHighlander v1.24.0Steam Workshop