Beispiel #1
0
        public GuiWidgetItemSlot createInventorySlot(Rectangle setBounds, Tuple<WidgetType, int> id, ItemRestriction type, Color[] colors, Player player)
        {
            GuiWidgetItemSlot widget;
            widget = new GuiWidgetItemSlot(setBounds, id, type, colors, player);

            widgets.Add(widget);
            return widget;
        }
Beispiel #2
0
        public GuiWidgetItemSlot(Rectangle setBounds, Tuple <WidgetType, int> id, ItemRestriction restriction, Color[] colors, Player player)
        {
            this.id = id;
            bounds  = setBounds;

            this.restriction = restriction;

            this.colors = colors;

            this.player = player;
        }
        public GuiWidgetItemSlot(Rectangle setBounds, Tuple<WidgetType, int> id, ItemRestriction restriction, Color[] colors, Player player)
        {
            this.id = id;
            bounds = setBounds;

            this.restriction = restriction;

            this.colors = colors;

            this.player = player;
        }
Beispiel #4
0
        public GuiWidgetItemSlot createInventorySlot(Rectangle setBounds, Tuple <WidgetType, int> id, ItemRestriction type, Color[] colors, Player player)
        {
            GuiWidgetItemSlot widget;

            widget = new GuiWidgetItemSlot(setBounds, id, type, colors, player);

            widgets.Add(widget);
            return(widget);
        }