OverrideMissionImage

Tracking Issue: #635

Tags: ui, events

Allows overriding the image shown for a mission in the UIMission screen.

OverrideMissionImage event

Param Value
EventID OverrideMissionImage
EventData XComLWTuple
EventSource XComGameState_MissionSite
NewGameState none

Tuple contents

Index Name Type Direction
0 ImagePath string inout

Listener template

static function EventListenerReturn OnOverrideMissionImage(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
{
    local XComGameState_MissionSite MissionState;
    local XComLWTuple Tuple;
    local string ImagePath;

    MissionState = XComGameState_MissionSite(EventSource);
    Tuple = XComLWTuple(EventData);

    ImagePath = Tuple.Data[0].s;

    // Your code here

    Tuple.Data[0].s = ImagePath;

    return ELR_NoInterrupt;
}

Source code references