GUI: add ability to change sub-song comment

This commit is contained in:
tildearrow 2023-02-05 03:50:32 -05:00
parent 71e1f21a8f
commit 1a24fbe35f
1 changed files with 6 additions and 0 deletions

View File

@ -106,6 +106,12 @@ void FurnaceGUI::drawSubSongs() {
if (ImGui::InputText("##SubSongName",&e->curSubSong->name,ImGuiInputTextFlags_UndoRedo)) {
MARK_MODIFIED;
}
if (ImGui::GetContentRegionAvail().y>(10.0f*dpiScale)) {
if (ImGui::InputTextMultiline("##SubSongNotes",&e->curSubSong->notes,ImGui::GetContentRegionAvail(),ImGuiInputTextFlags_UndoRedo)) {
MARK_MODIFIED;
}
}
}
if (ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows)) curWindow=GUI_WINDOW_SUBSONGS;
ImGui::End();