static int WindowWidth = 300;
static int WindowHeight = 180;
//Our state
static bool open = true;
bool remember = false;
char username[15] = "";
char password[15] = "";
ImGui::SetNextWindowSize(ImVec2(WindowWidth, WindowHeight), ImGuiCond_Once);
ImGui::SetNextWindowPos(ImVec2(0, 0), ImGuiCond_Once);
{
ImGui::Begin("Login Panel", &open, dwFlag);
ImGui::AlignTextToFramePadding();
ImGui::Text("Username:");
ImGui::InputText("##username", username, sizeof(username), 0, 0, 0);
ImGui::Text("Password:");
ImGui::InputText("##password", password, sizeof(password), 0, 0, 0);
ImGui::Checkbox("Remember login details", &remember);
if (ImGui::Button("Login"))
{
mainwindow = !mainwindow;
}
ImGui::End();
}
I was trying to make Dear ImGui login panel for my cheat menu but it sucks
Can someone show me an example? I don't know how to set input username and password :/
https://postimg.cc/56FYT4nr
Last edited by Gulsher; 06-07-2021 at 06:51 AM.