From 1bc46b5d225e2017197ca44d24e43f3b563725f2 Mon Sep 17 00:00:00 2001 From: kelsi davis Date: Sat, 7 Feb 2026 12:23:03 -0800 Subject: [PATCH] Improve login screen UI with simplified text and compatibility mode - Change window title from "WoW 3.3.5a Authentication" to "Authentication" - Change subtitle from "Connect to Authentication Server" to "Connect to Server" - Increase button sizes from 120x0 to 160x40 for better visibility - Add compatibility mode dropdown (currently showing 3.3.5a, extensible for future versions) --- include/ui/auth_screen.hpp | 1 + src/ui/auth_screen.cpp | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/include/ui/auth_screen.hpp b/include/ui/auth_screen.hpp index 3ce18d82..198a8c22 100644 --- a/include/ui/auth_screen.hpp +++ b/include/ui/auth_screen.hpp @@ -46,6 +46,7 @@ private: char username[256] = ""; char password[256] = ""; int port = 3724; + int compatibilityMode = 0; // 0 = 3.3.5a bool authenticating = false; bool showPassword = false; diff --git a/src/ui/auth_screen.cpp b/src/ui/auth_screen.cpp index b6ce9c58..a1765c4e 100644 --- a/src/ui/auth_screen.cpp +++ b/src/ui/auth_screen.cpp @@ -111,9 +111,9 @@ void AuthScreen::render(auth::AuthHandler& authHandler) { } ImGui::SetNextWindowSize(ImVec2(500, 400), ImGuiCond_FirstUseEver); - ImGui::Begin("WoW 3.3.5a Authentication", nullptr, ImGuiWindowFlags_NoCollapse); + ImGui::Begin("Authentication", nullptr, ImGuiWindowFlags_NoCollapse); - ImGui::Text("Connect to Authentication Server"); + ImGui::Text("Connect to Server"); ImGui::Separator(); ImGui::Spacing(); @@ -124,6 +124,10 @@ void AuthScreen::render(auth::AuthHandler& authHandler) { if (port < 1) port = 1; if (port > 65535) port = 65535; + // Compatibility mode dropdown + const char* compatModes[] = { "3.3.5a" }; + ImGui::Combo("Compatibility Mode", &compatibilityMode, compatModes, IM_ARRAYSIZE(compatModes)); + ImGui::Spacing(); ImGui::Separator(); ImGui::Spacing(); @@ -200,12 +204,12 @@ void AuthScreen::render(auth::AuthHandler& authHandler) { authHandler.disconnect(); } } else { - if (ImGui::Button("Connect", ImVec2(120, 0))) { + if (ImGui::Button("Connect", ImVec2(160, 40))) { attemptAuth(authHandler); } ImGui::SameLine(); - if (ImGui::Button("Clear", ImVec2(120, 0))) { + if (ImGui::Button("Clear", ImVec2(160, 40))) { statusMessage.clear(); } }