UIAvengerShortcuts_ShowCQResistanceOrders

Tracking Issue: #368

Tags: ui, events

Allows overriding whether the resistance orders button should be shown in UIAvengerShortcuts. Default: After the first month if any faction met.

UIAvengerShortcuts_ShowCQResistanceOrders event

Param Value
EventID UIAvengerShortcuts_ShowCQResistanceOrders
EventData XComLWTuple
EventSource UIAvengerShortcuts
NewGameState none

Tuple contents

Index Name Type Direction
0 ShouldShow bool inout

Listener template

static function EventListenerReturn OnUIAvengerShortcuts_ShowCQResistanceOrders(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
{
    local UIAvengerShortcuts ShortcutsScreen;
    local XComLWTuple Tuple;
    local bool ShouldShow;

    ShortcutsScreen = UIAvengerShortcuts(EventSource);
    Tuple = XComLWTuple(EventData);

    ShouldShow = Tuple.Data[0].b;

    // Your code here

    Tuple.Data[0].b = ShouldShow;

    return ELR_NoInterrupt;
}

Source code references