settings
r12
If you have LibSlash installed, settings can be set via /sqr or /squared. The syntax is as follows: /squared option value(s) - if you omit any values, the current value of the setting will be displayed instead.
So for instance, to set the border color, I'd use the following command:
- /sqr bordercolor 100 50 100
If you don't have LibSlash, you can get and set options via /script and Lua function instead:
- Squared.GetSetting("option")
- Squared.SetSetting("option", value)
Help with values:
- Settings that are toggles can be set to (true, on, 1 or yes) to activate them, or (false, off, 0, or no) to deactivate them.
- Settings that are numbers can be set to any number.
- Settings that are directions typically have 4 options: (up, down, left, right)
- Settings that are colors are set as RGB (red, green, blue) triplets, which can be entered with most normal separators, spaces included.
The following default settings are available for Squared:
| Setting | Default | Description |
| fgcolor | 0 150 0 | The default color of the bars. |
| bgcolor | 0 0 0 | The default background of the bars. |
| bordercolor | 128 128 128 | The default border color of the bars. |
| groupbordercolor | 200 200 200 | The color of the border for people in the same group as you. |
| targetbordercolor | 255 255 255 | The color of the border for a unit you're currently targeting. |
| textcolor | 255 255 255 | The default text color. |
| boxheight | 68 | The height of each bar. |
| boxwidth | 68 | The width of each bar. |
| bordersize | 4 | The size of the border around each bar. |
| alpha | 1.0 | The tranparency value for each bar (1.0 = opaque, 0.0 = invisible). |
| namelength | 5 | The length to which names are truncated. |
| showicon | true | Whether or not to show the icons on bars (for now, just class icons). |
| showmenu | true | Whether or not to enable right-clicks showing the options menu for units in group/warband mode. |
| direction-group | down | The direction in which groups are ordered away from the anchor. |
| direction-member | right | The direction in which group members are ordered away from the first member of the group. |
| direction-fill | up | The direction in which the health bar fills within the unit's box. |
| disable-default | false | Whether or not to disable the solo-player display mode. |
| disable-group | false | Whether or not to disable the group display mode. |
| disable-warband | false | Whether or not to disable the warband display mode. |
| disable-scenario | false | Whether or not to disable the scenario display mode. |
| color-classnames | false | Whether or not to color names by class type. |
| color-classbars | false | Whether or not to color bars by class type. |
| color-hpnames | false | Whether or not to color names by hp status. |
| color-hpbars | false | Whether or not to color bars by hp status. |
| color-hpborders | false | Whether or not to color borders by hp status. |
| hp-high | 80 | The percentage threshold below which a unit will be considered to have "high" hp (above this, the default color will be used). |
| hp-medium | 50 | The percentage threshold below which a unit will be considered to have "medium" hp. |
| hp-low | 25 | The percentage threshold below which a unit will be considered to have "low" hp. |
Facts
- Date created
- 25 Sep 2008