the massive preparations - GUI
This commit is contained in:
parent
34c176a799
commit
00e0679442
48 changed files with 41493 additions and 2734 deletions
|
|
@ -86,7 +86,7 @@ void FurnaceGUI::endIntroTune() {
|
|||
e->createNewFromDefaults();
|
||||
} else { // load pending song
|
||||
if (load(curFileName)>0) {
|
||||
showError(fmt::sprintf("Error while loading file! (%s)",lastError));
|
||||
showError(fmt::sprintf(_("Error while loading file! (%s)"),lastError));
|
||||
curFileName="";
|
||||
e->createNewFromDefaults();
|
||||
}
|
||||
|
|
@ -121,7 +121,7 @@ void FurnaceGUI::drawIntro(double introTime, bool monitor) {
|
|||
}
|
||||
if (ImGui::Begin(monitor?"IntroMon X":"Intro",NULL,monitor?globalWinFlags:(ImGuiWindowFlags_NoMove|ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoDocking|ImGuiWindowFlags_NoTitleBar|ImGuiWindowFlags_NoBackground))) {
|
||||
if (monitor) {
|
||||
if (ImGui::Button("Preview")) {
|
||||
if (ImGui::Button(_("Preview"))) {
|
||||
introPos=0;
|
||||
tutorial.introPlayed=false;
|
||||
shortIntro=false;
|
||||
|
|
@ -173,9 +173,9 @@ void FurnaceGUI::drawIntro(double introTime, bool monitor) {
|
|||
|
||||
if (monitor) {
|
||||
ImVec2 textPos=ImLerp(top,bottom,ImVec2(0.5,0.5));
|
||||
textPos.x-=ImGui::CalcTextSize("SORRY NOTHING").x*0.5;
|
||||
textPos.y-=ImGui::CalcTextSize("SORRY NOTHING").y*0.5;
|
||||
dl->AddText(textPos,ImGui::GetColorU32(uiColors[GUI_COLOR_TEXT]),"SORRY NOTHING");
|
||||
textPos.x-=ImGui::CalcTextSize(_("SORRY NOTHING")).x*0.5;
|
||||
textPos.y-=ImGui::CalcTextSize(_("SORRY NOTHING")).y*0.5;
|
||||
dl->AddText(textPos,ImGui::GetColorU32(uiColors[GUI_COLOR_TEXT]),_("SORRY NOTHING"));
|
||||
}
|
||||
|
||||
if (introSkip<0.5 || monitor) {
|
||||
|
|
@ -307,7 +307,7 @@ void FurnaceGUI::drawIntro(double introTime, bool monitor) {
|
|||
}
|
||||
|
||||
dl->AddRectFilled(top,bottom,ImGui::GetColorU32(ImVec4(0.0,0.0,0.0,CLAMP(introSkip*2.0,0.0,1.0)-CLAMP((introSkip-0.5)*4,0.0,1.0))));
|
||||
if (introSkip<0.5) dl->AddText(ImVec2(8.0*dpiScale,8.0*dpiScale),ImGui::GetColorU32(ImVec4(1.0,1.0,1.0,CLAMP(introSkip*8.0,0.0,1.0))),"hold to skip");
|
||||
if (introSkip<0.5) dl->AddText(ImVec2(8.0*dpiScale,8.0*dpiScale),ImGui::GetColorU32(ImVec4(1.0,1.0,1.0,CLAMP(introSkip*8.0,0.0,1.0))),_("hold to skip"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue