VN_fnc_artillery_menu
Jump to navigation
Jump to search
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Ethan Johnson |
|
Description
Artillery Menu master function
Syntax
- Syntax
- [mode, params] call VN_fnc_artillery_menu
- Parameters
- mode: String - (Optional, default
""
) mode to call for the menu. Case-insensitive. Can be one of:- "init"
- "draw"
- "radio:type"
- "onLoad"
- "onUnload"
- "lbSelChanged"
- "mouseButtonDown"
- "mouseButtonUp"
- "mouseMoving"
- "gui:setup"
- "gui:clear"
- "gui:combo:ammo"
- "gui:combo:callsign"
- "gui:combo:amount"
- "gui:combo:callsign"
- "gui:button:bombardment"
- params: Array - (Optional, default
[]
) arguments. Can be:- for "init" and "onLoad": [Display]
- for "lbSelChanged": Array of Numbers, format [ctrlIndex, lbIndex]
- for "mouseButtonDown" and "mouseButtonUp": same as their respective event handlers, e.g ["_ctrl", "_button", "_xPos", "_yPos", "_shift", "_ctrl", "_alt"]
- for "mouseMoving": same as its respective event handler, e.g ["_ctrl", "_xPos", "_yPos", "_mouseOver"]
- Return value
- Boolean - function reached the end
Examples
- Example 1
["init"] call VN_fnc_artillery_menu;