Fixed menuIndex !, >, and < for menuIndex other than 0.

This commit is contained in:
Pieter Hulshoff 2017-09-08 11:33:12 +02:00
parent c90b8990df
commit eca598ec8d

View File

@ -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)