DrawDebugLabels

Tracking Issue: #490

Tags: events

Allow mods to draw their own debug labels to the screen. Make sure to set 'bDrawDebugLabels = true' in XComGame.ini for this event to start triggering.

DrawDebugLabels event

Param Value
EventID DrawDebugLabels
EventData Canvas
EventSource XComTacticalController
NewGameState none

Listener template

static function EventListenerReturn OnDrawDebugLabels(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
{
    local XComTacticalController TacticalController;
    local Canvas kCanvas;

    TacticalController = XComTacticalController(EventSource);
    kCanvas = Canvas(EventData);

    // Your code here

    return ELR_NoInterrupt;
}

Source code references