Repository navigation
Styles
<required argument:type restrictions>
[optional argument:type restrictions]
For example:
<level:int 0-100>
Would imply a required argument that is an integer of the values 0 to 100 (inclusive)
Not to be mixed up with EffectColors (see below)
A hexicode (0-F) value in the form of either:
0xAARRGGBB0xRRGGBB
Mapping to the Alpha/Red/Green/Blue fields of a color. The latter assumes an Alpha value of 0xFF
For example: 0xFFFFFFFF would be White.
font-color, border-color, and bg-color accept all 148 CSS named colors, including spelling aliases such as gray/grey and aqua/cyan. Names are case-insensitive and need no quotes.
Named colors compile to the same RGBA values as their six-digit hex equivalents, with alpha 255 even for bg-color. transparent compiles to 0 0 0 0. Use a component setter to adjust alpha:
accent {
font-color: black;
border-color: RebeccaPurple;
bg-color: transparent;
border-color-alpha: 128;
}
currentColor and system color keywords are unsupported. Icons and pillars use the separate EffectColor list below.
Value of 0 or more.
True or False, non case sensitive.
Some words. Encapsulating with quotes "..." will let you include spaces in the string.
This and That will provide three arguments, without spaces.
"This and That" will provide a single argument, with spaces.
Specific list of color strings that are supported by Icon and Pillar. Not to be mixed up with HexColors
- Red,
- Green
- Blue
- Brown
- White
- Yellow
- Cyan
- Grey
- Orange
- Pink
- Purple
Specific list of string for minimap icon shapes
- Circle
- Diamond
- Hexagon
- Square
- Star
- Triangle
- Cross
- Moon
- Raindrop
- Kite
- Pentagon
- UpsideDownHouse
show: <boolean>
Show vs Hide commands
border-color: <color:hexcolor>
border-color: <color:NamedColor>
border-color: <red:int 0-255> <green:int 0-255> <blue:int 0-255> [alpha:int 0-255]
SetBorderColor
border-color-alpha: <alpha:int 0-255>
Writes the Alpha field of SetBorderColor without modifying the other fields.
border-color-red: <red:int 0-255>
Writes the Red field of SetBorderColor without modifying the other fields.
border-color-blue: <blue:int 0-255>
Writes the Blue field of SetBorderColor without modifying the other fields.
border-color-green: <green:int 0-255>
Writes the Green field of SetBorderColor without modifying the other fields.
font-color: <color:hexcolor>
font-color: <color:NamedColor>
font-color: <red:int 0-255> <green:int 0-255> <blue:int 0-255> [alpha:int 0-255]
SetTextColor
font-color-alpha: <alpha:int 0-255>
Writes the Alpha field of SetTextColor without modifying the other fields.
font-color-red: <red:int 0-255>
Writes the Red field of SetTextColor without modifying the other fields.
font-color-blue: <blue:int 0-255>
Writes the Blue field of SetTextColor without modifying the other fields.
font-color-green: <green:int 0-255>
Writes the Green field of SetTextColor without modifying the other fields.
bg-color: <color:hexcolor>
bg-color: <color:NamedColor>
bg-color: <red:int 0-255> <green:int 0-255> <blue:int 0-255> [alpha:int 0-255]
SetBackgroundColor
When numeric RGB values omit alpha, it defaults to 240. Border and font colors default to 255, matching GGG.
bg-color-alpha: <alpha:int 0-255>
Writes the Alpha field of SetBackgroundColor without modifying the other fields.
bg-color-red: <red:int 0-255>
Writes the Red field of SetBackgroundColor without modifying the other fields.
bg-color-blue: <blue:int 0-255>
Writes the Blue field of SetBackgroundColor without modifying the other fields.
bg-color-green: <green:int 0-255>
Writes the Green field of SetBackgroundColor without modifying the other fields.
font-size: <size:int 1-45>
SetFontSize
alert: <id:int 1-16> [volume:int 0-300] [style:"global"|"positional"]
Omitted arguments preserve values supplied by earlier styles. The sound uses global when a style has yet to supply its position setting.
alert: <"Enabled"|"Disabled">
global arg will map to PlayAlertSound vs positional arg will map to PlayAlertSoundPositional
alert: 10 150 positional;
alert: 15 100 global;
alert: enabled;
The "enabled"|"disabled" override will enable/disable the alert sound, but still preserve inherited properties. This you can re-enable an alert in a nested block and still maintain prior stylings without needing to re-declare them.
alert-id: <id:int 1-16>
Maps to the Id field of PlayAlertSound / PlayAlertSoundPositional without modifying other fields.
alert-volume: <volume:int 0-300>
Maps to the Volume field of PlayAlertSound / PlayAlertSoundPositional without modifying other fields.
alert-style: <"global"|"positional">
Configures to whether the alert fields bind to PlayAlertSound vs PlayAlertSoundPositional
alert-path: <path:string>
alert-path: <"enabled"|"disabled">
Maps to the CustomAlertSound command.
Setting a path selects a custom sound. alert-path: disabled; switches back to the stored built-in sound settings, and alert-path: enabled; selects the stored custom path again.
Setting alert-id, alert-volume, alert-style, or a numeric alert selects the built-in sound. alert: enabled; selects it too.
alert: disabled; disables the built-in sound. Use alert-path: disabled; to disable the custom sound.
drop-sound: <"enabled"|"disabled">
Maps to the either the DisableDropSound or the EnableDropSound command.
icon: <size:int 0-2> [color:EffectColor] [shape:IconShape]
icon: <"enabled"|"disabled">
icon: 1 Red Circle;
icon: 2 Cyan UpsideDownHouse;
icon: enabled;
MinimapIcon
An icon needs a size, color, and shape before it appears in the output. You can supply these in separate classes, as shown in the Code Guide.
icon: enabled; restores an icon using its stored properties.
The "enabled"|"disabled" override will enable/disable the minimap icon, but still preserve inherited properties. This you can re-enable an icon in a nested block and still maintain prior stylings without needing to re-declare them.
icon-size: <size:int 0-2>
The "Size" field of MinimapIcon without modifying other values
icon-color: <color:EffectColor>
The "Color" field of MinimapIcon without modifying other values
icon-shape: <shape:IconShape>
The "Shape" field of MinimapIcon without modifying other values
pillar: <color:EffectColor> [duration:"Permanent"|"Temporary"]
Omitting duration preserves the duration supplied by earlier styles. A pillar is permanent when a style has yet to supply its duration.
pillar: <"enabled"|"disabled">
pillar: Red Permanent;
pillar: Cyan Temporary;
pillar: enabled;
PlayEffect
A pillar needs a color before it appears in the output. You can supply the color and duration in separate classes.
pillar: enabled; restores a pillar using its stored properties.
The "enabled"|"disabled" override will enable/disable the pillar effect, but still preserve inherited properties. This you can re-enable a pillar in a nested block and still maintain prior stylings without needing to re-declare them.
pillar-color: <color:EffectColor>
The "Color" field of PlayEffect without modifying other values
pillar-duration: <duration:"Permanent"|"Temporary">
The "Visualization" field of PlayEffect without modifying other values