private static void OnExit(ItemButton obj, Stage stage) { if (obj.HoverWindow != null) { obj.HoverWindow.SetVisible(false); obj.HoverWindow.SetIsVisible(false); obj.HoverWindow.Remove(); } List <ItemHoverWindow> windows = stage.FindAllElementsOfType <ItemHoverWindow>(); foreach (var window in windows) { window.Remove(); } }
private static void OnClickedInventory(ItemButton obj) { if (Input.LeftMouseButtonReleased) { if (obj.position != -1) { MessageTemplate template = new MessageTemplate(obj.position.ToString(), MessageType.EquipItem); MessageManager.AddToQueue(template); obj.HoverWindow.Remove(); } if (obj.GetParent() is Window) { } } }