💻
pasteware
  • Introduction
  • Namespaces
    • engine_client
    • global_vars
    • renderer
    • config
    • math
    • input
    • cheat
  • Hooks
    • CreateMove
    • PaintTraverse
    • FrameStageNotify
  • Types
    • CUserCmd
    • ang_t
    • vec3_t
    • vec2_t
    • color_t
Powered by GitBook
On this page

Was this helpful?

  1. Hooks

PaintTraverse

Called for each panel that is drawn.

Example

function on_paint_traverse( panel_id ) {
    var panel_name = panel.get_panel_name( panel_id );
    if ( panel_name !== "MatSystemTopPanel" )
        return;
        
    print( "Hello, world!" );
}

hook.add( "PaintTraverse", "on_paint_traverse" );

PreviousCreateMoveNextFrameStageNotify

Last updated 4 years ago

Was this helpful?