screen ResumeOrContinueAdventure { onaction escape "SetScreenInAnim MainMenu In_Right; SetScreenOutAnim ResumeOrContinueAdventure Out_right; SetScreenOutAnim Pyramid Out_right; gotoscreen MainMenu" defaultwidget NewGame defaultwidget Continue widget Button ReturnToModeSelect { onaction enter "SetScreenInAnim MainMenu In_Right; SetScreenOutAnim ResumeOrContinueAdventure Out_right; SetScreenOutAnim Pyramid Out_right; gotoscreen MainMenu" mins 65, 550 size 128, 26 textVerticalAlignment "Top" textAlignment "Center" text "#Back" textAlignment "center" style "Luxor2Style09" } widget Button NewGame { onaction enter "SetScreenOutAnim ResumeOrContinueAdventure Out; popdialog; event UINewGameRequested" mins 325, 550 size 155, 26 textVerticalAlignment "Top" textAlignment "Center" text "#StartOver" style "Luxor2Style03" } widget Button Continue { onaction enter "SetScreenOutAnim ResumeOrContinueAdventure Out; SetScreenOutAnim Pyramid Out; event ContinueAdventureCampaign" eventToDisableOn "HideContinueGameButton" eventToEnableOn "ShowContinueGameButton" mins 610, 550 size 128, 26 textVerticalAlignment "Top" textAlignment "Center" text "#Continue" style "Luxor2Style03" } widget Button HiddenConfirmStartNewGameCommand { hidden disabled eventToExecuteActionOn "UINewGameRequested" eventToEnableOn "ShowContinueGameButton" eventToDisableOn "HideContinueGameButton" onaction enter "PushDialog NewGameWarning" } widget Button HiddenStartNewGameCommandSafely { hidden eventToExecuteActionOn "UINewGameRequested" eventToDisableOn "ShowContinueGameButton" eventToEnableOn "HideContinueGameButton" onaction enter "pushdialog difficultyAdventure" } animation In_Left { init screen position=relative (800,0) at 0 ms moveScreen from relative (800,0) to relative (0,0) over 1600 ms speed=Cosine } animation Out_Right { animHandoffTime 0 init screen position=relative (0,0) at 0 ms moveScreen from relative (0,0) to relative (800,0) over 1600 ms speed=Cosine } animation Out { animHandoffTime 0 init screen position=relative (0,0) } } screen NewGameWarning { onaction escape "event EscapeNewGameWarning" widget Label Background { mins 170,20 size 456,559 texture "data/gfx/ui/popup menu_full_1.png" } widget Label WarningText1 { mins 320, 140 size 160, 30 style "BannerText02Red" WordWrap textVerticalAlignment "top" textAlignment "center" text "#Warning" } widget Label WarningText2 { mins 256, 180 size 300, 200 style "BannerText02" WordWrap textVerticalAlignment "top" textAlignment "center" text "#ContinueNewGameConfirm" } // "CONTINUE" button widget Button Confirm { onaction enter "PopDialog; PushDialog DifficultyAdventure" mins 335, 430 size 128, 26 text "#ConfirmStartNewGame" textAlignment "center" textVerticalAlignment "top" style "Luxor2Style03" } // "STOP" button widget Button Deny { onaction enter "SetScreenInAnim ResumeOrContinueAdventure In; PopDialog; PushDialog ResumeOrContinueAdventure" mins 335, 480 size 128, 26 text "#DenyStartNewGame" textAlignment "center" textVerticalAlignment "top" style "Luxor2Style03" EventToExecuteActionOn "EscapeNewGameWarning" } widget EffectEmitter lightning_orb { mins 405, 88 effectName "HUD_lightning_orb_01" EventToStartEffectsOn "UIStartNewGameWarningEffect" EventToStopEffectsOn "UIStopNewGameWarningEffect" //StartOn } animation In { init screen color=(255,255,255,0) at 0 ms consoleCommand "event UIStartNewGameWarningEffect" at 0 ms colorScreen from (255,255,255,0) to (255,255,255,255) over 300ms speed=Cosine } animation Out { init screen color=(255,255,255,255) at 0 ms consoleCommand "event UIStopNewGameWarningEffect" at 0 ms colorScreen from (255,255,255,255) to (255,255,255,0) over 300ms speed=Cosine } }
edwardfranio