XCOM 2
342 个评价
[WOTC] Facility Overlay Slot Index Fix
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
251.354 KB
2022 年 4 月 10 日 下午 1:26
1 项改动说明 ( 查看 )
您需要 DLC 才能使用该物品。

订阅以下载
[WOTC] Facility Overlay Slot Index Fix

描述
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 条留言
LooseNooseZeusMooseGooseJuice 2022 年 4 月 15 日 上午 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.