mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-16 10:16:33 +00:00
Merge branch 'fix_ppa_build_failure_ButtonDefinition' into 'master'
Fix PPA GCC-15 build failure with ButtonDefinition See merge request OpenMW/openmw!4837
This commit is contained in:
commit
b5f87a9d50
2 changed files with 5 additions and 4 deletions
|
@ -48,9 +48,9 @@ namespace MWGui
|
|||
|
||||
for (size_t i = 0; i < mButtons.size(); i++)
|
||||
{
|
||||
getWidget(mButtons[i].mImage, "Btn" + sButtonDefs[i].mName + "Image");
|
||||
getWidget(mButtons[i].mText, "Btn" + sButtonDefs[i].mName + "Text");
|
||||
getWidget(mButtons[i].mHBox, "Btn" + sButtonDefs[i].mName);
|
||||
getWidget(mButtons[i].mImage, "Btn" + std::string(sButtonDefs[i].mName) + "Image");
|
||||
getWidget(mButtons[i].mText, "Btn" + std::string(sButtonDefs[i].mName) + "Text");
|
||||
getWidget(mButtons[i].mHBox, "Btn" + std::string(sButtonDefs[i].mName));
|
||||
|
||||
if (sButtonDefs[i].mInputType == InputType_Axis)
|
||||
setIcon(mButtons[i].mImage, inputMgr->getControllerAxisIcon(sButtonDefs[i].mId.mAxis));
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#define MWGUI_CONTROLLERBUTTONSOVERLAY_H
|
||||
|
||||
#include <array>
|
||||
#include <string_view>
|
||||
|
||||
#include <MyGUI_ImageBox.h>
|
||||
#include <MyGUI_TextBox.h>
|
||||
|
@ -49,7 +50,7 @@ namespace MWGui
|
|||
struct ButtonDefinition
|
||||
{
|
||||
Button mButton;
|
||||
std::string mName;
|
||||
std::string_view mName;
|
||||
InputType mInputType;
|
||||
union
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue