add anim frames to sprite editor
This commit is contained in:
@@ -86,9 +86,7 @@ void SpriteEditor::DrawSpriteCanvas() {
|
||||
static bool flip_x = false;
|
||||
static bool flip_y = false;
|
||||
if (ImGui::BeginChild(gui::GetID("##SpriteCanvas"),
|
||||
ImGui::GetContentRegionAvail(), true,
|
||||
ImGuiWindowFlags_AlwaysVerticalScrollbar |
|
||||
ImGuiWindowFlags_AlwaysHorizontalScrollbar)) {
|
||||
ImGui::GetContentRegionAvail(), true)) {
|
||||
sprite_canvas_.DrawBackground();
|
||||
sprite_canvas_.DrawContextMenu();
|
||||
// sprite_canvas_.DrawBitmap(oam_bitmap_, 2, 2);
|
||||
@@ -137,6 +135,8 @@ void SpriteEditor::DrawSpriteCanvas() {
|
||||
ImGui::EndTable();
|
||||
}
|
||||
|
||||
DrawAnimationFrames();
|
||||
|
||||
ImGui::EndChild();
|
||||
}
|
||||
}
|
||||
@@ -185,6 +185,15 @@ void SpriteEditor::DrawSpritesList() {
|
||||
}
|
||||
}
|
||||
|
||||
void SpriteEditor::DrawAnimationFrames() {
|
||||
if (ImGui::Button("Add Frame")) {
|
||||
// Add a new frame
|
||||
}
|
||||
if (ImGui::Button("Remove Frame")) {
|
||||
// Remove the current frame
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace editor
|
||||
} // namespace app
|
||||
} // namespace yaze
|
||||
Reference in New Issue
Block a user