public LoadingScreen2(Texture2D Texture, Texture2D BackGround, Viewport ViewPort) { this.Obj = Texture; this.Background = new Background(BackGround, ViewPort); Position = MinoMusSystem.GetCenter(ViewPort, Texture); Rectangle = MinoMusSystem.newRectangle(Position, 0, Texture.Height); }
public LoadingScreen(Texture2D Bar, Texture2D BackGround, Viewport ViewPort) { this.Bar = Bar; this.BackGround = new Background(BackGround, ViewPort); Position = MinoMusSystem.GetCenter(ViewPort) - new Vector2(Bar.Width / 2, 0); Rectangle = MinoMusSystem.newRectangle(Position, 0, Bar.Height); }
public SimpleScreen(Texture2D BackgrGround, Button Back, Viewport Viewport) { Background = new Background(BackgrGround, Viewport); this.Back = Back; Back.SetRectangle(MinoMusSystem.newRectangle(new Vector2(Viewport.Width - Back.rectangele.Width - 100, Viewport.Height - Back.rectangele.Height - 50), Back.rectangele.Width, Back.rectangele.Height)); }