From 6032ae108064650324b2c45352e1baa5b36961cc Mon Sep 17 00:00:00 2001 From: rtk0c Date: Mon, 29 Mar 2021 13:47:55 -0700 Subject: Project tab --- core/src/Entrypoint/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/src/Entrypoint') diff --git a/core/src/Entrypoint/main.cpp b/core/src/Entrypoint/main.cpp index 9f57a5e..39943d6 100644 --- a/core/src/Entrypoint/main.cpp +++ b/core/src/Entrypoint/main.cpp @@ -6,6 +6,7 @@ #include "Entrypoint/OpenGL3.hpp" #include "Entrypoint/Vulkan.hpp" #include "UI/Localization.hpp" +#include "UI/States.hpp" #include "UI/UI.hpp" #include "Utils/I18n.hpp" #include "Utils/Sigslot.hpp" @@ -137,11 +138,13 @@ int main(int argc, char* argv[]) { config.MergeMode = true; ImGui::GetIO().Fonts->AddFontFromFileTTF("fonts/FontAwesome5-Solid.otf", 14, &config, iconRanges); - I18n::reloadSignal.Connect([]() { LocaleStrings::Instance = std::make_unique(); }); + I18n::OnReload.Connect([]() { LocaleStrings::Instance = std::make_unique(); }); // Do i18n intialization after linking reload signals, so that when SetLanguage() is called, the locale strings will be initialized (without us writing the code another time outside the slot) I18n::Init(); I18n::SetLanguage("zh_CN"); + UIState::Init(); + auto window = backend->GetWindow(); while (!glfwWindowShouldClose(window)) { backend->BeginFrame(); -- cgit v1.2.3-70-g09d2