public TitleScreen(Sce.PlayStation.HighLevel.GameEngine2D.Scene scene, Sce.PlayStation.HighLevel.UI.Scene uiScene) : base(scene) { scene1 = scene; textureInfo = new TextureInfo("/Application/textures/GravityNinja.png"); sprite = new SpriteUV(); sprite = new SpriteUV(textureInfo); sprite.Quad.S = textureInfo.TextureSizef; sprite.Position = new Vector2(0.0f, 0.0f); playTexture = new TextureInfo("/Application/textures/play.png"); playSelectTexture = new TextureInfo("/Application/textures/playSelected.png"); playSprite = new SpriteUV(); playSprite = new SpriteUV(playSelectTexture); playSprite.Quad.S = playTexture.TextureSizef * 0.7f; playSprite.Position = new Vector2(Director.Instance.GL.Context.GetViewport().Width *0.78f - (playTexture.TextureSizef.X / 2), 200); controlTexture = new TextureInfo("/Application/textures/cog.png"); controlSprite = new SpriteUV(); controlSprite = new SpriteUV(controlTexture); controlSprite.Quad.S = controlTexture.TextureSizef * 0.05f; controlSprite.Position = new Vector2(10.0f, 10.0f); playBox.Min = playSprite.Position; playBox.Max = playSprite.Position + playSprite.TextureInfo.TextureSizef; controlsBox.Min = controlSprite.Position; controlsBox.Max = controlSprite.Position + controlSprite.TextureInfo.TextureSizef * 0.05f; label = new Sce.PlayStation.HighLevel.UI.Label(); label.SetPosition(10, 90); label.Text = "Awaiting Input..."; backButton = new Button(); backButton.SetPosition(10, 140); backButton.SetSize(100, 50); backButton.Text = "Back"; backButton.ButtonAction += HandleButtonAction; inputButton = new Button(); inputButton.SetPosition(380, 10); inputButton.SetSize(100, 50); inputButton.Text = "Enter"; inputButton.ButtonAction += HandleInputAction; command = new EditableText(); command.SetPosition(10, 10); command.Text = "Enter Command"; dialog = new Dialog(); dialog.SetSize(500, 200); dialog.ShowEffect = new BunjeeJumpEffect(dialog, 0.4f); dialog.HideEffect = new TiltDropEffect(); dialog.AddChildFirst(label); dialog.AddChildFirst(command); dialog.AddChildFirst(backButton); dialog.AddChildFirst(inputButton); scene.AddChild(sprite); scene.AddChild(playSprite); scene.AddChild(controlSprite); UISystem.SetScene(uiScene); }