diff options
| author | untodesu <kirill@untode.su> | 2025-03-15 19:45:36 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-03-15 19:45:36 +0500 |
| commit | f7fbca1200015ddfd4de491e6c52996e6a3353d2 (patch) | |
| tree | f43f9c9005ed86f7ac6b94628915889f2cb56611 /game/client/game.cc | |
| parent | 0a396cde7f9a629038e1d7f85e582155744bc7c7 (diff) | |
| download | voxelius-f7fbca1200015ddfd4de491e6c52996e6a3353d2.tar.bz2 voxelius-f7fbca1200015ddfd4de491e6c52996e6a3353d2.zip | |
After a year finally add direct connection screen
Diffstat (limited to 'game/client/game.cc')
| -rw-r--r-- | game/client/game.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/game/client/game.cc b/game/client/game.cc index dcd463c..e0e02d1 100644 --- a/game/client/game.cc +++ b/game/client/game.cc @@ -34,6 +34,7 @@ #include "client/chunk_visibility.hh" #include "client/const.hh" #include "client/crosshair.hh" +#include "client/direct_connection.hh" #include "client/experiments.hh" #include "client/gamepad.hh" #include "client/glfw.hh" @@ -329,6 +330,7 @@ void client_game::init(void) play_menu::init(); progress_bar::init(); message_box::init(); + direct_connection::init(); crosshair::init(); hotbar::init(); @@ -614,7 +616,7 @@ void client_game::layout(void) background::layout(); } - if(!globals::gui_screen || (globals::gui_screen == GUI_CHAT) || (globals::gui_screen == GUI_DEBUG_WINDOW)) { + if(!globals::gui_screen || (globals::gui_screen == GUI_CHAT)) { if(toggles::draw_metrics && !client_game::hide_hud) { // This contains Minecraft-esque debug information // about the hardware, world state and other @@ -635,7 +637,7 @@ void client_game::layout(void) } if(globals::gui_screen) { - if(session::is_ingame() && (globals::gui_screen != GUI_CHAT) && (globals::gui_screen != GUI_DEBUG_WINDOW)) { + if(session::is_ingame() && (globals::gui_screen != GUI_CHAT)) { const float width_f = static_cast<float>(globals::width); const float height_f = static_cast<float>(globals::height); const ImU32 darken = ImGui::GetColorU32(ImVec4(0.00f, 0.00f, 0.00f, 0.75f)); @@ -652,12 +654,15 @@ void client_game::layout(void) case GUI_SETTINGS: settings::layout(); break; - case GUI_PROGRESS: + case GUI_PROGRESS_BAR: progress_bar::layout(); break; case GUI_MESSAGE_BOX: message_box::layout(); break; + case GUI_DIRECT_CONNECTION: + direct_connection::layout(); + break; } } } |
