Difference between revisions of "VN fnc artillery menu"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - " |a= " to " |author= ")
m (Text replacement - " |e=" to " |a= |e=")
Line 5: Line 5:
  
 
|author= Ethan Johnson
 
|author= Ethan Johnson
 +
 +
|a=
  
 
|e=
 
|e=

Revision as of 19:25, 5 January 2021

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Ethan Johnson
Argument(s): n/a
Effect(s): unknown

Description

/*
    File: fn_artillery_menu.sqf
    Author: Ethan Johnson
    Date: 2020-04-29
    Last Update: 2020-06-09
    Public: Yes

    Description:
    Artillery master fuction for the menu

    Parameter(s):
    _mode - Mode to call for the menu [STRING, defaults to ""]
    _params - Mode to call for the menu [ARRAY, defaults to []]

    Returns:
    Function reached the end [BOOL]

    Example(s):
    ["init"] call vn_fnc_artillery_menu
*/

#define DISPLAY (uiNamespace getVariable ["vn_artillery_display",displayNull])

#define TITLE    (DISPLAY displayctrl 350)

#define CALLSIGN_LIST    (DISPLAY displayctrl 102)
#define AMMO_LIST    (DISPLAY displayctrl 103)
#define AMMO_DESCRIPTION    (DISPLAY displayctrl 203)
#define AMOUNT_COMBO    (DISPLAY displayctrl 104)
#define BUTTON   (DISPLAY displayctrl 105)
#define MAP    (DISPLAY displayctrl 7001)

#define AMMO_INDEX    (lbCurSel AMMO_LIST)
#define CALLSIGN_INDEX    (lbCurSel CALLSIGN_LIST)
#define CALLSIGN_VALUE    (CALLSIGN_LIST lbValue (lbCurSel CALLSIGN_LIST))
#define AMOUNT_INDEX    (lbCurSel AMOUNT_COMBO)

(Placeholder description extracted from the function header by LM_exportFunctionsToWiki.sqf)

Syntax

Syntax
[] call VN_fnc_artillery_menu;
Return value
Nothing

Examples

Example 1
-