-
Notifications
You must be signed in to change notification settings - Fork 8
setMenuValue
MicroBlaster edited this page Nov 11, 2019
·
2 revisions
Purpose: Sets the display value of an existing menu.
Syntax: setMenuValue {menuName} {value}
{menuName}: The name of the menu to have its value set.
{value}: The new value that will be associated with the menu.
Notes: This command will set the display value of a menu that has either been created using the 'addMenu' command, or is part of the TWX Terminal Menu.
To get the display value of a menu, use the 'getMenu' command.
Example:
:sub_SetMenu
if ($evil_haggle)
setMenuValue "Haggling" "ON"
else
setMenuValue "Haggling" "OFF"
end
if ($evil_continue > 0)
setMenuValue "Continue" "YES"
else
setMenuValue "Continue" "NO"
end
if ($evil_broadcast > 0)
setMenuValue "Broadcast" "YES"
else
setMenuValue "Broadcast" "NO"
end
setMenuValue "StealFactor" $evil_stealFactor
setMenuValue "RobFactor" $evil_robFactor
setMenuValue "ShipSetup" $evil_shipSetup
setMenuValue "QuickSetup" $evil_shipSetup
return
.