|
|
|
@ -33,6 +33,32 @@ namespace MWRender{
|
|
|
|
|
animate = loops;
|
|
|
|
|
time = startTime;
|
|
|
|
|
}
|
|
|
|
|
else if(textmappings){
|
|
|
|
|
std::string startName = groupname + ": start";
|
|
|
|
|
std::string stopName = groupname + ": stop";
|
|
|
|
|
std::cout << "StartName:" << startName << "\n";
|
|
|
|
|
bool first = false;
|
|
|
|
|
for(std::map<std::string, float>::iterator iter = textmappings->begin(); iter != textmappings->end(); iter++){
|
|
|
|
|
|
|
|
|
|
std::string current = iter->first.substr(0, startName.size());
|
|
|
|
|
std::transform(current.begin(), current.end(), current.begin(), ::tolower);
|
|
|
|
|
std::string current2 = iter->first.substr(0, stopName.size());
|
|
|
|
|
std::transform(current2.begin(), current2.end(), current2.begin(), ::tolower);
|
|
|
|
|
|
|
|
|
|
if(current == startName){
|
|
|
|
|
startTime = iter->second;
|
|
|
|
|
animate = loops;
|
|
|
|
|
time = startTime;
|
|
|
|
|
first = true;
|
|
|
|
|
}
|
|
|
|
|
if(current2 == stopName){
|
|
|
|
|
stopTime = iter->second;
|
|
|
|
|
if(first)
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
void Animation::stopScript(){
|
|
|
|
|