Readd player list keybind
This commit is contained in:
parent
659a4844bd
commit
653e1addfa
3 changed files with 11 additions and 0 deletions
|
|
@ -62,6 +62,11 @@ void DesktopDrawingProgramScreen::input_key_callback(const InputManager::KeyCall
|
|||
toolbar.open_chatbox();
|
||||
break;
|
||||
}
|
||||
case InputManager::KEY_SHOW_PLAYER_LIST: {
|
||||
if(key.down && !key.repeat)
|
||||
toolbar.toggle_player_list();
|
||||
break;
|
||||
}
|
||||
}
|
||||
DrawingProgramScreen::input_key_callback(key);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -192,6 +192,11 @@ void Toolbar::close_chatbox() {
|
|||
}
|
||||
}
|
||||
|
||||
void Toolbar::toggle_player_list() {
|
||||
playerMenuOpen = !playerMenuOpen;
|
||||
main.g.gui.set_to_layout();
|
||||
}
|
||||
|
||||
void Toolbar::layout_run() {
|
||||
auto& gui = main.g.gui;
|
||||
auto& io = gui.io;
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ class Toolbar {
|
|||
|
||||
void open_chatbox();
|
||||
void close_chatbox();
|
||||
void toggle_player_list();
|
||||
|
||||
bool drawGui = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue