UIStrategyPolicy_ShowCovertActionsOnClose

Tracking Issue: #365

Tags: ui, events

Allows overriding whether to show the UICovertActions screen after closing the UIStrategyPolicy screen.

Default: Show if UIStrategyPolicy was created as part of the end-of-month report and no covert actions are in progress.

UIStrategyPolicy_ShowCovertActionsOnClose event

Param Value
EventID UIStrategyPolicy_ShowCovertActionsOnClose
EventData XComLWTuple
EventSource UIStrategyPolicy
NewGameState none

Tuple contents

Index Name Type Direction
0 ShouldShow bool inout

Listener template

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

    Tuple = XComLWTuple(EventData);

    ShouldShow = Tuple.Data[0].b;

    // Your code here

    Tuple.Data[0].b = ShouldShow;

    return ELR_NoInterrupt;
}

Source code references