forked from Green-Sky/tomato
make start screen fill up full window
/become the window/
This commit is contained in:
@@ -184,9 +184,18 @@ Screen* StartScreen::render(float, bool&) {
|
||||
const float TEXT_PROCEED_WIDTH = ImGui::CalcTextSize("proceed").x;
|
||||
const float TEXT_BASE_HEIGHT = ImGui::GetTextLineHeightWithSpacing();
|
||||
|
||||
ImGui::SetNextWindowSize({656,334}, ImGuiCond_FirstUseEver);
|
||||
ImGui::Begin("start screen");
|
||||
const ImGuiViewport* viewport = ImGui::GetMainViewport();
|
||||
ImGui::SetNextWindowPos(viewport->WorkPos);
|
||||
ImGui::SetNextWindowSize(viewport->WorkSize);
|
||||
|
||||
constexpr auto bg_window_flags =
|
||||
ImGuiWindowFlags_NoDecoration |
|
||||
ImGuiWindowFlags_NoMove |
|
||||
ImGuiWindowFlags_NoResize |
|
||||
ImGuiWindowFlags_NoSavedSettings |
|
||||
ImGuiWindowFlags_NoBringToFrontOnFocus;
|
||||
|
||||
if (ImGui::Begin("start screen", nullptr, bg_window_flags)) {
|
||||
// TODO: imgui tox profile selector?
|
||||
|
||||
// +----------------------------
|
||||
@@ -451,6 +460,7 @@ Screen* StartScreen::render(float, bool&) {
|
||||
ImGui::TextColored({1.f, 0.5f, 0.5f, 1.f}, "%s", _error_string.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::End(); // start screen
|
||||
|
||||
|
Reference in New Issue
Block a user