private void ShowNotification(string messageText) { SimpleMessageForm notificationMessage = View.CreateNotificationForm(); notificationMessage.Init(messageText); ApplyCommand(new ShowNotificationFormCommand(notificationMessage, 2f)); }
private void OnPickedItem(int unitId, PickupItem item) { if (Player.Unit.UnitID == unitId && Player.IsAlive) { var itemType = item.ItemType; var dropInfo = new DropItemInfo { WorldId = item.WorldId, CatalogId = itemType }; Client.Send(new PickUpGameItemMsg { DropInfo = dropInfo }); string messageText = string.Format("You picked up {0}", itemType); SimpleMessageForm notificationMessage = View.CreateNotificationForm(); notificationMessage.Init(messageText); ApplyCommand(new ShowNotificationFormCommand(notificationMessage, 2f)); } }