minimap_toolbar_button 
Vars | |
| button_slot | Vertical slot index (0 = topmost). Used by reposition_toolbar_buttons to calculate screen_loc. |
|---|---|
| display | The minimap display this button controls. |
| draw_color | Draw color this button represents. null = erase mode. |
| last_drag_x | Coordinates of the last drag position during drawing. |
| mouse_icon | Mouse cursor icon set when this button's tool is active. null = default cursor. |
| tool_key | HUD key for this tool button. Used to track selection state. |
Procs | |
| is_active | Returns TRUE if this button should be shown as active. |
| on_activate | Called when this button is activated as the active tool. |
| on_click | Called on click. Override to implement click behavior like label placement. |
| on_deactivate | Called when this button is deactivated. |
| on_mouse_drag | Called during mouse drag on the map. Override to implement tool behavior. |
| on_mouse_up | Called on mouse up. Override to clean up tool state. |
| update_active_state | Updates the button's visual state to show if it's active. |
Var Details
button_slot 
Vertical slot index (0 = topmost). Used by reposition_toolbar_buttons to calculate screen_loc.
display 
The minimap display this button controls.
draw_color 
Draw color this button represents. null = erase mode.
last_drag_x 
Coordinates of the last drag position during drawing.
mouse_icon 
Mouse cursor icon set when this button's tool is active. null = default cursor.
tool_key 
HUD key for this tool button. Used to track selection state.
Proc Details
is_active
Returns TRUE if this button should be shown as active.
on_activate
Called when this button is activated as the active tool.
on_click
Called on click. Override to implement click behavior like label placement.
on_deactivate
Called when this button is deactivated.
on_mouse_drag
Called during mouse drag on the map. Override to implement tool behavior.
on_mouse_up
Called on mouse up. Override to clean up tool state.
update_active_state
Updates the button's visual state to show if it's active.