diff options
| author | untodesu <kirill@untode.su> | 2025-12-30 13:20:33 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-12-30 13:20:33 +0500 |
| commit | a1c83d56f41e6f2e0ad86dcd76d1446bfc60a37c (patch) | |
| tree | 5754f0cd6ef3678c2e9d9c31174ae435d463c8ed /src/game/client/gui | |
| parent | 49d3dff9e98e70e599dfd3059f85bb08ae247fe5 (diff) | |
| download | voxelius-a1c83d56f41e6f2e0ad86dcd76d1446bfc60a37c.tar.bz2 voxelius-a1c83d56f41e6f2e0ad86dcd76d1446bfc60a37c.zip | |
begin working on qf ports (#21)
Diffstat (limited to 'src/game/client/gui')
| -rw-r--r-- | src/game/client/gui/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | src/game/client/gui/settings.hh | 1 | ||||
| -rw-r--r-- | src/game/client/gui/window_title.cc | 19 | ||||
| -rw-r--r-- | src/game/client/gui/window_title.hh | 15 |
4 files changed, 2 insertions, 37 deletions
diff --git a/src/game/client/gui/CMakeLists.txt b/src/game/client/gui/CMakeLists.txt index e3d8b7a..3eae65f 100644 --- a/src/game/client/gui/CMakeLists.txt +++ b/src/game/client/gui/CMakeLists.txt @@ -37,6 +37,4 @@ target_sources(vclient PRIVATE "${CMAKE_CURRENT_LIST_DIR}/splash.cc" "${CMAKE_CURRENT_LIST_DIR}/splash.hh" "${CMAKE_CURRENT_LIST_DIR}/status_lines.cc" - "${CMAKE_CURRENT_LIST_DIR}/status_lines.hh" - "${CMAKE_CURRENT_LIST_DIR}/window_title.cc" - "${CMAKE_CURRENT_LIST_DIR}/window_title.hh") + "${CMAKE_CURRENT_LIST_DIR}/status_lines.hh") diff --git a/src/game/client/gui/settings.hh b/src/game/client/gui/settings.hh index 1a3a1f8..b48ab8c 100644 --- a/src/game/client/gui/settings.hh +++ b/src/game/client/gui/settings.hh @@ -94,6 +94,7 @@ void add_gamepad_button(int priority, config::GamepadButton& value, settings_loc namespace settings { void add_language_select(int priority, settings_location location, std::string_view name); +void add_video_mode_select(int priority, settings_location location, std::string_view name); } // namespace settings #endif diff --git a/src/game/client/gui/window_title.cc b/src/game/client/gui/window_title.cc deleted file mode 100644 index ea65b64..0000000 --- a/src/game/client/gui/window_title.cc +++ /dev/null @@ -1,19 +0,0 @@ -// SPDX-License-Identifier: BSD-2-Clause -// Copyright (c) 2025 Kirill Dmitrievich -// File: window_title.cc -// Description: Random MOTD in the window title - -#include "client/pch.hh" - -#include "client/gui/window_title.hh" - -#include "core/version.hh" - -#include "shared/splash.hh" - -#include "client/globals.hh" - -void window_title::update(void) -{ - glfwSetWindowTitle(globals::window, std::format("Voxelius {}: {}", version::triplet, splash::get()).c_str()); -} diff --git a/src/game/client/gui/window_title.hh b/src/game/client/gui/window_title.hh deleted file mode 100644 index 78f7326..0000000 --- a/src/game/client/gui/window_title.hh +++ /dev/null @@ -1,15 +0,0 @@ -// SPDX-License-Identifier: BSD-2-Clause -// Copyright (c) 2025 Kirill Dmitrievich -// File: window_title.hh -// Description: Random MOTD in the window title - -#ifndef CLIENT_GUI_WINDOW_TITLE_HH -#define CLIENT_GUI_WINDOW_TITLE_HH -#pragma once - -namespace window_title -{ -void update(void); -} // namespace window_title - -#endif |
