Class ClientHotbarSettings
How a game with more than one hotkey bar shows them: every bar at once, stacked above the first, or one bar at a time with pages.
public static class ClientHotbarSettings
- Inheritance
-
ClientHotbarSettings
- Inherited Members
Remarks
Whose choice is what. How MANY bars there are is the game's decision (HotkeyBarCount), because the server stores and validates every slot on every bar. How they are LAID OUT is the player's: both layouts drive the same slots with the same keys, so nothing about the choice reaches the server.
Why both layouts. Stacked shows everything and costs screen: each extra row pushes the resource bars, the buff strips, the cast bar and the chat log's lower edge up by a row (see UITKHudLayout). Paged costs nothing on screen and shows one bar at a time; holding a bar's modifier shows that bar for as long as it is held, so what a key is about to fire is always what is on screen.
With a single bar neither layout changes anything, which is why the Options row is hidden then rather than offered as a choice between two identical results.
Fields
DefaultLayout
The layout a fresh install uses.
public const ClientHotbarSettings.HotbarLayout DefaultLayout = Stacked
Field Value
Remarks
Stacked, because a game that ships several bars has presumably done so in order that they be seen; paging is the opt-in for a player who wants the screen back.
LayoutLabels
Player-facing names of ClientHotbarSettings.HotbarLayout, indexed by ordinal.
public static readonly string[] LayoutLabels
Field Value
- string[]
Properties
BarCount
Number of bars the game gives every character.
public static int BarCount { get; }
Property Value
Layout
The chosen layout.
public static ClientHotbarSettings.HotbarLayout Layout { get; }
Property Value
Page
The bar a paged hotbar shows while no modifier is held, as a zero-based bar index.
public static int Page { get; }
Property Value
Remarks
Remembered across sessions, like a window position: a player who keeps their gathering tools on the third page should not have to page back to it at every login. Clamped on read, so a count lowered by the game since it was saved lands on a bar that exists.
VisibleRows
How many bars are on screen at once: all of them when stacked, one when paged.
public static int VisibleRows { get; }
Property Value
Methods
SetLayout(HotbarLayout)
Writes the layout and notifies every panel that depends on it.
public static void SetLayout(ClientHotbarSettings.HotbarLayout value)
Parameters
SetPage(int)
Writes the resting page of a paged hotbar.
public static void SetPage(int page)
Parameters
pageint
Remarks
Raises nothing. The only writer is the hotkey bar itself, which repaints as it pages, and nothing else on screen depends on which bar a paged hotbar is showing — every row is the same height, so the panels above it stay where they are.
Events
OnChanged
Raised when the layout changes.
public static event Action OnChanged
Event Type
Remarks
The hotkey bar rebuilds its rows on it, and every panel that sits above the bar moves on it: the Options panel is a separate document, and a layout change that waited for the next scene load would leave the stacked rows drawn under the resource bars until then.