local x_pos local y_pos CreateTitle("MICSETUP_ManualTitle") CreateNavigationButtons("MicrophoneDelayManual_Confirm", 1, "Confirm") CreateNavigationButtons("MicrophoneDelayManual_Reset", 2, "Reset") CreateNavigationButtons("MicrophoneDelayManual_Cancel", 3, "Cancel") --ARROWS Left_Arrow=547 Right_Arrow=1159 LagPosition=305 arrowSize = 128 fade_time = 0.1 CreateText({ name="MicrophoneDelayManual_text", text="MICSETUP_ManualText", pos={x=853, y=230}, size={ x=980, y=700, }, fontSize=28, color=0xffffffff, xAlign="center", yAlign="top", visible=true }) ConnectChild({parent="root", child="MicrophoneDelayManual_text"}) x_pos = 675 y_pos = 490 textSpacing = 125 CreateNodeGroup({ name="MicrophoneDelayManual_Lag", pos={x=x_pos+128-textSpacing,y=y_pos+29}, size={x=(textSpacing*2)+128,y=128}, color=0xffffffff}) ConnectChild({parent="root", child="MicrophoneDelayManual_Lag"}) CreateArrowGroup({name="MicrophoneDelayManual_LagLeft", type="normal", x=x_pos-textSpacing, y=y_pos+10, width=arrowSize, height=arrowSize, color= 0xffffff00}) CreateArrowGroup({name="MicrophoneDelayManual_LagRight", type="flipped", x=x_pos+256+textSpacing, y=y_pos+10, width=arrowSize, height=arrowSize, color= 0xffffff00}) CreateTextBar({name="MicrophoneDelayManual_LagCenterNorm", parent="MicrophoneDelayManual_Lag", type="Normal", height=90, width=(textSpacing*2)+128, x=0, y=0, color=0xffffff00}) CreateTextBar({name="MicrophoneDelayManual_Lag_HL", parent="MicrophoneDelayManual_Lag", type="Highlighted", height=90, width=(textSpacing*2)+128, x=0, y=0, color=0xffffff00}) ------------------------------------------------------------------------------- -- Animations Scripts. ------------------------------------------------------------------------------- StartScript({name="Hover_MicrophoneDelayManual_Lag"}) FadeIn({node="MicrophoneDelayManual_LagLeft", duration=fade_time}) FadeIn({node="MicrophoneDelayManual_LagRight", duration=fade_time}) FadeIn({node="MicrophoneDelayManual_Lag_HL", duration=fade_time}) EndScript() StartScript({name="Unhover_MicrophoneDelayManual_Lag"}) Fade({node="MicrophoneDelayManual_LagLeft", alpha=0.5, duration=fade_time}) Fade({node="MicrophoneDelayManual_LagRight", alpha=0.5, duration=fade_time}) FadeOut({node="MicrophoneDelayManual_Lag_HL", duration=fade_time}) EndScript() ArrowGroupFlash("FlashLagLeft", "MicrophoneDelayManual_LagLeft_SL") ArrowGroupFlash("FlashLagRight", "MicrophoneDelayManual_LagRight_SL") ArrowGroupSelect("HoverLagLeft", "MicrophoneDelayManual_LagLeft_Normal", "MicrophoneDelayManual_LagLeft_HL", arrowSize, arrowSize, "normal") ArrowGroupSelect("HoverLagRight", "MicrophoneDelayManual_LagRight_Normal", "MicrophoneDelayManual_LagRight_HL", arrowSize, arrowSize, "flipped") ArrowGroupDeselect("UnhoverLagLeft", "MicrophoneDelayManual_LagLeft_Normal", "MicrophoneDelayManual_LagLeft_HL", arrowSize, arrowSize, "normal") ArrowGroupDeselect("UnhoverLagRight", "MicrophoneDelayManual_LagRight_Normal", "MicrophoneDelayManual_LagRight_HL", arrowSize, arrowSize, "flipped") StartScript({name="LockLagLeft"}) FadeOut({node="MicrophoneDelayManual_LagLeft_HL", duration=fade_time}) EndScript() StartScript({name="LockLagRight"}) FadeOut({node="MicrophoneDelayManual_LagRight_HL", duration=fade_time}) EndScript() -- Intro animation StartScript ({name = "OnEnter"}) grow_time = 0.27; -- the time it takes each part to come in / go out -- Button animations. FadeIn ({node = "TitleText", duration = grow_time}) Fade ({node = "MicrophoneDelayManual_Lag", duration = grow_time, alpha=0.5}) Fade ({node = "MicrophoneDelayManual_Confirm", duration = grow_time, alpha=0.5}) Fade ({node = "MicrophoneDelayManual_Reset", duration = grow_time, alpha=0.5}) Fade ({node = "MicrophoneDelayManual_Cancel", duration = grow_time, alpha=0.5}) FadeIn ({node = "MicrophoneDelayManual_text", duration = grow_time}) FadeIn({node="MicrophoneDelayManual_LagLeft", duration=fade_time}) FadeIn({node="MicrophoneDelayManual_LagRight", duration=fade_time}) EndScript () -- Exit animation StartScript ({name = "OnExit"}) fade_out_time = 0.1; FadeOut ({node = "MicrophoneDelayManual_Lag", duration = fade_out_time}) FadeOut ({node = "MicrophoneDelayManual_Confirm", duration = fade_out_time}) FadeOut ({node = "MicrophoneDelayManual_Reset", duration = fade_out_time}) FadeOut ({node = "MicrophoneDelayManual_Cancel", duration = fade_out_time}) FadeOut ({node = "MicrophoneDelayManual_text", duration = fade_out_time}) FadeOut ({node="MicrophoneDelayManual_LagLeft", duration=fade_time}) FadeOut ({node="MicrophoneDelayManual_LagRight", duration=fade_time}) FadeOut ({node = "TitleText", duration = fade_out_time}) EndScript ()