public LoadingScreen(Sce.PlayStation.HighLevel.GameEngine2D.Scene scene, Sce.PlayStation.HighLevel.UI.Scene uiScene) : base(scene) { // loadingTexture0 = new TextureInfo("/Application/textures/LoadingScreens/Level0Load.png"); // loadingTexture1 = new TextureInfo("/Application/textures/LoadingScreens/Level1Load.png"); // loadingTexture2 = new TextureInfo("/Application/textures/LoadingScreens/Level2Load.png"); // loadingTexture3 = new TextureInfo("/Application/textures/LoadingScreens/Level3Load.png"); // loadingTexture4 = new TextureInfo("/Application/textures/LoadingScreens/Level4Load.png"); // loadingTexture5 = new TextureInfo("/Application/textures/LoadingScreens/Level5Load.png"); // loadingTexture6 = new TextureInfo("/Application/textures/LoadingScreens/Level6Load.png"); // loadingTexture7 = new TextureInfo("/Application/textures/LoadingScreens/Level7Load.png"); // loadingTexture8 = new TextureInfo("/Application/textures/LoadingScreens/Level8Load.png"); // loadingTexture9 = new TextureInfo("/Application/textures/LoadingScreens/Level9Load.png"); // loadingTexture10 = new TextureInfo("/Application/textures/LoadingScreens/Level10Load.png"); // loadingTexture11 = new TextureInfo("/Application/textures/LoadingScreens/Level11Load.png"); // loadingTexture12 = new TextureInfo("/Application/textures/LoadingScreens/Level12Load.png"); // loadingTexture13 = new TextureInfo("/Application/textures/LoadingScreens/Level13Load.png"); // //loadingTexture14 = new TextureInfo("/Application/textures/LoadingScreens/Level13Load.png"); // //loadingTexture15 = new TextureInfo("/Application/textures/LoadingScreens/Level13Load.png"); // //loadingTexture16 = new TextureInfo("/Application/textures/LoadingScreens/Level13Load.png"); // //loadingTexture17 = new TextureInfo("/Application/textures/LoadingScreens/Level0Load.png"); // //loadingTexture18 = new TextureInfo("/Application/textures/LoadingScreens/Level13Load.png"); // //loadingTexture19 = new TextureInfo("/Application/textures/LoadingScreens/Level13Load.png"); // //loadingTexture20 = new TextureInfo("/Application/textures/LoadingScreens/Level13Load.png"); // //loadingTexture21 = new TextureInfo("/Application/textures/LoadingScreens/Level13Load.png"); // //loadingTexture22 = new TextureInfo("/Application/textures/LoadingScreens/Level13Load.png"); // //loadingTexture23 = new TextureInfo("/Application/textures/LoadingScreens/Level13Load.png"); // //loadingTexture24 = new TextureInfo("/Application/textures/LoadingScreens/Level13Load.png"); // //loadingTexture25 = new TextureInfo("/Application/textures/LoadingScreens/Level13Load.png"); // //loadingTexture26 = new TextureInfo("/Application/textures/LoadingScreens/Level13Load.png"); textureInfo = AppMain.loadingTexture0; sprite = new SpriteUV(); sprite = new SpriteUV(textureInfo); sprite.Quad.S = textureInfo.TextureSizef; sprite.Position = new Vector2(-5000.0f, -5000.0f); sprite.CenterSprite(new Vector2(0.5f, 0.5f)); loadingLabel = new Sce.PlayStation.HighLevel.UI.Label(); loadingLabel.X = 804.0f; loadingLabel.Y = 503.0f; loadingLabel.Text = "Loading..."; loadingLabel.TextColor = new UIColor(0.0f, 0.0f, 0.0f, 1.0f); uiScene.RootWidget.AddChildLast(loadingLabel); levelLabel = new Sce.PlayStation.HighLevel.UI.Label(); levelLabel.X = 15.0f; levelLabel.Y = 503.0f; levelLabel.Text = ""; levelLabel.TextColor = new UIColor(1.0f, 1.0f, 1.0f, 1.0f); //levelLabel.Font = new UIFont(FontAlias.System, 32, FontStyle.Regular); uiScene.RootWidget.AddChildLast(levelLabel); loadingSymbol = new BusyIndicator(true); loadingSymbol.SetPosition(910, 495); loadingSymbol.SetSize(48, 48); loadingSymbol.Anchors = Anchors.Height | Anchors.Width; uiScene.RootWidget.AddChildLast(loadingSymbol); loadingSymbol.Start(); readyButton = new Button(); readyButton.SetPosition(860, 490); readyButton.Text = "PLAY"; readyButton.SetSize(88, 48); readyButton.BackgroundFilterColor = new UIColor(255.0f, 255.0f, 0.0f, 1.0f); readyButton.ButtonAction += HandleButtonAction; readyButton.Visible = false; uiScene.RootWidget.AddChildLast(readyButton); readyButton2 = new Button(); readyButton2.SetPosition(190, 450); readyButton2.Text = "JOIN X"; readyButton2.SetSize(88, 48); readyButton2.BackgroundFilterColor = new UIColor(255.0f, 255.0f, 0.0f, 1.0f); readyButton2.ButtonAction += HandleButtonAction; readyButton2.Visible = false; uiScene.RootWidget.AddChildLast(readyButton2); scene.AddChild(sprite); UISystem.SetScene(uiScene); startBox.Min = new Vector2(sprite.Position.X + loadingLabel.X - 500, sprite.Position.Y + loadingLabel.Y - 500); startBox.Max = new Vector2(sprite.Position.X + loadingLabel.X + 500, sprite.Position.Y + loadingLabel.Y + 500); }