Added Rounded corners to text entry field
This commit is contained in:
@@ -64,8 +64,7 @@ void ArchipelagoConsoleWindow::DrawElement() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::EndChild();
|
ImGui::EndChild();
|
||||||
ImGui::PopStyleColor();
|
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 8.0f);
|
||||||
ImGui::PopStyleVar(3);
|
|
||||||
|
|
||||||
static char textEntryBuf[1024];
|
static char textEntryBuf[1024];
|
||||||
static bool keepFocus = false;
|
static bool keepFocus = false;
|
||||||
@@ -86,6 +85,10 @@ void ArchipelagoConsoleWindow::DrawElement() {
|
|||||||
textEntryBuf[0] = '\0';
|
textEntryBuf[0] = '\0';
|
||||||
keepFocus = true;
|
keepFocus = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ImGui::PopStyleColor();
|
||||||
|
ImGui::PopStyleVar(4);
|
||||||
};
|
};
|
||||||
|
|
||||||
ImVec4 getColorVal(const std::string& color) { // TODO change color strings to an enum
|
ImVec4 getColorVal(const std::string& color) { // TODO change color strings to an enum
|
||||||
|
|||||||
Reference in New Issue
Block a user