mirror of
https://github.com/OpenMW/openmw.git
synced 2026-02-07 18:28:25 +00:00
Expose class dialog, companion and container actions to l10n
This commit is contained in:
parent
cc541ec0eb
commit
0b99fafd01
5 changed files with 30 additions and 24 deletions
|
|
@ -59,8 +59,8 @@ namespace MWGui
|
|||
{
|
||||
mOkButton->setStateSelected(true);
|
||||
mDisableGamepadCursor = true;
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mB = "#{sBack}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:Back}";
|
||||
}
|
||||
|
||||
center();
|
||||
|
|
@ -149,9 +149,9 @@ namespace MWGui
|
|||
|
||||
if (Settings::gui().mControllerMenus)
|
||||
{
|
||||
mControllerButtons.mLStick = "#{sMouse}";
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mB = "#{sBack}";
|
||||
mControllerButtons.mLStick = "#{Interface:Mouse}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:Back}";
|
||||
}
|
||||
|
||||
updateClasses();
|
||||
|
|
@ -167,13 +167,13 @@ namespace MWGui
|
|||
{
|
||||
okButton->setCaption(
|
||||
MyGUI::UString(MWBase::Environment::get().getWindowManager()->getGameSettingString("sNext", {})));
|
||||
mControllerButtons.mX = "#{sNext}";
|
||||
mControllerButtons.mX = "#{Interface:Next}";
|
||||
}
|
||||
else if (Settings::gui().mControllerMenus)
|
||||
{
|
||||
okButton->setCaption(
|
||||
MyGUI::UString(MWBase::Environment::get().getWindowManager()->getGameSettingString("sDone", {})));
|
||||
mControllerButtons.mX = "#{sDone}";
|
||||
mControllerButtons.mX = "#{Interface:Done}";
|
||||
}
|
||||
else
|
||||
okButton->setCaption(
|
||||
|
|
@ -392,7 +392,7 @@ namespace MWGui
|
|||
center();
|
||||
|
||||
mDisableGamepadCursor = Settings::gui().mControllerMenus;
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
}
|
||||
|
||||
void InfoBoxDialog::setText(const std::string& str)
|
||||
|
|
@ -584,9 +584,9 @@ namespace MWGui
|
|||
if (Settings::gui().mControllerMenus)
|
||||
{
|
||||
okButton->setStateSelected(true);
|
||||
mControllerButtons.mLStick = "#{sMouse}";
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mB = "#{sBack}";
|
||||
mControllerButtons.mLStick = "#{Interface:Mouse}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:Back}";
|
||||
}
|
||||
|
||||
// Set default skills, attributes
|
||||
|
|
@ -678,13 +678,13 @@ namespace MWGui
|
|||
{
|
||||
okButton->setCaption(
|
||||
MyGUI::UString(MWBase::Environment::get().getWindowManager()->getGameSettingString("sNext", {})));
|
||||
mControllerButtons.mX = "#{sNext}";
|
||||
mControllerButtons.mX = "#{Interface:Next}";
|
||||
}
|
||||
else if (Settings::gui().mControllerMenus)
|
||||
{
|
||||
okButton->setCaption(
|
||||
MyGUI::UString(MWBase::Environment::get().getWindowManager()->getGameSettingString("sDone", {})));
|
||||
mControllerButtons.mX = "#{sDone}";
|
||||
mControllerButtons.mX = "#{Interface:Done}";
|
||||
}
|
||||
else
|
||||
okButton->setCaption(
|
||||
|
|
@ -882,7 +882,7 @@ namespace MWGui
|
|||
getWidget(cancelButton, "CancelButton");
|
||||
cancelButton->eventMouseButtonClick += MyGUI::newDelegate(this, &SelectSpecializationDialog::onCancelClicked);
|
||||
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:Cancel}";
|
||||
}
|
||||
|
||||
|
|
@ -963,7 +963,7 @@ namespace MWGui
|
|||
if (mAttributeButtons.size() > 0)
|
||||
mAttributeButtons[0]->setStateSelected(true);
|
||||
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:Cancel}";
|
||||
}
|
||||
}
|
||||
|
|
@ -1063,7 +1063,7 @@ namespace MWGui
|
|||
if (mSkillButtons.size() > 0)
|
||||
mSkillButtons[0]->setStateSelected(true);
|
||||
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:Cancel}";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,10 +64,10 @@ namespace MWGui
|
|||
|
||||
setCoord(200, 0, 600, 300);
|
||||
|
||||
mControllerButtons.mA = "#{sTake}";
|
||||
mControllerButtons.mA = "#{Interface:Take}";
|
||||
mControllerButtons.mB = "#{Interface:Close}";
|
||||
mControllerButtons.mR3 = "#{sInfo}";
|
||||
mControllerButtons.mL2 = "#{sInventory}";
|
||||
mControllerButtons.mR3 = "#{Interface:Info}";
|
||||
mControllerButtons.mL2 = "#{Interface:Inventory}";
|
||||
}
|
||||
|
||||
void CompanionWindow::onItemSelected(int index)
|
||||
|
|
|
|||
|
|
@ -59,11 +59,11 @@ namespace MWGui
|
|||
|
||||
setCoord(200, 0, 600, 300);
|
||||
|
||||
mControllerButtons.mA = "#{sTake}";
|
||||
mControllerButtons.mA = "#{Interface:Take}";
|
||||
mControllerButtons.mB = "#{Interface:Close}";
|
||||
mControllerButtons.mX = "#{sTakeAll}";
|
||||
mControllerButtons.mR3 = "#{sInfo}";
|
||||
mControllerButtons.mL2 = "#{sInventory}";
|
||||
mControllerButtons.mX = "#{Interface:TakeAll}";
|
||||
mControllerButtons.mR3 = "#{Interface:Info}";
|
||||
mControllerButtons.mL2 = "#{Interface:Inventory}";
|
||||
}
|
||||
|
||||
void ContainerWindow::onItemSelected(int index)
|
||||
|
|
@ -355,7 +355,7 @@ namespace MWGui
|
|||
|
||||
ControllerButtons* ContainerWindow::getControllerButtons()
|
||||
{
|
||||
mControllerButtons.mR1 = mDisposeCorpseButton->getVisible() ? "#{sDisposeofCorpse}" : "";
|
||||
mControllerButtons.mR1 = mDisposeCorpseButton->getVisible() ? "#{Interface:DisposeOfCorpse}" : {};
|
||||
return &mControllerButtons;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,3 +16,6 @@ Mouse: "sMouse"
|
|||
Done: "sDone"
|
||||
Prev: "sPrev"
|
||||
Take: "sTake"
|
||||
TakeAll: "sTakeAll"
|
||||
Inventory: "sInventory"
|
||||
DisposeOfCorpse: "sDisposeofCorpse"
|
||||
|
|
|
|||
|
|
@ -33,3 +33,6 @@ Mouse: "Mouse"
|
|||
Done: "Done"
|
||||
Prev: "Prev"
|
||||
Take: "Take"
|
||||
TakeAll: "Take All"
|
||||
Inventory: "Inventory"
|
||||
DisposeOfCorpse: "Dispose of Corpse"
|
||||
|
|
|
|||
Loading…
Reference in a new issue