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(); } }