Ejemplo n.º 1
0
        public override void Initialize()
        {
            State           = new WrapperState(0, 1, 0, Vector2.Zero, Color.White, new Vector2(600, 550));
            NormalPath      = @"Screens/CreditsScreen/Buttons/BackNormal";
            HighlightedPath = @"Screens/CreditsScreen/Buttons/BackHighlighted";

            base.Initialize();
        }
Ejemplo n.º 2
0
        public override void Initialize()
        {
            ScreenTimer = new Timer(5);
            AddtoList(ScreenTimer);

            WrapperState State = new WrapperState(0, 1, 0, Vector2.Zero, Color.White, Vector2.Zero);

            loadingBar = new LoadingBar(State, @"Screens/LoadingScreen/LoadingBackGround", @"Screens/LoadingScreen/LoadingCover");
            AddtoList(loadingBar);

            base.Initialize();
        }
Ejemplo n.º 3
0
 private static IEnumerable<string> InternalWrapSingleLine(string line, int lineLimit)
 {
     var wrapper = new WrapperState(lineLimit);
     foreach (var word in line.Split())
     {
         if (!wrapper.CanAddWord(word))
         {
             yield return wrapper.GetLineAndReset();
         }
         wrapper.AddWord(word);
     }
     if (wrapper.HasWords)
     {
         yield return wrapper.GetLineAndReset();
     }
 }
Ejemplo n.º 4
0
        private static IEnumerable <string> InternalWrapSingleLine(string line, int lineLimit)
        {
            var wrapper = new WrapperState(lineLimit);

            foreach (var word in line.Split())
            {
                if (!wrapper.CanAddWord(word))
                {
                    yield return(wrapper.GetLineAndReset());
                }
                wrapper.AddWord(word);
            }
            if (wrapper.HasWords)
            {
                yield return(wrapper.GetLineAndReset());
            }
        }
Ejemplo n.º 5
0
 public SelectLevelButton(int Level, Vector2 Position, string Name, bool canPlay)
 {
     this.Level   = Level;
     this.Name    = Name;
     this.canPlay = canPlay;
     State        = new WrapperState(0, 1, 0, Vector2.Zero, Color.White, Position);
     if (canPlay)
     {
         NormalPath      = @"Screens/WorldScreen/Buttons/LevelCanPlayNormal";
         HighlightedPath = @"Screens/WorldScreen/Buttons/LevelCanPlayHighlighted";
     }
     else
     {
         NormalPath      = @"Screens/WorldScreen/Buttons/LevelCannotPlayNormal";
         HighlightedPath = @"Screens/WorldScreen/Buttons/LevelCannotPlayHighlighted";
     }
 }
Ejemplo n.º 6
0
 public ExitButton()
 {
     State           = new WrapperState(0, 1, 0, Vector2.Zero, Color.White, new Vector2(300, 550));
     NormalPath      = @"Screens/MainMenuScreen/Buttons/ExitNormal";
     HighlightedPath = @"Screens/MainMenuScreen/Buttons/ExitHighlighted";
 }
Ejemplo n.º 7
0
 public LoadButton()
 {
     State           = new WrapperState(0, 1, 0, Vector2.Zero, Color.White, new Vector2(530, 265));
     NormalPath      = @"Screens/ProfileScreen/Buttons/LoadNormal";
     HighlightedPath = @"Screens/ProfileScreen/Buttons/LoadHighlighted";
 }
Ejemplo n.º 8
0
 public CreditsButton()
 {
     State           = new WrapperState(0, 1, 0, Vector2.Zero, Color.White, new Vector2(300, 410));
     NormalPath      = @"Screens/MainMenuScreen/Buttons/CreditsNormal";
     HighlightedPath = @"Screens/MainMenuScreen/Buttons/CreditsHighlighted";
 }
Ejemplo n.º 9
0
 public CreateNewButton()
 {
     State           = new WrapperState(0, 1, 0, Vector2.Zero, Color.White, new Vector2(515, 440));
     NormalPath      = @"Screens/ProfileScreen/Buttons/CreateNewNormal";
     HighlightedPath = @"Screens/ProfileScreen/Buttons/CreateNewHighlighted";
 }
Ejemplo n.º 10
0
 public WorkShopButton(Vector2 Position)
 {
     State           = new WrapperState(0, 1, 0, Vector2.Zero, Color.White, Position);
     NormalPath      = @"Screens/WorldScreen/Buttons/WorkShopNormal";
     HighlightedPath = @"Screens/WorldScreen/Buttons/WorkShopHighlighted";
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Constructs a new loading bar.
 /// </summary>
 /// <param name="State">State of the images.</param>
 /// <param name="BackGroundPath">Background image path.</param>
 /// <param name="CoverPath">Cover image path.</param>
 public LoadingBar(WrapperState State, string BackGroundPath, string CoverPath)
 {
     BackGround = new TextureWrapper(State, BackGroundPath);
     Cover      = new TextureWrapper(State, CoverPath);
 }
Ejemplo n.º 12
0
 public PlayButton()
 {
     State           = new WrapperState(0, 1, 0, Vector2.Zero, Color.White, new Vector2(300, 340));
     NormalPath      = @"Screens/MainMenuScreen/Buttons/PlayNormal";
     HighlightedPath = @"Screens/MainMenuScreen/Buttons/PlayHighlighted";
 }
Ejemplo n.º 13
0
 public NextButton()
 {
     State = new WrapperState(0, 1, 0, Vector2.Zero, Color.White, new Vector2(55, 265));
     NormalPath = @"Screens/ProfileScreen/Buttons/NextNormal";
     HighlightedPath = @"Screens/ProfileScreen/Buttons/NextHighlighted";
 }
Ejemplo n.º 14
0
 public DeleteButton()
 {
     State           = new WrapperState(0, 1, 0, Vector2.Zero, Color.White, new Vector2(530, 190));
     NormalPath      = @"Screens/ProfileScreen/Buttons/DeleteNormal";
     HighlightedPath = @"Screens/ProfileScreen/Buttons/DeleteHighlighted";
 }
Ejemplo n.º 15
0
 public ChangeProfileButton()
 {
     State           = new WrapperState(0, 1, 0, Vector2.Zero, Color.White, new Vector2(300, 480));
     NormalPath      = @"Screens/MainMenuScreen/Buttons/ChangeProfileNormal";
     HighlightedPath = @"Screens/MainMenuScreen/Buttons/ChangeProfileHighlighted";
 }
Ejemplo n.º 16
0
 public PreviousButton()
 {
     State           = new WrapperState(0, 1, 0, Vector2.Zero, Color.White, new Vector2(290, 265));
     NormalPath      = @"Screens/ProfileScreen/Buttons/PreviousNormal";
     HighlightedPath = @"Screens/ProfileScreen/Buttons/PreviousHighlighted";
 }