protected override void LoadContent() { base.LoadContent(); Skin.Current.ButtonBrush = NineTileBrush.FromSingleTexture( Game.Screen.Content.LoadTexture2DFromFile("./Assets/OctoAwesome.Client/UI/buttonLong_brown.png", GraphicsDevice), 15, 15); Skin.Current.ButtonHoverBrush = NineTileBrush.FromSingleTexture( Game.Screen.Content.LoadTexture2DFromFile("./Assets/OctoAwesome.Client/UI/buttonLong_beige.png", GraphicsDevice), 15, 15); Skin.Current.ButtonPressedBrush = NineTileBrush.FromSingleTexture( Game.Screen.Content.LoadTexture2DFromFile("./Assets/OctoAwesome.Client/UI/buttonLong_beige_pressed.png", GraphicsDevice), 15, 15); Frame.Background = new BorderBrush(Color.CornflowerBlue); NavigateFromTransition = new AlphaTransition(Frame, Transition.Linear, TimeSpan.FromMilliseconds(200), 0f); NavigateToTransition = new AlphaTransition(Frame, Transition.Linear, TimeSpan.FromMilliseconds(200), 1f); NavigateToScreen(new MainScreen(this)); }
protected override void LoadContent() { base.LoadContent(); Frame.Background = new BorderBrush(Color.CornflowerBlue); NavigateFromTransition = new AlphaTransition(Frame, Transition.Linear, TimeSpan.FromMilliseconds(200), 0f); NavigateToTransition = new AlphaTransition(Frame, Transition.Linear, TimeSpan.FromMilliseconds(200), 1f); NavigateToScreen(new MainScreen(this)); }