Skip to content

Commit ccf3d4b

Browse files
Add playing icon to improve Audio Editor indicator (#5686)
1 parent d06cf6b commit ccf3d4b

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

soh/soh/Enhancements/audio/AudioEditor.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,12 @@ void Draw_SfxTab(const std::string& tabId, SeqType type, const std::string& tabN
298298

299299
ImGui::TableNextRow();
300300
ImGui::TableNextColumn();
301-
ImGui::TextColored(
302-
UIWidgets::ColorValues.at(isCurrentlyPlaying ? UIWidgets::Colors::Yellow : UIWidgets::Colors::White), "%s",
303-
seqData.label.c_str());
301+
if (isCurrentlyPlaying) {
302+
ImGui::TextColored(UIWidgets::ColorValues.at(UIWidgets::Colors::Yellow), "%s %s", ICON_FA_PLAY,
303+
seqData.label.c_str());
304+
} else {
305+
ImGui::Text("%s", seqData.label.c_str());
306+
}
304307
ImGui::TableNextColumn();
305308
ImGui::PushItemWidth(-FLT_MIN);
306309
const int initialValue = map.contains(currentValue) ? currentValue : defaultValue;

0 commit comments

Comments
 (0)