Ejemplo n.º 1
0
        public InventoryCursor(InventoryMenu menu) : base(menu)
        {
            _visualizer = new ItemContainerVisualizer(menu, menu.cursorItemContainer);
            _inspector  = new ItemInspector(menu);

            AddElement(_visualizer);
            AddElement(_inspector);
        }
Ejemplo n.º 2
0
        public ItemSlot(InventoryMenu menu, ItemContainer itemContainer) : base(menu, string.Empty, null, false)
        {
            _itemContainer = itemContainer;

            position = position;
            size     = Vector2.one * 24f;

            _visualizer = new ItemContainerVisualizer(menu, itemContainer);
            AddElement(_visualizer);
        }
Ejemplo n.º 3
0
            public ItemSelect(PlayerInterface playerInterface) : base()
            {
                this._playerInterface = playerInterface;

                _visualizer = new ItemContainerVisualizer[Length];
                for (int index = 0; index < Length; index++)
                {
                    _visualizer[index] = new ItemContainerVisualizer(this, player.inventory[index]);
                    AddElement(_visualizer[index]);
                }

                _factor            = 0f;
                _sleepTime         = 0f;
                _scrollAmount      = 0f;
                _selectSpriteAngle = 0f;

                _selectedItemLabel             = new FLabel("font", string.Empty);
                _selectedItemLabelShadow       = new FLabel("font", string.Empty);
                _selectedItemLabelShadow.color = Color.black;

                container.AddChild(_selectedItemLabelShadow);
                container.AddChild(_selectedItemLabel);
            }