public SplitItemStackGump(Item item, Point pickupOffset)
            : base(0, 0)
        {
            Item = item;
            m_PickupOffset = pickupOffset;

            IsMoveable = true;

            // Background
            AddControl(new GumpPic(this, 0, 0, 0x085c, 0));
            // Slider
            m_Slider = (HSliderBar)AddControl(new HSliderBar(this, 30, 16, 104, 0, item.Amount, item.Amount, HSliderBarStyle.BlueWidgetNoBar));
            m_LastValue = m_Slider.Value;
            // Ok button
            AddControl(new Button(this, 102, 38, 0x085d, 0x085e, ButtonTypes.Default, 0, 0));
            ((Button)LastControl).GumpOverID = 0x085f;
            ((Button)LastControl).MouseClickEvent += ClickOkayButton;
            // Text entry field
            m_AmountEntry = (TextEntry)AddControl(new TextEntry(this, 30, 39, 60, 16, 0, 0, 5, item.Amount.ToString()));
            m_AmountEntry.HtmlTag = "<big>";
            m_AmountEntry.LegacyCarat = true;
            m_AmountEntry.Hue = 1001;
            m_AmountEntry.ReplaceDefaultTextOnFirstKeypress = true;
            m_AmountEntry.NumericOnly = true;
        }
 public ItemGumplingPaperdoll(AControl parent, int x, int y, Item item)
     : base(parent, item)
 {
     m_x = x;
     m_y = y;
     HighlightOnMouseOver = false;
 }
Example #3
0
 public ItemView(Item item)
     : base(item)
 {
     if (Entity.ItemData.IsWet)
     {
         SortZ += 1;
     }
 }
Example #4
0
 public void WearItem(Item i, int slot)
 {
     Equipment[slot] = i;
     if (OnEntityUpdated != null)
         OnEntityUpdated();
     if (slot == (int)EquipLayer.Mount)
     {
         // Do we do something here?
     }
 }
Example #5
0
 public GumpPicBackpack(AControl parent, int x, int y, Item backpack)
     : base(parent, x, y, 0xC4F6, 0)
 {
     BackpackItem = backpack;
 }
Example #6
0
 public void WearItem(Item i, int slot)
 {
     Equipment[slot] = i;
     m_OnUpdated?.Invoke(this);
     if (slot == (int)EquipLayer.Mount)
     {
         // Do we do something here?
     }
 }
Example #7
0
 public ItemGumplingPaperdoll(AControl parent, int x, int y, Item item)
     : base(parent, item)
 {
     Position = new Point(x, y);
     HighlightOnMouseOver = false;
 }