mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-12 09:48:51 +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();
|
||||
if(indexs[0] == '!')
|
||||
{
|
||||
indexs.erase(0);
|
||||
int index = Utils::convertInt(indexXml->value());
|
||||
indexs.erase(0,1);
|
||||
int index = Utils::convertInt(indexs);
|
||||
for(int i = 0; i < MENU_INDEX_HIGH-1; i++)
|
||||
{
|
||||
if(i != index)
|
||||
@ -763,8 +763,8 @@ void PageBuilder::buildTweenSet(AnimationEvents *tweens, xml_node<> *componentXm
|
||||
}
|
||||
else if(indexs[0] == '<')
|
||||
{
|
||||
indexs.erase(0);
|
||||
int index = Utils::convertInt(indexXml->value());
|
||||
indexs.erase(0,1);
|
||||
int index = Utils::convertInt(indexs);
|
||||
for(int i = 0; i < MENU_INDEX_HIGH-1; i++)
|
||||
{
|
||||
if(i < index)
|
||||
@ -777,8 +777,8 @@ void PageBuilder::buildTweenSet(AnimationEvents *tweens, xml_node<> *componentXm
|
||||
}
|
||||
else if(indexs[0] == '>')
|
||||
{
|
||||
indexs.erase(0);
|
||||
int index = Utils::convertInt(indexXml->value());
|
||||
indexs.erase(0,1);
|
||||
int index = Utils::convertInt(indexs);
|
||||
for(int i = 0; i < MENU_INDEX_HIGH-1; i++)
|
||||
{
|
||||
if(i > index)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user