Exemplo n.º 1
0
        public TargetSelectionMenu() : base(MenuTypes.Horizontal)
        {
            Texture2D cursorSheet = AssetManager.Instance.LoadAsset <Texture2D>("UI/Cursor");

            Cursor = new ReverseAnimation(cursorSheet, AnimationGlobals.InfiniteLoop, true,
                                          new Animation.Frame(new Rectangle(4, 5, 14, 20), 110d),
                                          new Animation.Frame(new Rectangle(26, 5, 16, 20), 110d),
                                          new Animation.Frame(new Rectangle(49, 5, 20, 20), 110d),
                                          new Animation.Frame(new Rectangle(75, 5, 22, 16), 110d),
                                          new Animation.Frame(new Rectangle(105, 5, 21, 16), 110d));
        }
Exemplo n.º 2
0
        public TargetSelectionMenu() : base(MenuTypes.Horizontal)
        {
            Texture2D cursorSheet = AssetManager.Instance.LoadRawTexture2D($"{ContentGlobals.UIRoot}/Cursor.png");

            Cursor = new ReverseAnimation(cursorSheet, AnimationGlobals.InfiniteLoop, true,
                                          new Animation.Frame(new Rectangle(4, 5, 14, 20), 110d),
                                          new Animation.Frame(new Rectangle(26, 5, 16, 20), 110d),
                                          new Animation.Frame(new Rectangle(49, 5, 20, 20), 110d),
                                          new Animation.Frame(new Rectangle(75, 5, 22, 16), 110d),
                                          new Animation.Frame(new Rectangle(105, 5, 21, 16), 110d));

            //Both games wrap the cursor
            WrapCursor = true;
        }
Exemplo n.º 3
0
        public TargetSelectionMenu(BattleUIManager bUIManager) : base(MenuTypes.Horizontal)
        {
            BUIManager = bUIManager;
            Texture2D cursorSheet = AssetManager.Instance.LoadRawTexture2D($"{ContentGlobals.UIRoot}/Cursor.png");

            Cursor = new ReverseAnimation(cursorSheet, AnimationGlobals.InfiniteLoop, true,
                                          new Animation.Frame(new Rectangle(4, 5, 14, 20), 110d),
                                          new Animation.Frame(new Rectangle(26, 5, 16, 20), 110d),
                                          new Animation.Frame(new Rectangle(49, 5, 20, 20), 110d),
                                          new Animation.Frame(new Rectangle(75, 5, 22, 16), 110d),
                                          new Animation.Frame(new Rectangle(105, 5, 21, 16), 110d));
            NameImage = new NineSlicedTexture2D(AssetManager.Instance.LoadRawTexture2D($"{ContentGlobals.BattleGFX}.png"),
                                                new Rectangle(457, 812, 32, 16), 7, 6, 7, 9);

            //Both games wrap the cursor
            WrapCursor = true;
        }