-- Title local icon_alpha = 0.5 AddOptionsText(595, 165, "SelectText", "OPTIONS_ScreenPos") x_centre = 870 y_centre = 435 x_dist = 320 y_dist = 195 x_pos = 875 y_pos = 474 AddIconButton(x_pos, y_pos, 128, 128, 0.8, 0.8, "Icon1", "textures/OPS/OPS_Ico_Load.tex") x_pos = x_pos + 100 AddIconButton(x_pos, y_pos, 128, 128, 0.8, 0.8, "Icon2", "textures/OPS/OPS_Ico_Save.tex") x_pos = 720 + 350 y_pos = 710 CreateTextButton ({ name="Confirm_button", text="FRONTEND_Confirm", x=x_pos, y=y_pos, width=300, height=80, type="Normal", color=0xffffff00}) CreateTextButton ({ name="Confirm_button_HL", text="FRONTEND_Confirm", x=x_pos, y=y_pos, width=300, height=80, type="Highlighted", color=0xffffff00 }) CreateTextButton ({ name="Confirm_button_SL", text="FRONTEND_Confirm", x=x_pos, y=y_pos, width=300, height=80, type="Selected", color=0xffffff00 }) CreateTextButton_SelectAnimation ("HoverConfirm", "Confirm_button", "Confirm_button_HL","Confirm_button_SL", 80, 300) CreateTextButton_DeselectAnimation ("UnHoverConfirm", "Confirm_button", "Confirm_button_HL","Confirm_button_SL", 80, 300) CreateTextButton_ClickAnimation ("ClickConfirm", "Confirm_button", "Confirm_button_HL","Confirm_button_SL", 80, 300) x_pos = x_pos - 350; CreateTextButton ({ name="Reset_button", text="OPTIONS_PS3_FitReset", x=x_pos, y=y_pos, width=300, height=80, type="Normal", color=0xffffff00}) CreateTextButton ({ name="Reset_button_HL", text="OPTIONS_PS3_FitReset", x=x_pos, y=y_pos, width=300, height=80, type="Highlighted", color=0xffffff00 }) CreateTextButton ({ name="Reset_button_SL", text="OPTIONS_PS3_FitReset", x=x_pos, y=y_pos, width=300, height=80, type="Selected", color=0xffffff00 }) CreateTextButton_SelectAnimation ("HoverReset", "Reset_button", "Reset_button_HL","Reset_button_SL", 80, 300) CreateTextButton_DeselectAnimation ("UnHoverReset", "Reset_button", "Reset_button_HL","Reset_button_SL", 80, 300) CreateTextButton_ClickAnimation ("ClickReset", "Reset_button", "Reset_button_HL","Reset_button_SL", 80, 300) x_pos = x_pos - 350; CreateTextButton ({ name="Cancel_button", text="OPTIONS_Cancel", x=x_pos, y=y_pos, width=300, height=80, type="Normal", color=0xffffff00}) CreateTextButton ({ name="Cancel_button_HL", text="OPTIONS_Cancel", x=x_pos, y=y_pos, width=300, height=80, type="Highlighted", color=0xffffff00 }) CreateTextButton ({ name="Cancel_button_SL", text="OPTIONS_Cancel", x=x_pos, y=y_pos, width=300, height=80, type="Selected", color=0xffffff00 }) CreateTextButton_SelectAnimation ("HoverCancel", "Cancel_button", "Cancel_button_HL","Cancel_button_SL", 80, 300) CreateTextButton_DeselectAnimation ("UnHoverCancel", "Cancel_button", "Cancel_button_HL","Cancel_button_SL", 80, 300) CreateTextButton_ClickAnimation ("ClickCancel", "Cancel_button", "Cancel_button_HL","Cancel_button_SL", 80, 300) CreateText ({ name = "FitMessage", text = "OPTIONS_PS3_FitMessage", xAlign = "center", fontSize = 36, pos = { x = 890, y = 340, }, size = { x = 600, y = 200, }, color=0xffffffff, }) ConnectChild ({ parent = "root", child = "FitMessage" }) CreateText ({ name = "FitControls", text = "OPTIONS_PS3_FitControls", xAlign = "center", fontSize = 36, pos = { x = 890, y = 540, }, size = { x = 600, y = 200, }, color=0xffffffff, }) ConnectChild ({ parent = "root", child = "FitControls" }) -------------------------------------------------------- -- Intro animation -------------------------------------------------------- StartScript ({name = "OnEnter"}) grow_time = 0.27; -- the time it takes each part to come in / go out Show({node = "SelectText"}) FadeIn ({node = "SelectText", duration = grow_time}) Fade({node="Confirm_button", alpha=0.3, duration = grow_time}) Fade({node="Cancel_button", alpha=0.3, duration = grow_time}) Fade({node="Reset_button", alpha=0.3, duration = grow_time}) FadeIn ({node = "FitMessage", duration = grow_time}) FadeIn ({node = "FitControls", duration = grow_time}) EndScript () -------------------------------------------------------- -- Exit animation -------------------------------------------------------- StartScript ({name = "OnExit"}) fade_out_time = 0.1; FadeOut ({node = "SelectText", duration = fade_out_time}) FadeOut({node="Confirm_button", duration = grow_time}) FadeOut({node="Confirm_button_HL", duration = grow_time}) FadeOut({node="Confirm_button_SL", duration = grow_time}) FadeOut({node="Reset_button", duration = grow_time}) FadeOut({node="Reset_button_HL", duration = grow_time}) FadeOut({node="Reset_button_SL", duration = grow_time}) FadeOut({node="Cancel_button", duration = grow_time}) FadeOut({node="Cancel_button_HL", duration = grow_time}) FadeOut({node="Cancel_button_SL", duration = grow_time}) FadeOut ({node = "FitMessage", duration = fade_out_time}) FadeOut ({node = "FitControls", duration = fade_out_time}) EndScript ()