Fix strings for mobile STK

This commit is contained in:
Benau 2020-06-13 15:45:03 +08:00
parent 84cf6b1ea0
commit a2675497e0

View File

@ -533,9 +533,20 @@ void RaceGUIOverworld::drawGlobalMiniMap()
irr_driver->getActualScreenSize().Height - GUIEngine::getFontHeight()*2, irr_driver->getActualScreenSize().Height - GUIEngine::getFontHeight()*2,
irr_driver->getActualScreenSize().Width, irr_driver->getActualScreenSize().Width,
irr_driver->getActualScreenSize().Height); irr_driver->getActualScreenSize().Height);
GUIEngine::getOutlineFont()->draw(_("Press fire to start the tutorial"), pos2, if (m_multitouch_gui)
GUIEngine::getSkin()->getColor("font::normal"), {
true, true /* vcenter */, NULL); // I18N: Shown when multitouch GUI exists
// and press the podium (2, 1, 3 like) icon instead of fire button
GUIEngine::getOutlineFont()->draw(_("Press podium icon to start tutorial"), pos2,
GUIEngine::getSkin()->getColor("font::normal"),
true, true /* vcenter */, NULL);
}
else
{
GUIEngine::getOutlineFont()->draw(_("Press fire to start the tutorial"), pos2,
GUIEngine::getSkin()->getColor("font::normal"),
true, true /* vcenter */, NULL);
}
continue; continue;
} }
@ -604,9 +615,20 @@ void RaceGUIOverworld::drawGlobalMiniMap()
irr_driver->getActualScreenSize().Height - GUIEngine::getFontHeight()*2, irr_driver->getActualScreenSize().Height - GUIEngine::getFontHeight()*2,
irr_driver->getActualScreenSize().Width, irr_driver->getActualScreenSize().Width,
irr_driver->getActualScreenSize().Height); irr_driver->getActualScreenSize().Height);
font->draw(_("Press fire to start the challenge"), pos2, if (m_multitouch_gui)
GUIEngine::getSkin()->getColor("font::normal"), {
true, true /* vcenter */, NULL); // I18N: Shown when multitouch GUI exists
// and press the podium (2, 1, 3 like) icon instead of fire button
font->draw(_("Press podium icon to start the challenge"), pos2,
GUIEngine::getSkin()->getColor("font::normal"),
true, true /* vcenter */, NULL);
}
else
{
font->draw(_("Press fire to start the challenge"), pos2,
GUIEngine::getSkin()->getColor("font::normal"),
true, true /* vcenter */, NULL);
}
font->setBlackBorder(false); font->setBlackBorder(false);
} }
} }