Difference between revisions of "VN fnc artillery menu"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (1 revision imported) |
Lou Montana (talk | contribs) m (Fix mass replace) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
|v= 1.00 | |v= 1.00 | ||
− | | | + | |author= Ethan Johnson |
− | |e= | + | |a= |
+ | |||
+ | |e= local | ||
|g1= artillery_functions | |g1= artillery_functions | ||
− | |d= | + | |d= Artillery Menu master function |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |s= [] call [[VN_fnc_artillery_menu]] | + | |s= [mode, params] call [[VN_fnc_artillery_menu]] |
− | |p1n= | + | |p1n= mode |
− | |p1t= | + | |p1t= string |
− | |p1d= | + | |p1d= mode to call for the menu. Case-insensitive. Can be one of: |
− | |p1v= | + | <div style="columns: 4"> |
+ | * <tt>"init"</tt> | ||
+ | * <tt>"draw"</tt> | ||
+ | * <tt>"radio:type"</tt> | ||
+ | * <tt>"onLoad"</tt> | ||
+ | * <tt>"onUnload"</tt> | ||
+ | * <tt>"lbSelChanged"</tt> | ||
+ | * <tt>"mouseButtonDown"</tt> | ||
+ | * <tt>"mouseButtonUp"</tt> | ||
+ | * <tt>"mouseMoving"</tt> | ||
+ | * <tt>"gui:setup"</tt> | ||
+ | * <tt>"gui:clear"</tt> | ||
+ | * <tt>"gui:combo:ammo"</tt> | ||
+ | * <tt>"gui:combo:callsign"</tt> | ||
+ | * <tt>"gui:combo:amount"</tt> | ||
+ | * <tt>"gui:combo:callsign"</tt> | ||
+ | * <tt>"gui:button:bombardment"</tt> | ||
+ | </div> | ||
+ | |p1v= "" | ||
− | |p2n= | + | |p2n= params |
− | |p2t= | + | |p2t= array |
− | |p2d= | + | |p2d= arguments. Can be: |
− | |p2v= | + | * for <tt>"init"</tt> and <tt>"onLoad"</tt>: [{{Biki|Display}}] |
+ | * for <tt>"lbSelChanged"</tt>: {{Biki|Array}} of {{Biki|Number|Numbers}}, format [ctrlIndex, lbIndex] | ||
+ | * for <tt>"mouseButtonDown"</tt> and <tt>"mouseButtonUp"</tt>: same as {{Biki|User Interface Event Handlers#onMouseButtonDown|their respective event handlers}}, e.g ["_ctrl", "_button", "_xPos", "_yPos", "_shift", "_ctrl", "_alt"] | ||
+ | * for <tt>"mouseMoving"</tt>: same as {{Biki|User Interface Event Handlers#onMouseMoving|its respective event handler}}, e.g ["_ctrl", "_xPos", "_yPos", "_mouseOver"] | ||
+ | |p2v= [] | ||
− | |r1t= | + | |r1t= boolean |
− | |r1d= | + | |r1d= function reached the end |
− | |x1= <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;