housekeeping
This commit is contained in:
@@ -393,8 +393,8 @@ void DrawSpriteTable(std::function<void(int)> onSpriteSelect) {
|
||||
if (ImGui::BeginTable("##sprites", 2,
|
||||
ImGuiTableFlags_Sortable | ImGuiTableFlags_Resizable)) {
|
||||
ImGui::TableSetupColumn("ID", ImGuiTableColumnFlags_DefaultSort, 0.0f,
|
||||
MyItemColumnID_ID);
|
||||
ImGui::TableSetupColumn("Name", 0, 0.0f, MyItemColumnID_Name);
|
||||
SpriteItemColumnID_ID);
|
||||
ImGui::TableSetupColumn("Name", 0, 0.0f, SpriteItemColumnID_Name);
|
||||
ImGui::TableHeadersRow();
|
||||
|
||||
// Handle sorting
|
||||
@@ -441,6 +441,12 @@ void DrawSpriteInserterPopup() {
|
||||
}
|
||||
SameLine();
|
||||
|
||||
if (Button(ICON_MD_DELETE)) {
|
||||
new_sprite_id = -1;
|
||||
ImGui::CloseCurrentPopup();
|
||||
}
|
||||
SameLine();
|
||||
|
||||
if (Button(ICON_MD_CANCEL)) {
|
||||
ImGui::CloseCurrentPopup();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user