protected void OnCellMouseLeave(InventoryWindowCellMouseEventArgs e) { var handler = CellMouseLeave; if (handler != null) { handler(this, e); } }
protected virtual void OnSlotChanged(InventoryWindowCellMouseEventArgs e) { var handler = SlotChanged; if (handler != null) { handler(this, e); } }
protected void OnSlotEnter(InventoryWindowCellMouseEventArgs e) { var handler = SlotEnter; if (handler != null) { handler(this, e); } }
private void InventoryUiCellMouseEnter(object sender, InventoryWindowCellMouseEventArgs e) { _hoverSlot = e.Cell; if (e.Cell.Slot == null) { return; } _infoWindow.ActiveItem = e.Cell.Slot.Item; }
private void ToolBarSlotClicked(object sender, InventoryWindowCellMouseEventArgs e) { if (_dragControl.Slot == null) { return; } PlayerManager.PlayerCharacter.Toolbar[e.Cell.InventoryPosition.Y] = _dragControl.Slot.Item.BluePrintId; _toolBar.SetSlot(e.Cell.InventoryPosition.Y, new ContainedSlot { Item = _dragControl.Slot.Item, GridPosition = e.Cell.InventoryPosition }); ItemMessageTranslator.SetToolBar(e.Cell.InventoryPosition.Y, _dragControl.Slot.Item.StaticId); _sourceContainer.PutItem(_dragControl.Slot.Item, _dragControl.Slot.GridPosition, _dragControl.Slot.ItemsCount); _guiManager.Screen.Desktop.Children.Remove(_dragControl); _dragControl.Slot = null; _sourceContainer = null; }
private void InventoryUiCellMouseLeave(object sender, InventoryWindowCellMouseEventArgs e) { _hoverSlot = null; _infoWindow.ActiveItem = null; }
void _toolBar_SlotEnter(object sender, InventoryWindowCellMouseEventArgs e) { _hoverSlot = e.Cell; }
void _toolBar_SlotLeave(object sender, InventoryWindowCellMouseEventArgs e) { _hoverSlot = null; }