예제 #1
0
파일: Gui.cs 프로젝트: BlueTRaven/Lemonade
        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;
        }
예제 #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;
        }
예제 #3
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;
        }
예제 #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);
        }