Refactor ServerGui.cpp: Remove unused variables
Some checks failed
Linux arm64 / Build (push) Has been cancelled
Some checks failed
Linux arm64 / Build (push) Has been cancelled
This commit is contained in:
@@ -22,14 +22,11 @@ void ServerGui::Render() {
|
||||
|
||||
ImGuiWindowFlags servergui_flags =
|
||||
ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar;
|
||||
static bool popup_opened = true;
|
||||
ImVec2 center = ImGui::GetMainViewport()->GetCenter();
|
||||
static float servergui_width = 640.0f;
|
||||
static float servergui_height = 450.0f;
|
||||
|
||||
const static ImVec2 buttonSize = {300, 60};
|
||||
const static int paddingHeight = 40;
|
||||
const static int startPos = 15;
|
||||
|
||||
ImGui::SetNextWindowPos(center, ImGuiCond_Appearing, ImVec2(0.5f, 0.5f));
|
||||
ImGui::SetNextWindowSize(ImVec2(servergui_width, servergui_height));
|
||||
@@ -61,9 +58,7 @@ void ServerGui::Render() {
|
||||
|
||||
ImGui::Text("DUREE PARTIE");
|
||||
std::string min = "Min";
|
||||
const float minTextWidth = ImGui::CalcTextSize(min.c_str()).x;
|
||||
std::string sec = "Sec";
|
||||
const float secTextWidth = ImGui::CalcTextSize(sec.c_str()).x;
|
||||
|
||||
for (std::size_t i = 0; i < 2; ++i) {
|
||||
ImGui::PushID(static_cast<int>(i));
|
||||
|
||||
Reference in New Issue
Block a user