/**
This gamemode is just an UI with all animations easings displayed.
*/
#Extends "Modes/TrackMania/TM_TimeAttack_Online.Script.txt"
#Const C_Anims [
"Linear",
"QuadIn", "QuadOut", "QuadInOut",
"CubicIn", "CubicOut", "CubicInOut",
"QuartIn", "QuartOut", "QuartInOut",
"QuintIn", "QuintOut", "QuintInOut",
"SineIn", "SineOut", "SineInOut",
"ExpIn", "ExpOut", "ExpInOut",
"CircIn", "CircOut", "CircInOut",
"BackIn", "BackOut", "BackInOut",
"ElasticIn", "ElasticOut", "ElasticInOut",
"ElasticIn2", "ElasticOut2", "ElasticInOut2",
"BounceIn", "BounceOut", "BounceInOut"
]
***Match_AfterLoadHud***
***
SetMl();
***
Void SetMl() {
declare Integer IndexX = 0;
declare Integer IndexY = 0;
declare Text FrameInstances;
for (I, 0, C_Anims.count - 1) {
FrameInstances ^= """""";
if (IndexX == 4) {
IndexX = 0;
IndexY += 1;
} else {
IndexX += 1;
}
}
declare Text MLText = """
{{{FrameInstances}}}
""";
Layers::Create("AnimationEasingsExamples", MLText);
Layers::SetType("AnimationEasingsExamples", CUILayer::EUILayerType::Normal);
Layers::Attach("AnimationEasingsExamples");
}