Hotbar

<
>
February 9, 2022

So far there were no UI elements to control the game directly. I’ve shown text at the top of the screen with hints on which button to press to perform an action.
I finally added a hotbar which is now used to open the different views, perform actions or toggle settings.
It will also highlight active views or settings as seen below.

It’s also pretty easy to add new buttons to the hotbar:

...
buttons.push(HotbarButton {
    texture: Texture::StructureSelect,
    tooltip: "Structure Select [2]".into(),
    event: ClientEvent::ToggleUIOverlay(Some(UIOverlay::StructureSelect)),
    active: self.overlay == Some(UIOverlay::StructureSelect),
    indendation: 0,
});
...