Refactor editor UI components: streamline button handling in graphics and music editors, remove unused macros, and improve table setup in assembly editor.
This commit is contained in:
@@ -194,9 +194,21 @@ void MusicEditor::DrawToolset() {
|
||||
is_playing = !is_playing;
|
||||
}
|
||||
|
||||
BUTTON_COLUMN(ICON_MD_FAST_REWIND)
|
||||
BUTTON_COLUMN(ICON_MD_FAST_FORWARD)
|
||||
BUTTON_COLUMN(ICON_MD_VOLUME_UP)
|
||||
ImGui::TableNextColumn();
|
||||
if (ImGui::Button(ICON_MD_FAST_REWIND)) {
|
||||
// Handle rewind button click
|
||||
}
|
||||
|
||||
ImGui::TableNextColumn();
|
||||
if (ImGui::Button(ICON_MD_FAST_FORWARD)) {
|
||||
// Handle fast forward button click
|
||||
}
|
||||
|
||||
ImGui::TableNextColumn();
|
||||
if (ImGui::Button(ICON_MD_VOLUME_UP)) {
|
||||
// Handle volume up button click
|
||||
}
|
||||
|
||||
if (ImGui::Button(ICON_MD_ACCESS_TIME)) {
|
||||
music_tracker_.LoadSongs(*rom());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user