Difference between revisions of "VN fnc artillery menu"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "call VN_" to "call [[VN_") |
Lou Montana (talk | contribs) m (Fix mass replace) |
||
Line 50: | Line 50: | ||
|r1d= function reached the end | |r1d= function reached the end | ||
− | |x1= <code>["init"] call [[VN_fnc_artillery_menu</code> | + | |x1= <code>["init"] call [[VN_fnc_artillery_menu]];</code> |
}} | }} |
Latest revision as of 13:12, 3 April 2021
← 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;