Exemple #1
0
        public Bag(int size)
        {
            Size = size;
            Items = new ItemCollection(size);
            Open = false;
            OffsetX = 0;
            OffsetY = 200;
            Width = 8;
            IconMargin = 3;
            IconWidth = 40;

            AreaWidth = Width * ( IconWidth + IconMargin ) - IconMargin;
            AreaHeight = (Size / Width) * (IconWidth + IconMargin) - IconMargin;

            Selected = -1;
            MouseDown = -1;
            MouseOver = -1;
        }
Exemple #2
0
        public Quickbar( int size  )
        {
            Size = size;
            Items = new ItemCollection(size);
            Locked = false;
            UsingItem = new ItemUse();

            // Default Positioning
            Vertical = "bottom";
            Horizontal = "center";
            Layout = "horizontal";
            Offset = new Vector2(0, 10);
            Scale = 1f;
            Margin = 2;

            // Default States
            Selected = 0;
            MouseOver = -1;
            MouseDown = -1;
        }