Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (painelLogin)
- {
- ImGui::SetNextWindowBgAlpha(0.8);
- ImVec2 windowSize(490, 290);
- ImVec2 windowPos((ImGui::GetIO().DisplaySize.x - windowSize.x) / 2.0f, (ImGui::GetIO().DisplaySize.y - windowSize.y) / 2.0f);
- ImGui::SetNextWindowSize(windowSize);
- ImGui::SetNextWindowPos(windowPos);
- ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0.0f, 1.0f, 0.0f, 1.0f));
- ImGui::Begin("Parasita - Login", NULL, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove);
- ImVec2 containerSize(320, 258);
- ImVec2 containerPos((ImGui::GetWindowSize().x - containerSize.x) / 2.0f, (ImGui::GetWindowSize().y - containerSize.y) / 2.0f);
- ImGui::SetCursorPos(containerPos);
- ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0.0f, 1.0f, 0.0f, 0.3f));
- ImGui::BeginChild("Container", containerSize, true);
- ImVec2 inputSize(0, 0);
- ImGui::SetWindowFontScale(0.8);
- ImGui::Text(" ");
- ImGui::SetWindowFontScale(1.4);
- ImGui::PushStyleColor(ImGuiCol_FrameBg, ImVec4(CorTopo.x, CorTopo.y, CorTopo.z, 0.1));
- ImGui::PushStyleColor(ImGuiCol_FrameBgActive, ImVec4(CorTopo.x, CorTopo.y, CorTopo.z, 0.1));
- ImGui::PushStyleColor(ImGuiCol_FrameBgHovered, ImVec4(CorTopo.x, CorTopo.y, CorTopo.z, 0.1));
- ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(CorTopo.x, CorTopo.y, CorTopo.z, 0.1));
- ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImVec4(CorTopo.x, CorTopo.y, CorTopo.z, 0.8));
- ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(CorTopo.x, CorTopo.y, CorTopo.z, 0.8));
- ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 10));
- ImGui::SetCursorPosX((ImGui::GetWindowSize().x - 245.869) / 2);
- ImGui::Text("Parasita - Login Panel");
- ImGui::SetWindowFontScale(0.8);
- ImGui::SetCursorPosX((ImGui::GetWindowSize().x - 35.0) / 2);
- ImGui::Text("User");
- ImGui::SetWindowFontScale(1.4);
- ImGui::SetCursorPosX((ImGui::GetWindowSize().x - 208.0) / 2);
- ImGui::InputText(" ", username, 64);
- ImGui::SetCursorPosX((ImGui::GetWindowSize().x - 25.700) / 2);
- ImGui::SetWindowFontScale(0.8);
- ImGui::Text("key");
- ImGui::SetWindowFontScale(1.4);
- ImGui::SetCursorPosX((ImGui::GetWindowSize().x - 208.0) / 2);
- ImGui::InputText(" ", password, IM_ARRAYSIZE(password), ImGuiInputTextFlags_Password);
- ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 10));
- ImGui::PushItemWidth(0.0);
- ImGui::AlignTextToFramePadding();
- ImGui::SetCursorPosX((ImGui::GetWindowSize().x - 104.222) / 2.0f);
- ImGui::SetWindowFontScale(1.0);
- if (ImGui::Button(" Log in ")) {
- if (strcmp(password, "breso") == 0)
- Notificacao("Login com sucesso");
- else
- Notificacao("Senha invalida");
- }
- ImGui::PopStyleColor(6);
- ImGui::PopStyleVar();
- ImGui::PopStyleVar();
- ImGui::EndChild();
- ImGui::PopStyleColor();
- ImGui::End();
- ImGui::PopStyleColor();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement