Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

MobileGame.MobileMenuSplash


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
/**
 * Copyright 1998-2011 Epic Games, Inc. All Rights Reserved.
 */
class MobileMenuSplash extends MobileMenuScene;

var float HelpFlashDuration;

event InitMenuScene(MobilePlayerInput PlayerInput, int ScreenWidth, int ScreenHeight)
{
	local float scale;

	if (ScreenWidth < 960)
	{
		MenuObjects[0].Width = 0.95;
	}

	super.InitMenuScene(PlayerInput, ScreenWidth, ScreenHeight);

	Scale = (ScreenWidth >= 960) ? 1.0 : Float(ScreenWidth) / 960;

	MenuObjects[1].Width = 574 * Scale;
	MenuObjects[1].Height = 574 * Scale * 0.1393728222996516;
	MenuObjects[1].Left = (ScreenWidth/2) - 40*Scale;

}

event OnTouch(MobileMenuObject Sender,float TouchX, float TouchY, bool bCancel)
{
	local CastlePC PC;
	if (Sender.Tag == "CATCHALL")
	{
		if (bCancel == false)
		{
			PC = CastlePC(InputOwner.Outer);
			InputOwner.CloseMenuScene(self);
			PC.FlashHelp(HelpFlashDuration);
		}
	}
}

function Closed() 
{
	CastlePC(InputOwner.Outer).StartTutorials();
	Super.Closed();
}

defaultproperties
{

	Top=0
	Left=0
	Width=1.0
	Height=1.0
	bRelativeWidth=true
	bRelativeHeight=true

	Begin Object Class=MobileMenuImage Name=INFO
		Tag="INFO"
		Left=0.5
		Top=0.5
		Width=0.6927083
		Height=0.2601503759398496
		bHeightRelativeToWidth=true
		XOffset=0.5
		YOffset=0.5
		bRelativeLeft=true
		bRelativeTop=true
		bRelativeWidth=true
		bRelativeHeight=true
		Image=Texture2D'CastleUI.menus.T_CastleMenu2'
		ImageDrawStyle=IDS_Stretched
		ImageUVs=(bCustomCoords=true,U=132,V=734,UL=665,VL=173)
	End Object
	MenuObjects(0)=INFO

	Begin Object Class=MobileMenuImage Name=Highlight
		Tag="HIGHLIGHT"
		Left=0
		Top=0
		Width=587
		Height=84
		Image=Texture2D'CastleUI.menus.T_CastleMenu2'
		ImageDrawStyle=IDS_Stretched
		ImageUVs=(bCustomCoords=true,U=449,V=614,UL=574,VL=80)
	End Object
	MenuObjects(1)=Highlight

	Begin Object Class=MobileMenuButton Name=CATCHALL
		Tag="CATCHALL"
		Left=0
		Top=0
		Width=1
		Height=1
		bRelativeLeft=true
		bRelativeTop=true
		bRelativeWidth=true
		bRelativeHeight=true
		bIsActive=true;
	End Object
	MenuObjects(2)=CATCHALL

	HelpFlashDuration=2
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: to 6-1-2011 07:12:30.000 - Creation time: ti 22-3-2011 19:57:08.213 - Created with UnCodeX