the massive preparations - GUI
This commit is contained in:
parent
34c176a799
commit
00e0679442
48 changed files with 41493 additions and 2734 deletions
|
|
@ -15,23 +15,23 @@ void FurnaceGUI::drawEffectList() {
|
|||
float availB=ImGui::GetContentRegionAvail().x-ImGui::GetFrameHeightWithSpacing();
|
||||
if (availB>0) {
|
||||
ImGui::PushTextWrapPos(availB);
|
||||
ImGui::TextWrapped("Chip at cursor: %s",e->getSystemName(e->sysOfChan[cursor.xCoarse]));
|
||||
ImGui::TextWrapped(_("Chip at cursor: %s"),e->getSystemName(e->sysOfChan[cursor.xCoarse]));
|
||||
ImGui::PopTextWrapPos();
|
||||
}
|
||||
effectSearch.Draw("Search");
|
||||
effectSearch.Draw(_("Search"));
|
||||
ImGui::SameLine();
|
||||
ImGui::Button(ICON_FA_BARS "##SortEffects");
|
||||
if (ImGui::BeginPopupContextItem("effectSort",ImGuiPopupFlags_MouseButtonLeft)) {
|
||||
ImGui::Text("Effect types to show:");
|
||||
ImGui::Text(_("Effect types to show:"));
|
||||
for (int i=1; i<10; i++) {
|
||||
ImGui::PushStyleColor(ImGuiCol_Text,uiColors[i+GUI_COLOR_PATTERN_EFFECT_INVALID]);
|
||||
ImGui::Checkbox(fxColorsNames[i],&effectsShow[i]);
|
||||
ImGui::Checkbox(_(fxColorsNames[i]),&effectsShow[i]);
|
||||
ImGui::PopStyleColor();
|
||||
}
|
||||
|
||||
if (ImGui::Button("All")) memset(effectsShow,1,sizeof(bool)*10);
|
||||
if (ImGui::Button(_("All"))) memset(effectsShow,1,sizeof(bool)*10);
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("None")) memset(effectsShow,0,sizeof(bool)*10);
|
||||
if (ImGui::Button(_("None"))) memset(effectsShow,0,sizeof(bool)*10);
|
||||
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
|
|
@ -42,9 +42,9 @@ void FurnaceGUI::drawEffectList() {
|
|||
|
||||
ImGui::TableNextRow(ImGuiTableRowFlags_Headers);
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::Text("Name");
|
||||
ImGui::Text(_("Name"));
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::Text("Description");
|
||||
ImGui::Text(_("Description"));
|
||||
|
||||
const char* prevName=NULL;
|
||||
for (int i=0; i<256; i++) {
|
||||
|
|
@ -81,7 +81,7 @@ void FurnaceGUI::drawEffectList() {
|
|||
if (strlen(name)>6) {
|
||||
ImGui::TextWrapped("%s",&name[6]);
|
||||
} else {
|
||||
ImGui::Text("ERROR");
|
||||
ImGui::Text(_("ERROR"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue