ShowItemInLockerList

Tracking Issue: #844

Tags: events

Allows listeners to override the result of SlotShowItemInLockerList

OverrideShowItemInLockerList event

Param Value
EventID OverrideShowItemInLockerList
EventData XComLWTuple
EventSource XComGameState_Item
NewGameState maybe

Tuple contents

Index Name Type Direction
0 bSlotShowItemInLockerList bool inout
1 Slot enum (EInventorySlot) in
2 UnitState XComGameState_Unit in

Listener template

static function EventListenerReturn OnOverrideShowItemInLockerList(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
{
    local XComGameState_Item ItemState;
    local XComLWTuple Tuple;
    local bool bSlotShowItemInLockerList;
    local EInventorySlot Slot;
    local XComGameState_Unit UnitState;

    ItemState = XComGameState_Item(EventSource);
    Tuple = XComLWTuple(EventData);

    bSlotShowItemInLockerList = Tuple.Data[0].b;
    Slot = EInventorySlot(Tuple.Data[1].i);
    UnitState = XComGameState_Unit(Tuple.Data[2].o);

    // Your code here

    Tuple.Data[0].b = bSlotShowItemInLockerList;

    return ELR_NoInterrupt;
}

Source code references