The skills along the bottom of the screen: the swing first, on Space, then the others, each on a number key: 1 for the first, and so on, up to nine, and then a row above it, on the same keys with Shift. They start in the order of their levels, and the player drags one onto another to swap them.
Definition at line 19 of file hotbar.h.
| std::optional< uint32_t > nanommo::Hotbar::Build |
( |
const std::vector< Figure > & | figures, |
|
|
const protocol::World & | world, |
|
|
uint32_t | target, |
|
|
uint32_t | target_player = 0 ) |
Draws each skill with its icon and its key, and how long until it's ready, or, while the player doesn't know it, the level it needs, or Learn once they've reached it. A skill that hits one monster is red while they've picked none, by its id in target, or the player in target_player, an opponent in a duel or an enemy at war, as the server runs them up to the one they picked, however far. Returns the skill the player used, with its key or a click.
Definition at line 141 of file hotbar.cc.