mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-22 03:13:15 -04:00
Use newly exposed UI action lines in more menus
This commit is contained in:
parent
ea3240ce03
commit
253ac42520
@ -151,7 +151,7 @@ namespace MWGui
|
||||
image->setImageTexture(MWBase::Environment::get().getInputManager()->getControllerButtonIcon(
|
||||
SDL_CONTROLLER_BUTTON_RIGHTSHOULDER));
|
||||
|
||||
mControllerButtons.mR3 = "#{sInfo}";
|
||||
mControllerButtons.mR3 = "#{Interface:Info}";
|
||||
}
|
||||
|
||||
adjustPanes();
|
||||
@ -973,7 +973,7 @@ namespace MWGui
|
||||
case MWGui::GM_Container:
|
||||
mControllerButtons.mA = "#{OMWEngine:InventorySelect}";
|
||||
mControllerButtons.mB = "#{Interface:Close}";
|
||||
mControllerButtons.mX = "#{sTakeAll}";
|
||||
mControllerButtons.mX = "#{Interface:TakeAll}";
|
||||
mControllerButtons.mR2 = "#{sContainer}";
|
||||
break;
|
||||
case MWGui::GM_Barter:
|
||||
@ -985,7 +985,7 @@ namespace MWGui
|
||||
case MWGui::GM_Inventory:
|
||||
default:
|
||||
mControllerButtons.mA = "#{sEquip}";
|
||||
mControllerButtons.mB = "#{sBack}";
|
||||
mControllerButtons.mB = "#{Interface:Back}";
|
||||
mControllerButtons.mX = "#{sDrop}";
|
||||
mControllerButtons.mR2.clear();
|
||||
break;
|
||||
|
@ -29,9 +29,9 @@ namespace MWGui
|
||||
|
||||
center();
|
||||
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:Cancel}";
|
||||
mControllerButtons.mR3 = "#{sInfo}";
|
||||
mControllerButtons.mR3 = "#{Interface:Info}";
|
||||
}
|
||||
|
||||
bool ItemSelectionDialog::exit()
|
||||
|
@ -224,7 +224,7 @@ namespace
|
||||
if (isRussian) // Cyrillic is either (10 + 10 + 10) or (15 + 15)
|
||||
mIndexRowCount = MWGui::getCyrillicIndexPageCount();
|
||||
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mX = "#{OMWEngine:JournalQuests}";
|
||||
mControllerButtons.mY = "#{sTopics}";
|
||||
|
||||
|
@ -94,8 +94,8 @@ namespace MWGui
|
||||
if (Settings::gui().mControllerMenus)
|
||||
{
|
||||
mDisableGamepadCursor = true;
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mX = "#{sDone}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mX = "#{Interface:Done}";
|
||||
mOkButton->setCaption(
|
||||
MyGUI::UString(MWBase::Environment::get().getWindowManager()->getGameSettingString("sDone", {})));
|
||||
}
|
||||
|
@ -834,7 +834,7 @@ namespace MWGui
|
||||
|
||||
if (Settings::gui().mControllerMenus)
|
||||
{
|
||||
mControllerButtons.mB = "#{sBack}";
|
||||
mControllerButtons.mB = "#{Interface:Back}";
|
||||
mControllerButtons.mX = global ? "#{sLocal}" : "#{sWorld}";
|
||||
mControllerButtons.mY = "#{sCenter}";
|
||||
mControllerButtons.mDpad = Settings::map().mAllowZooming ? "" : "#{sMove}";
|
||||
|
@ -61,7 +61,7 @@ namespace MWGui
|
||||
|
||||
if (Settings::gui().mControllerMenus)
|
||||
{
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:OK}";
|
||||
}
|
||||
}
|
||||
@ -539,7 +539,7 @@ namespace MWGui
|
||||
{
|
||||
mDisableGamepadCursor = true;
|
||||
mItemButton->setStateSelected(true);
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:Cancel}";
|
||||
}
|
||||
|
||||
@ -701,7 +701,7 @@ namespace MWGui
|
||||
|
||||
if (Settings::gui().mControllerMenus)
|
||||
{
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:Cancel}";
|
||||
}
|
||||
|
||||
|
@ -108,9 +108,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}";
|
||||
mControllerButtons.mY = "#{sSex}";
|
||||
mControllerButtons.mL1 = "#{sHair}";
|
||||
mControllerButtons.mR1 = "#{sFace}";
|
||||
@ -130,13 +130,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(
|
||||
|
@ -42,7 +42,7 @@ namespace MWGui
|
||||
|
||||
mControllerButtons.mA = "#{OMWEngine:RechargeSelect}";
|
||||
mControllerButtons.mB = "#{Interface:Cancel}";
|
||||
mControllerButtons.mY = "#{sSoulGem}";
|
||||
mControllerButtons.mY = "#{Interface:Soul}";
|
||||
}
|
||||
|
||||
void Recharge::onOpen()
|
||||
|
@ -123,9 +123,9 @@ namespace MWGui
|
||||
if (Settings::gui().mControllerMenus)
|
||||
{
|
||||
setControllerFocus(mButtons, mControllerFocus, true);
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mB = "#{sBack}";
|
||||
mControllerButtons.mX = "#{sDone}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:Back}";
|
||||
mControllerButtons.mX = "#{Interface:Done}";
|
||||
okButton->setCaption(
|
||||
MyGUI::UString(MWBase::Environment::get().getWindowManager()->getGameSettingString("sDone", {})));
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ namespace MWGui
|
||||
// To avoid accidental deletions
|
||||
mDeleteButton->setNeedKeyFocus(false);
|
||||
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:Cancel}";
|
||||
}
|
||||
|
||||
|
@ -130,7 +130,10 @@ namespace MWGui
|
||||
|
||||
ControllerButtons* ScrollWindow::getControllerButtons()
|
||||
{
|
||||
mControllerButtons.mA = mTakeButton->getVisible() ? "#{sTake}" : "";
|
||||
if (mTakeButton->getVisible())
|
||||
mControllerButtons.mA = "#{Interface:Take}";
|
||||
else
|
||||
mControllerButtons.mA.clear();
|
||||
return &mControllerButtons;
|
||||
}
|
||||
|
||||
|
@ -452,9 +452,9 @@ namespace MWGui
|
||||
i++;
|
||||
}
|
||||
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:OK}";
|
||||
mControllerButtons.mLStick = "#{sMouse}";
|
||||
mControllerButtons.mLStick = "#{Interface:Mouse}";
|
||||
}
|
||||
|
||||
void SettingsWindow::onTabChanged(MyGUI::TabControl* /*sender*/, size_t /*index*/)
|
||||
|
@ -38,9 +38,9 @@ namespace MWGui
|
||||
if (Settings::gui().mControllerMenus)
|
||||
{
|
||||
mDisableGamepadCursor = true;
|
||||
mControllerButtons.mA = "#{sBuy}";
|
||||
mControllerButtons.mA = "#{Interface:Buy}";
|
||||
mControllerButtons.mB = "#{Interface:Cancel}";
|
||||
mControllerButtons.mR3 = "#{sInfo}";
|
||||
mControllerButtons.mR3 = "#{Interface:Info}";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ namespace MWGui
|
||||
|
||||
if (Settings::gui().mControllerMenus)
|
||||
{
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:Cancel}";
|
||||
mControllerButtons.mX = "#{Interface:OK}";
|
||||
}
|
||||
@ -599,10 +599,10 @@ namespace MWGui
|
||||
|
||||
if (Settings::gui().mControllerMenus)
|
||||
{
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:Cancel}";
|
||||
mControllerButtons.mX = "#{sBuy}";
|
||||
mControllerButtons.mR3 = "#{sInfo}";
|
||||
mControllerButtons.mX = "#{Interface:Buy}";
|
||||
mControllerButtons.mR3 = "#{Interface:Info}";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -62,9 +62,9 @@ namespace MWGui
|
||||
if (Settings::gui().mControllerMenus)
|
||||
{
|
||||
setPinButtonVisible(false);
|
||||
mControllerButtons.mA = "#{sSelect}";
|
||||
mControllerButtons.mB = "#{sBack}";
|
||||
mControllerButtons.mR3 = "#{sInfo}";
|
||||
mControllerButtons.mA = "#{Interface:Select}";
|
||||
mControllerButtons.mB = "#{Interface:Back}";
|
||||
mControllerButtons.mR3 = "#{Interface:Info}";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -84,9 +84,9 @@ namespace MWGui
|
||||
if (Settings::gui().mControllerMenus)
|
||||
{
|
||||
setPinButtonVisible(false);
|
||||
mControllerButtons.mLStick = "#{sMouse}";
|
||||
mControllerButtons.mLStick = "#{Interface:Mouse}";
|
||||
mControllerButtons.mRStick = "#{sScrolldown}";
|
||||
mControllerButtons.mB = "#{sBack}";
|
||||
mControllerButtons.mB = "#{Interface:Back}";
|
||||
}
|
||||
|
||||
onWindowResize(t);
|
||||
|
@ -188,11 +188,11 @@ namespace MWGui
|
||||
image->setImageTexture(MWBase::Environment::get().getInputManager()->getControllerButtonIcon(
|
||||
SDL_CONTROLLER_BUTTON_RIGHTSHOULDER));
|
||||
|
||||
mControllerButtons.mA = "#{sBuy}";
|
||||
mControllerButtons.mA = "#{Interface:Buy}";
|
||||
mControllerButtons.mB = "#{Interface:Cancel}";
|
||||
mControllerButtons.mX = "#{sOffer}";
|
||||
mControllerButtons.mR3 = "#{sInfo}";
|
||||
mControllerButtons.mL2 = "#{sInventory}";
|
||||
mControllerButtons.mR3 = "#{Interface:Info}";
|
||||
mControllerButtons.mL2 = "#{Interface:Inventory}";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ namespace MWGui
|
||||
if (Settings::gui().mControllerMenus)
|
||||
{
|
||||
mDisableGamepadCursor = true;
|
||||
mControllerButtons.mA = "#{sBuy}";
|
||||
mControllerButtons.mA = "#{Interface:Buy}";
|
||||
mControllerButtons.mB = "#{Interface:Cancel}";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user