ColourZone
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | ColourZone | |
| Function Description: | Applies a color to a zone marker based on its state, using predefined color schemes for different states. If the state is zero or below, it uses black; otherwise, it assigns colors from the CMM.Marker.Colour.ZoneState array, with specific hues for states 1 through 4, and sets both the marker's text color and fill color accordingly. | |
| File Location: | cmm.ZoneFunctions.lua | |
| Syntax: | CMM.ColourZone( number ZoneState , number ZoneMkrID ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| ZoneState | Integer representing the state of the zone, where 0 means inactive, 1 to 4 correspond to specific color schemes. | |
| ZoneMkrID | Marker ID of the zone marker to apply the color to. | |
| Example: | CMM.ColourZone(3, 12345) | |
| Example Description: | Applies a red text with a red fill to the marker with ID 12345, indicating a zone state of 3. | |
| Related Functions: | ||
| Notes: | ||