summaryrefslogtreecommitdiffstats
path: root/src/game/client/gui/progress_bar.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-12-26 14:50:33 +0500
committeruntodesu <kirill@untode.su>2025-12-26 14:50:33 +0500
commit6c2abde5c99a236453b795abaa6d7d70105e31f7 (patch)
treef085049b9615a7d03cca5de40adb6529d6c13e11 /src/game/client/gui/progress_bar.cc
parentf40d09cb8f712e87691af4912f3630d92d692779 (diff)
downloadvoxelius-6c2abde5c99a236453b795abaa6d7d70105e31f7.tar.bz2
voxelius-6c2abde5c99a236453b795abaa6d7d70105e31f7.zip
Just a big Ctrl+H refactoring
Diffstat (limited to 'src/game/client/gui/progress_bar.cc')
-rw-r--r--src/game/client/gui/progress_bar.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game/client/gui/progress_bar.cc b/src/game/client/gui/progress_bar.cc
index 1732f72..6cc7fae 100644
--- a/src/game/client/gui/progress_bar.cc
+++ b/src/game/client/gui/progress_bar.cc
@@ -12,16 +12,16 @@ constexpr static ImGuiWindowFlags WINDOW_FLAGS = ImGuiWindowFlags_NoBackground |
static std::string str_title;
static std::string str_button;
-static gui::progress_bar_action button_action;
+static progress_bar_action button_action;
-void gui::progress_bar::init(void)
+void progress_bar::init(void)
{
str_title = "Loading";
str_button = std::string();
button_action = nullptr;
}
-void gui::progress_bar::layout(void)
+void progress_bar::layout(void)
{
const auto viewport = ImGui::GetMainViewport();
const auto window_start = ImVec2(0.0f, viewport->Size.y * 0.30f);
@@ -92,20 +92,20 @@ void gui::progress_bar::layout(void)
ImGui::End();
}
-void gui::progress_bar::reset(void)
+void progress_bar::reset(void)
{
str_title.clear();
str_button.clear();
button_action = nullptr;
}
-void gui::progress_bar::set_title(std::string_view title)
+void progress_bar::set_title(std::string_view title)
{
- str_title = gui::language::resolve(title);
+ str_title = language::resolve(title);
}
-void gui::progress_bar::set_button(std::string_view text, const progress_bar_action& action)
+void progress_bar::set_button(std::string_view text, const progress_bar_action& action)
{
- str_button = std::format("{}###ProgressBar_Button", gui::language::resolve(text));
+ str_button = std::format("{}###ProgressBar_Button", language::resolve(text));
button_action = action;
}