the massive preparations - GUI
This commit is contained in:
parent
34c176a799
commit
00e0679442
48 changed files with 41493 additions and 2734 deletions
|
|
@ -44,44 +44,44 @@ const float mobileButtonDistances[4][8]={
|
|||
|
||||
const char* mobileButtonLabels[32]={
|
||||
// page 1
|
||||
"cut",
|
||||
"copy",
|
||||
"paste",
|
||||
"delete",
|
||||
"select\nall",
|
||||
"piano",
|
||||
"undo",
|
||||
"redo",
|
||||
_N("cut"),
|
||||
_N("copy"),
|
||||
_N("paste"),
|
||||
_N("delete"),
|
||||
_N("select\nall"),
|
||||
_N("piano"),
|
||||
_N("undo"),
|
||||
_N("redo"),
|
||||
|
||||
// page 2
|
||||
"paste\nmix",
|
||||
"paste\nmix bg",
|
||||
"paste\nins",
|
||||
"paste\nins bg",
|
||||
"paste\nflood",
|
||||
"paste\noverflow",
|
||||
"transpose\nnotes",
|
||||
"transpose\nvalues",
|
||||
_N("paste\nmix"),
|
||||
_N("paste\nmix bg"),
|
||||
_N("paste\nins"),
|
||||
_N("paste\nins bg"),
|
||||
_N("paste\nflood"),
|
||||
_N("paste\noverflow"),
|
||||
_N("transpose\nnotes"),
|
||||
_N("transpose\nvalues"),
|
||||
|
||||
// page 3
|
||||
"change\nins",
|
||||
"find/\nreplace",
|
||||
"collapse",
|
||||
"expand",
|
||||
"flip",
|
||||
"invert",
|
||||
"interpolate",
|
||||
"scale",
|
||||
_N("change\nins"),
|
||||
_N("find/\nreplace"),
|
||||
_N("collapse"),
|
||||
_N("expand"),
|
||||
_N("flip"),
|
||||
_N("invert"),
|
||||
_N("interpolate"),
|
||||
_N("scale"),
|
||||
|
||||
// page 4
|
||||
"fade",
|
||||
"randomize",
|
||||
"opmask",
|
||||
"scroll\nmode",
|
||||
"input\nlatch",
|
||||
"set\nlatch",
|
||||
"clear\nlatch",
|
||||
"clear"
|
||||
_N("fade"),
|
||||
_N("randomize"),
|
||||
_N("opmask"),
|
||||
_N("scroll\nmode"),
|
||||
_N("input\nlatch"),
|
||||
_N("set\nlatch"),
|
||||
_N("clear\nlatch"),
|
||||
_N("clear")
|
||||
};
|
||||
|
||||
const int mobileButtonActions[32]={
|
||||
|
|
@ -293,7 +293,7 @@ void FurnaceGUI::drawMobileControls() {
|
|||
(mobileEditButtonPos.x*canvasW)+cos(buttonDir*2.0*M_PI)*buttonDist*buttonMirrorX*anim,
|
||||
(mobileEditButtonPos.y*canvasH)+sin(buttonDir*2.0*M_PI)*buttonDist*buttonMirrorY*anim
|
||||
));
|
||||
if (ImGui::Button(mobileButtonLabels[i+mobileEditPage*8],mobileEditButtonSize)) {
|
||||
if (ImGui::Button(_(mobileButtonLabels[i+mobileEditPage*8]),mobileEditButtonSize)) {
|
||||
if (mobileButtonActions[i+mobileEditPage*8]) {
|
||||
doAction(mobileButtonActions[i+mobileEditPage*8]);
|
||||
}
|
||||
|
|
@ -418,44 +418,44 @@ void FurnaceGUI::drawMobileControls() {
|
|||
ImVec2 buttonSize=ImGui::GetContentRegionAvail();
|
||||
buttonSize.y=30.0f*dpiScale;
|
||||
|
||||
if (ImGui::Button("Pattern",buttonSize)) {
|
||||
if (ImGui::Button(_("Pattern"),buttonSize)) {
|
||||
mobScene=GUI_SCENE_PATTERN;
|
||||
}
|
||||
ImGui::TableNextColumn();
|
||||
if (ImGui::Button("Orders",buttonSize)) {
|
||||
if (ImGui::Button(_("Orders"),buttonSize)) {
|
||||
mobScene=GUI_SCENE_ORDERS;
|
||||
}
|
||||
ImGui::TableNextColumn();
|
||||
if (ImGui::Button("Ins",buttonSize)) {
|
||||
if (ImGui::Button(_("Ins"),buttonSize)) {
|
||||
mobScene=GUI_SCENE_INSTRUMENT;
|
||||
}
|
||||
ImGui::TableNextColumn();
|
||||
if (ImGui::Button("Wave",buttonSize)) {
|
||||
if (ImGui::Button(_("Wave"),buttonSize)) {
|
||||
mobScene=GUI_SCENE_WAVETABLE;
|
||||
}
|
||||
ImGui::TableNextColumn();
|
||||
if (ImGui::Button("Sample",buttonSize)) {
|
||||
if (ImGui::Button(_("Sample"),buttonSize)) {
|
||||
mobScene=GUI_SCENE_SAMPLE;
|
||||
}
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
if (ImGui::Button("Song",buttonSize)) {
|
||||
if (ImGui::Button(_("Song"),buttonSize)) {
|
||||
mobScene=GUI_SCENE_SONG;
|
||||
}
|
||||
ImGui::TableNextColumn();
|
||||
if (ImGui::Button("Channels",buttonSize)) {
|
||||
if (ImGui::Button(_("Channels"),buttonSize)) {
|
||||
mobScene=GUI_SCENE_CHANNELS;
|
||||
}
|
||||
ImGui::TableNextColumn();
|
||||
if (ImGui::Button("Chips",buttonSize)) {
|
||||
if (ImGui::Button(_("Chips"),buttonSize)) {
|
||||
mobScene=GUI_SCENE_CHIPS;
|
||||
}
|
||||
ImGui::TableNextColumn();
|
||||
if (ImGui::Button("Mixer",buttonSize)) {
|
||||
if (ImGui::Button(_("Mixer"),buttonSize)) {
|
||||
mobScene=GUI_SCENE_MIXER;
|
||||
}
|
||||
ImGui::TableNextColumn();
|
||||
if (ImGui::Button("Other",buttonSize)) {
|
||||
if (ImGui::Button(_("Other"),buttonSize)) {
|
||||
mobScene=GUI_SCENE_OTHER;
|
||||
}
|
||||
ImGui::EndTable();
|
||||
|
|
@ -484,36 +484,36 @@ void FurnaceGUI::drawMobileControls() {
|
|||
}
|
||||
break;
|
||||
case GUI_SCENE_SONG: {
|
||||
if (ImGui::Button("New")) {
|
||||
if (ImGui::Button(_("New"))) {
|
||||
mobileMenuOpen=false;
|
||||
//doAction(GUI_ACTION_NEW);
|
||||
if (modified) {
|
||||
showWarning("Unsaved changes! Save changes before creating a new song?",GUI_WARN_NEW);
|
||||
showWarning(_("Unsaved changes! Save changes before creating a new song?"),GUI_WARN_NEW);
|
||||
} else {
|
||||
displayNew=true;
|
||||
}
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Open")) {
|
||||
if (ImGui::Button(_("Open"))) {
|
||||
mobileMenuOpen=false;
|
||||
doAction(GUI_ACTION_OPEN);
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Save")) {
|
||||
if (ImGui::Button(_("Save"))) {
|
||||
mobileMenuOpen=false;
|
||||
doAction(GUI_ACTION_SAVE);
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Save as...")) {
|
||||
if (ImGui::Button(_("Save as..."))) {
|
||||
mobileMenuOpen=false;
|
||||
doAction(GUI_ACTION_SAVE_AS);
|
||||
}
|
||||
|
||||
if (ImGui::Button("Export")) {
|
||||
if (ImGui::Button(_("Export"))) {
|
||||
doAction(GUI_ACTION_EXPORT);
|
||||
}
|
||||
|
||||
if (ImGui::Button("Restore Backup")) {
|
||||
if (ImGui::Button(_("Restore Backup"))) {
|
||||
mobileMenuOpen=false;
|
||||
doAction(GUI_ACTION_OPEN_BACKUP);
|
||||
}
|
||||
|
|
@ -521,15 +521,15 @@ void FurnaceGUI::drawMobileControls() {
|
|||
ImGui::Separator();
|
||||
|
||||
if (ImGui::BeginTabBar("MobileSong")) {
|
||||
if (ImGui::BeginTabItem("Song Info")) {
|
||||
if (ImGui::BeginTabItem(_("Song Info"))) {
|
||||
drawSongInfo(true);
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
if (ImGui::BeginTabItem("Subsongs")) {
|
||||
if (ImGui::BeginTabItem(_("Subsongs"))) {
|
||||
drawSubSongs(true);
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
if (ImGui::BeginTabItem("Speed")) {
|
||||
if (ImGui::BeginTabItem(_("Speed"))) {
|
||||
drawSpeed(true);
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
|
|
@ -538,85 +538,85 @@ void FurnaceGUI::drawMobileControls() {
|
|||
break;
|
||||
}
|
||||
case GUI_SCENE_CHANNELS:
|
||||
ImGui::Text("Channels here...");
|
||||
ImGui::Text(_("Channels here..."));
|
||||
break;
|
||||
case GUI_SCENE_CHIPS:
|
||||
ImGui::Text("Chips here...");
|
||||
ImGui::Text(_("Chips here..."));
|
||||
break;
|
||||
case GUI_SCENE_MIXER:
|
||||
ImGui::Text("What the hell...");
|
||||
ImGui::Text(_("What the hell..."));
|
||||
break;
|
||||
case GUI_SCENE_OTHER: {
|
||||
if (ImGui::Button("Osc")) {
|
||||
if (ImGui::Button(_("Osc"))) {
|
||||
oscOpen=!oscOpen;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("ChanOsc")) {
|
||||
if (ImGui::Button(_("ChanOsc"))) {
|
||||
chanOscOpen=!chanOscOpen;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("RegView")) {
|
||||
if (ImGui::Button(_("RegView"))) {
|
||||
regViewOpen=!regViewOpen;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Stats")) {
|
||||
if (ImGui::Button(_("Stats"))) {
|
||||
statsOpen=!statsOpen;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Grooves")) {
|
||||
if (ImGui::Button(_("Grooves"))) {
|
||||
groovesOpen=!groovesOpen;
|
||||
}
|
||||
if (ImGui::Button("Compat Flags")) {
|
||||
if (ImGui::Button(_("Compat Flags"))) {
|
||||
compatFlagsOpen=!compatFlagsOpen;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("XYOsc")) {
|
||||
if (ImGui::Button(_("XYOsc"))) {
|
||||
xyOscOpen=!xyOscOpen;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Meter")) {
|
||||
if (ImGui::Button(_("Meter"))) {
|
||||
volMeterOpen=!volMeterOpen;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Memory")) {
|
||||
if (ImGui::Button(_("Memory"))) {
|
||||
memoryOpen=!memoryOpen;
|
||||
}
|
||||
|
||||
if (ImGui::Button("CV")) {
|
||||
if (ImGui::Button(_("CV"))) {
|
||||
cvOpen=!cvOpen;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Presets")) {
|
||||
if (ImGui::Button(_("Presets"))) {
|
||||
userPresetsOpen=!userPresetsOpen;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("PatManager")) {
|
||||
if (ImGui::Button(_("PatManager"))) {
|
||||
patManagerOpen=!patManagerOpen;
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
ImGui::Button("Panic");
|
||||
ImGui::Button(_("Panic"));
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Settings")) {
|
||||
if (ImGui::Button(_("Settings"))) {
|
||||
mobileMenuOpen=false;
|
||||
settingsOpen=true;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Log")) {
|
||||
if (ImGui::Button(_("Log"))) {
|
||||
logOpen=!logOpen;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Debug")) {
|
||||
if (ImGui::Button(_("Debug"))) {
|
||||
debugOpen=!debugOpen;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("About")) {
|
||||
if (ImGui::Button(_("About"))) {
|
||||
mobileMenuOpen=false;
|
||||
mobileMenuPos=0.0f;
|
||||
aboutOpen=true;
|
||||
}
|
||||
if (ImGui::Button("Switch to Desktop Mode")) {
|
||||
if (ImGui::Button(_("Switch to Desktop Mode"))) {
|
||||
toggleMobileUI(!mobileUI);
|
||||
}
|
||||
|
||||
|
|
@ -626,16 +626,16 @@ void FurnaceGUI::drawMobileControls() {
|
|||
}
|
||||
|
||||
if (numAmiga) {
|
||||
ImGui::Text(
|
||||
ImGui::Text(_(
|
||||
"this is NOT ROM export! only use for making sure the\n"
|
||||
"Furnace Amiga emulator is working properly by\n"
|
||||
"comparing it with real Amiga output."
|
||||
);
|
||||
));
|
||||
ImGui::AlignTextToFramePadding();
|
||||
ImGui::Text("Directory");
|
||||
ImGui::Text(_("Directory"));
|
||||
ImGui::SameLine();
|
||||
ImGui::InputText("##AVDPath",&workingDirROMExport);
|
||||
if (ImGui::Button("Bake Data")) {
|
||||
if (ImGui::Button(_("Bake Data"))) {
|
||||
std::vector<DivROMExportOutput> out=e->buildROM(DIV_ROM_AMIGA_VALIDATION);
|
||||
if (workingDirROMExport.size()>0) {
|
||||
if (workingDirROMExport[workingDirROMExport.size()-1]!=DIR_SEPARATOR) workingDirROMExport+=DIR_SEPARATOR_STR;
|
||||
|
|
@ -650,7 +650,7 @@ void FurnaceGUI::drawMobileControls() {
|
|||
i.data->finish();
|
||||
delete i.data;
|
||||
}
|
||||
showError(fmt::sprintf("Done! Baked %d files.",(int)out.size()));
|
||||
showError(fmt::sprintf(_("Done! Baked %d files."),(int)out.size()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -678,7 +678,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::AlignTextToFramePadding();
|
||||
ImGui::Text("Octave");
|
||||
ImGui::Text(_("Octave"));
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||
if (ImGui::InputInt("##Octave",&curOctave,1,1)) {
|
||||
|
|
@ -695,7 +695,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::AlignTextToFramePadding();
|
||||
if (ImGui::SmallButton(changeCoarse?"Coarse Step":"Edit Step")) {
|
||||
if (ImGui::SmallButton(changeCoarse?_("Coarse Step"):_("Edit Step"))) {
|
||||
changeCoarse=!changeCoarse;
|
||||
}
|
||||
ImGui::TableNextColumn();
|
||||
|
|
@ -728,7 +728,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
play();
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Play");
|
||||
ImGui::SetTooltip(_("Play"));
|
||||
}
|
||||
popToggleColors();
|
||||
ImGui::SameLine();
|
||||
|
|
@ -736,25 +736,25 @@ void FurnaceGUI::drawEditControls() {
|
|||
stop();
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Stop");
|
||||
ImGui::SetTooltip(_("Stop"));
|
||||
}
|
||||
ImGui::SameLine();
|
||||
ImGui::Checkbox("Edit",&edit);
|
||||
ImGui::Checkbox(_("Edit"),&edit);
|
||||
ImGui::SameLine();
|
||||
bool metro=e->getMetronome();
|
||||
if (ImGui::Checkbox("Metronome",&metro)) {
|
||||
if (ImGui::Checkbox(_("Metronome"),&metro)) {
|
||||
e->setMetronome(metro);
|
||||
}
|
||||
|
||||
ImGui::AlignTextToFramePadding();
|
||||
ImGui::Text("Follow");
|
||||
ImGui::Text(_("Follow"));
|
||||
ImGui::SameLine();
|
||||
unimportant(ImGui::Checkbox("Orders",&followOrders));
|
||||
unimportant(ImGui::Checkbox(_("Orders"),&followOrders));
|
||||
ImGui::SameLine();
|
||||
unimportant(ImGui::Checkbox("Pattern",&followPattern));
|
||||
unimportant(ImGui::Checkbox(_("Pattern"),&followPattern));
|
||||
|
||||
bool repeatPattern=e->getRepeatPattern();
|
||||
if (ImGui::Checkbox("Repeat pattern",&repeatPattern)) {
|
||||
if (ImGui::Checkbox(_("Repeat pattern"),&repeatPattern)) {
|
||||
e->setRepeatPattern(repeatPattern);
|
||||
}
|
||||
ImGui::SameLine();
|
||||
|
|
@ -763,17 +763,17 @@ void FurnaceGUI::drawEditControls() {
|
|||
pendingStepUpdate=1;
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Step one row");
|
||||
ImGui::SetTooltip(_("Step one row"));
|
||||
}
|
||||
|
||||
ImGui::SameLine();
|
||||
pushToggleColors(noteInputPoly);
|
||||
if (ImGui::Button(noteInputPoly?("Poly##PolyInput"):("Mono##PolyInput"))) {
|
||||
if (ImGui::Button(noteInputPoly?(_("Poly##PolyInput")):(_("Mono##PolyInput")))) {
|
||||
noteInputPoly=!noteInputPoly;
|
||||
e->setAutoNotePoly(noteInputPoly);
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Polyphony");
|
||||
ImGui::SetTooltip(_("Polyphony"));
|
||||
}
|
||||
popToggleColors();
|
||||
}
|
||||
|
|
@ -786,7 +786,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
stop();
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Stop");
|
||||
ImGui::SetTooltip(_("Stop"));
|
||||
}
|
||||
ImGui::SameLine();
|
||||
pushToggleColors(e->isPlaying());
|
||||
|
|
@ -794,7 +794,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
play();
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Play");
|
||||
ImGui::SetTooltip(_("Play"));
|
||||
}
|
||||
popToggleColors();
|
||||
ImGui::SameLine();
|
||||
|
|
@ -803,7 +803,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
pendingStepUpdate=1;
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Step one row");
|
||||
ImGui::SetTooltip(_("Step one row"));
|
||||
}
|
||||
|
||||
ImGui::SameLine();
|
||||
|
|
@ -813,7 +813,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
e->setRepeatPattern(!repeatPattern);
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Repeat pattern");
|
||||
ImGui::SetTooltip(_("Repeat pattern"));
|
||||
}
|
||||
popToggleColors();
|
||||
|
||||
|
|
@ -823,7 +823,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
edit=!edit;
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Edit");
|
||||
ImGui::SetTooltip(_("Edit"));
|
||||
}
|
||||
popToggleColors();
|
||||
|
||||
|
|
@ -834,12 +834,12 @@ void FurnaceGUI::drawEditControls() {
|
|||
e->setMetronome(!metro);
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Metronome");
|
||||
ImGui::SetTooltip(_("Metronome"));
|
||||
}
|
||||
popToggleColors();
|
||||
|
||||
ImGui::SameLine();
|
||||
ImGui::Text("Octave");
|
||||
ImGui::Text(_("Octave"));
|
||||
ImGui::SameLine();
|
||||
ImGui::SetNextItemWidth(96.0f*dpiScale);
|
||||
if (ImGui::InputInt("##Octave",&curOctave,1,1)) {
|
||||
|
|
@ -854,7 +854,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
}
|
||||
|
||||
ImGui::SameLine();
|
||||
if (ImGui::SmallButton(changeCoarse?"Coarse Step":"Edit Step")) {
|
||||
if (ImGui::SmallButton(changeCoarse?_("Coarse Step"):_("Edit Step"))) {
|
||||
changeCoarse=!changeCoarse;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
|
|
@ -880,20 +880,20 @@ void FurnaceGUI::drawEditControls() {
|
|||
}
|
||||
|
||||
ImGui::SameLine();
|
||||
ImGui::Text("Follow");
|
||||
ImGui::Text(_("Follow"));
|
||||
ImGui::SameLine();
|
||||
unimportant(ImGui::Checkbox("Orders",&followOrders));
|
||||
unimportant(ImGui::Checkbox(_("Orders"),&followOrders));
|
||||
ImGui::SameLine();
|
||||
unimportant(ImGui::Checkbox("Pattern",&followPattern));
|
||||
unimportant(ImGui::Checkbox(_("Pattern"),&followPattern));
|
||||
|
||||
ImGui::SameLine();
|
||||
pushToggleColors(noteInputPoly);
|
||||
if (ImGui::Button(noteInputPoly?("Poly##PolyInput"):("Mono##PolyInput"))) {
|
||||
if (ImGui::Button(noteInputPoly?_("Poly##PolyInput"):_("Mono##PolyInput"))) {
|
||||
noteInputPoly=!noteInputPoly;
|
||||
e->setAutoNotePoly(noteInputPoly);
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Polyphony");
|
||||
ImGui::SetTooltip(_("Polyphony"));
|
||||
}
|
||||
popToggleColors();
|
||||
}
|
||||
|
|
@ -908,21 +908,21 @@ void FurnaceGUI::drawEditControls() {
|
|||
play();
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Play");
|
||||
ImGui::SetTooltip(_("Play"));
|
||||
}
|
||||
popToggleColors();
|
||||
if (ImGui::Button(ICON_FA_STOP "##Stop",buttonSize)) {
|
||||
stop();
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Stop");
|
||||
ImGui::SetTooltip(_("Stop"));
|
||||
}
|
||||
if (ImGui::Button(ICON_FA_ARROW_DOWN "##StepOne",buttonSize)) {
|
||||
e->stepOne(cursor.y);
|
||||
pendingStepUpdate=1;
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Step one row");
|
||||
ImGui::SetTooltip(_("Step one row"));
|
||||
}
|
||||
|
||||
bool repeatPattern=e->getRepeatPattern();
|
||||
|
|
@ -931,7 +931,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
e->setRepeatPattern(!repeatPattern);
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Repeat pattern");
|
||||
ImGui::SetTooltip(_("Repeat pattern"));
|
||||
}
|
||||
popToggleColors();
|
||||
|
||||
|
|
@ -940,7 +940,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
edit=!edit;
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Edit");
|
||||
ImGui::SetTooltip(_("Edit"));
|
||||
}
|
||||
popToggleColors();
|
||||
|
||||
|
|
@ -950,13 +950,13 @@ void FurnaceGUI::drawEditControls() {
|
|||
e->setMetronome(!metro);
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Metronome");
|
||||
ImGui::SetTooltip(_("Metronome"));
|
||||
}
|
||||
popToggleColors();
|
||||
|
||||
ImGui::Text("Oct.");
|
||||
ImGui::Text(_("Oct."));
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Octave");
|
||||
ImGui::SetTooltip(_("Octave"));
|
||||
}
|
||||
float avail=ImGui::GetContentRegionAvail().x;
|
||||
ImGui::SetNextItemWidth(avail);
|
||||
|
|
@ -971,7 +971,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
}
|
||||
}
|
||||
|
||||
if (ImGui::SmallButton(changeCoarse?"Coarse":"Step")) {
|
||||
if (ImGui::SmallButton(changeCoarse?_("Coarse"):_("Step"))) {
|
||||
changeCoarse=!changeCoarse;
|
||||
}
|
||||
ImGui::SetNextItemWidth(avail);
|
||||
|
|
@ -995,34 +995,34 @@ void FurnaceGUI::drawEditControls() {
|
|||
}
|
||||
}
|
||||
|
||||
ImGui::Text("Foll.");
|
||||
ImGui::Text(_("Foll."));
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Follow");
|
||||
ImGui::SetTooltip(_("Follow"));
|
||||
}
|
||||
pushToggleColors(followOrders);
|
||||
if (ImGui::Button("Ord##FollowOrders",buttonSize)) { handleUnimportant
|
||||
if (ImGui::Button(_("Ord##FollowOrders"),buttonSize)) { handleUnimportant
|
||||
followOrders=!followOrders;
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Orders");
|
||||
ImGui::SetTooltip(_("Orders"));
|
||||
}
|
||||
popToggleColors();
|
||||
pushToggleColors(followPattern);
|
||||
if (ImGui::Button("Pat##FollowPattern",buttonSize)) { handleUnimportant
|
||||
if (ImGui::Button(_("Pat##FollowPattern"),buttonSize)) { handleUnimportant
|
||||
followPattern=!followPattern;
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Pattern");
|
||||
ImGui::SetTooltip(_("Pattern"));
|
||||
}
|
||||
popToggleColors();
|
||||
|
||||
pushToggleColors(noteInputPoly);
|
||||
if (ImGui::Button(noteInputPoly?("Poly##PolyInput"):("Mono##PolyInput"))) {
|
||||
if (ImGui::Button(noteInputPoly?_("Poly##PolyInput"):_("Mono##PolyInput"))) {
|
||||
noteInputPoly=!noteInputPoly;
|
||||
e->setAutoNotePoly(noteInputPoly);
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Polyphony");
|
||||
ImGui::SetTooltip(_("Polyphony"));
|
||||
}
|
||||
popToggleColors();
|
||||
}
|
||||
|
|
@ -1037,7 +1037,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
stop();
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Stop");
|
||||
ImGui::SetTooltip(_("Stop"));
|
||||
}
|
||||
popToggleColors();
|
||||
} else {
|
||||
|
|
@ -1045,7 +1045,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
play(oldRow);
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Play");
|
||||
ImGui::SetTooltip(_("Play"));
|
||||
}
|
||||
}
|
||||
ImGui::SameLine();
|
||||
|
|
@ -1054,7 +1054,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
play();
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Play from the beginning of this pattern");
|
||||
ImGui::SetTooltip(_("Play from the beginning of this pattern"));
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button(ICON_FA_STEP_FORWARD "##PlayRepeat")) {
|
||||
|
|
@ -1062,7 +1062,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
play();
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Repeat from the beginning of this pattern");
|
||||
ImGui::SetTooltip(_("Repeat from the beginning of this pattern"));
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button(ICON_FA_ARROW_DOWN "##StepOne")) {
|
||||
|
|
@ -1070,7 +1070,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
pendingStepUpdate=1;
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Step one row");
|
||||
ImGui::SetTooltip(_("Step one row"));
|
||||
}
|
||||
|
||||
ImGui::SameLine();
|
||||
|
|
@ -1079,7 +1079,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
edit=!edit;
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Edit");
|
||||
ImGui::SetTooltip(_("Edit"));
|
||||
}
|
||||
popToggleColors();
|
||||
|
||||
|
|
@ -1090,7 +1090,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
e->setMetronome(!metro);
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Metronome");
|
||||
ImGui::SetTooltip(_("Metronome"));
|
||||
}
|
||||
popToggleColors();
|
||||
|
||||
|
|
@ -1101,18 +1101,18 @@ void FurnaceGUI::drawEditControls() {
|
|||
e->setRepeatPattern(!repeatPattern);
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Repeat pattern");
|
||||
ImGui::SetTooltip(_("Repeat pattern"));
|
||||
}
|
||||
popToggleColors();
|
||||
|
||||
ImGui::SameLine();
|
||||
pushToggleColors(noteInputPoly);
|
||||
if (ImGui::Button(noteInputPoly?("Poly##PolyInput"):("Mono##PolyInput"))) {
|
||||
if (ImGui::Button(noteInputPoly?_("Poly##PolyInput"):_("Mono##PolyInput"))) {
|
||||
noteInputPoly=!noteInputPoly;
|
||||
e->setAutoNotePoly(noteInputPoly);
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Polyphony");
|
||||
ImGui::SetTooltip(_("Polyphony"));
|
||||
}
|
||||
popToggleColors();
|
||||
}
|
||||
|
|
@ -1122,7 +1122,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
if (ImGui::Begin("Edit Controls",&editControlsOpen,globalWinFlags)) {
|
||||
ImGui::Columns(2);
|
||||
ImGui::AlignTextToFramePadding();
|
||||
ImGui::Text("Octave");
|
||||
ImGui::Text(_("Octave"));
|
||||
ImGui::SameLine();
|
||||
float cursor=ImGui::GetCursorPosX();
|
||||
float avail=ImGui::GetContentRegionAvail().x;
|
||||
|
|
@ -1139,7 +1139,7 @@ void FurnaceGUI::drawEditControls() {
|
|||
}
|
||||
|
||||
ImGui::AlignTextToFramePadding();
|
||||
if (ImGui::SmallButton(changeCoarse?"Coarse":"Step")) {
|
||||
if (ImGui::SmallButton(changeCoarse?_("Coarse"):_("Step"))) {
|
||||
changeCoarse=!changeCoarse;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
|
|
@ -1166,8 +1166,8 @@ void FurnaceGUI::drawEditControls() {
|
|||
}
|
||||
ImGui::NextColumn();
|
||||
|
||||
unimportant(ImGui::Checkbox("Follow orders",&followOrders));
|
||||
unimportant(ImGui::Checkbox("Follow pattern",&followPattern));
|
||||
unimportant(ImGui::Checkbox(_("Follow orders"),&followOrders));
|
||||
unimportant(ImGui::Checkbox(_("Follow pattern"),&followPattern));
|
||||
}
|
||||
if (ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows)) curWindow=GUI_WINDOW_EDIT_CONTROLS;
|
||||
ImGui::End();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue