mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 23:15:38 +00:00
Added support for including the left and right trigger buttons in the help prompts.
This commit is contained in:
parent
42458a7d76
commit
13abaf6734
|
@ -89,6 +89,10 @@ void HelpStyle::applyTheme(const std::shared_ptr<ThemeData>& theme, const std::s
|
||||||
mCustomButtons.button_r = elem->get<std::string>("button_r");
|
mCustomButtons.button_r = elem->get<std::string>("button_r");
|
||||||
if (elem->has("button_lr"))
|
if (elem->has("button_lr"))
|
||||||
mCustomButtons.button_lr = elem->get<std::string>("button_lr");
|
mCustomButtons.button_lr = elem->get<std::string>("button_lr");
|
||||||
|
if (elem->has("button_lt"))
|
||||||
|
mCustomButtons.button_lt = elem->get<std::string>("button_lt");
|
||||||
|
if (elem->has("button_rt"))
|
||||||
|
mCustomButtons.button_rt = elem->get<std::string>("button_rt");
|
||||||
|
|
||||||
// SNES.
|
// SNES.
|
||||||
if (elem->has("button_a_SNES"))
|
if (elem->has("button_a_SNES"))
|
||||||
|
|
|
@ -40,6 +40,8 @@ struct HelpStyle {
|
||||||
std::string button_l;
|
std::string button_l;
|
||||||
std::string button_r;
|
std::string button_r;
|
||||||
std::string button_lr;
|
std::string button_lr;
|
||||||
|
std::string button_lt;
|
||||||
|
std::string button_rt;
|
||||||
|
|
||||||
// SNES.
|
// SNES.
|
||||||
std::string button_a_SNES;
|
std::string button_a_SNES;
|
||||||
|
|
|
@ -657,8 +657,10 @@ void Window::setHelpPrompts(const std::vector<HelpPrompt>& prompts, const HelpSt
|
||||||
"b",
|
"b",
|
||||||
"x",
|
"x",
|
||||||
"y",
|
"y",
|
||||||
"l",
|
|
||||||
"r",
|
"r",
|
||||||
|
"l",
|
||||||
|
"rt",
|
||||||
|
"lt",
|
||||||
"start",
|
"start",
|
||||||
"back"};
|
"back"};
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
|
@ -51,6 +51,10 @@ void HelpComponent::assignIcons()
|
||||||
mStyle.mCustomButtons.button_r;
|
mStyle.mCustomButtons.button_r;
|
||||||
sIconPathMap["lr"] = mStyle.mCustomButtons.button_lr.empty() ? ":/help/button_lr.svg" :
|
sIconPathMap["lr"] = mStyle.mCustomButtons.button_lr.empty() ? ":/help/button_lr.svg" :
|
||||||
mStyle.mCustomButtons.button_lr;
|
mStyle.mCustomButtons.button_lr;
|
||||||
|
sIconPathMap["lt"] = mStyle.mCustomButtons.button_lt.empty() ? ":/help/button_lt.svg" :
|
||||||
|
mStyle.mCustomButtons.button_lt;
|
||||||
|
sIconPathMap["rt"] = mStyle.mCustomButtons.button_rt.empty() ? ":/help/button_rt.svg" :
|
||||||
|
mStyle.mCustomButtons.button_rt;
|
||||||
|
|
||||||
// These graphics files are custom per controller type.
|
// These graphics files are custom per controller type.
|
||||||
if (controllerType == "snes") {
|
if (controllerType == "snes") {
|
||||||
|
|
Loading…
Reference in a new issue