Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:3.4

Description

Description:Defines the paths for the state icons to use in a statebox control.

Syntax

Syntax:control sbSetStates states
Parameters:
  • control: Control - Statebox control.
  • states: Array - Paths to state icons. If the path starts with a drive letter, then that absolute path is used. If it starts with a backslash (\), then in-game resources (standard and custom addons) are used. Otherwise, the icons are taken from the mission folder, or the specified sub-folder.
Return Value:Nothing

Examples

Examples:
_sb sbSetStates ["\vbs2\ui\data\stateOn.paa","\vbs2\ui\data\stateOff.paa"] 
_sb sbSetStates ["c:\tst\icon1.paa","c:\tst\icon2.paa"] 

Additional Information

See also: sbGetStates, sbSetCurrentState,
Multiplayer:
Problems:In version before V3.6, no drive letter can be specified - images are always taken from the internal VBS resources.

Notes