mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-12 17:58:53 +01:00
Fixed menuIndex !, >, and < for menuIndex other than 0.
This commit is contained in:
parent
c90b8990df
commit
eca598ec8d
@ -749,8 +749,8 @@ void PageBuilder::buildTweenSet(AnimationEvents *tweens, xml_node<> *componentXm
|
|||||||
std::string indexs = indexXml->value();
|
std::string indexs = indexXml->value();
|
||||||
if(indexs[0] == '!')
|
if(indexs[0] == '!')
|
||||||
{
|
{
|
||||||
indexs.erase(0);
|
indexs.erase(0,1);
|
||||||
int index = Utils::convertInt(indexXml->value());
|
int index = Utils::convertInt(indexs);
|
||||||
for(int i = 0; i < MENU_INDEX_HIGH-1; i++)
|
for(int i = 0; i < MENU_INDEX_HIGH-1; i++)
|
||||||
{
|
{
|
||||||
if(i != index)
|
if(i != index)
|
||||||
@ -763,8 +763,8 @@ void PageBuilder::buildTweenSet(AnimationEvents *tweens, xml_node<> *componentXm
|
|||||||
}
|
}
|
||||||
else if(indexs[0] == '<')
|
else if(indexs[0] == '<')
|
||||||
{
|
{
|
||||||
indexs.erase(0);
|
indexs.erase(0,1);
|
||||||
int index = Utils::convertInt(indexXml->value());
|
int index = Utils::convertInt(indexs);
|
||||||
for(int i = 0; i < MENU_INDEX_HIGH-1; i++)
|
for(int i = 0; i < MENU_INDEX_HIGH-1; i++)
|
||||||
{
|
{
|
||||||
if(i < index)
|
if(i < index)
|
||||||
@ -777,8 +777,8 @@ void PageBuilder::buildTweenSet(AnimationEvents *tweens, xml_node<> *componentXm
|
|||||||
}
|
}
|
||||||
else if(indexs[0] == '>')
|
else if(indexs[0] == '>')
|
||||||
{
|
{
|
||||||
indexs.erase(0);
|
indexs.erase(0,1);
|
||||||
int index = Utils::convertInt(indexXml->value());
|
int index = Utils::convertInt(indexs);
|
||||||
for(int i = 0; i < MENU_INDEX_HIGH-1; i++)
|
for(int i = 0; i < MENU_INDEX_HIGH-1; i++)
|
||||||
{
|
{
|
||||||
if(i > index)
|
if(i > index)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user