the massive preparations - GUI

This commit is contained in:
tildearrow 2024-05-26 19:31:17 -05:00
parent 34c176a799
commit 00e0679442
48 changed files with 41493 additions and 2734 deletions

View file

@ -46,13 +46,13 @@ void FurnaceGUI::drawChannels() {
ImGui::TableSetupColumn("c4",ImGuiTableColumnFlags_WidthFixed,48.0f*dpiScale);
ImGui::TableNextRow(ImGuiTableRowFlags_Headers);
ImGui::TableNextColumn();
ImGui::Text("Pat");
ImGui::Text(_("Pat"));
ImGui::TableNextColumn();
ImGui::Text("Osc");
ImGui::Text(_("Osc"));
ImGui::TableNextColumn();
ImGui::Text("Swap");
ImGui::Text(_("Swap"));
ImGui::TableNextColumn();
ImGui::Text("Name");
ImGui::Text(_("Name"));
for (int i=0; i<e->getTotalChannelCount(); i++) {
ImGui::PushID(i);
ImGui::TableNextRow();
@ -61,14 +61,14 @@ void FurnaceGUI::drawChannels() {
MARK_MODIFIED;
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("Show in pattern");
ImGui::SetTooltip(_("Show in pattern"));
}
ImGui::TableNextColumn();
if (ImGui::Checkbox("##VisibleChanOsc",&e->curSubSong->chanShowChanOsc[i])) {
MARK_MODIFIED;
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("Show in per-channel oscilloscope");
ImGui::SetTooltip(_("Show in per-channel oscilloscope"));
}
ImGui::TableNextColumn();
if (ImGui::Button(ICON_FA_ARROWS)) {
@ -79,7 +79,7 @@ void FurnaceGUI::drawChannels() {
ImGui::Button(ICON_FA_ARROWS "##ChanDrag");
ImGui::EndDragDropSource();
} else if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("%s #%d\n(drag to swap channels)",e->getSystemName(e->sysOfChan[i]),e->dispatchChanOfChan[i]);
ImGui::SetTooltip(_("%s #%d\n(drag to swap channels)"),e->getSystemName(e->sysOfChan[i]),e->dispatchChanOfChan[i]);
}
if (ImGui::BeginDragDropTarget()) {
const ImGuiPayload* dragItem=ImGui::AcceptDragDropPayload("FUR_CHAN");