private void ItemListScroller_OnItemClick(DaggerfallUnityItem item) { selectedItem = item; powersList.ClearEnchantments(); sideEffectsList.ClearEnchantments(); Refresh(); // Update item name only when selected item changes - or other refreshes will reset custom item name itemNameLabel.Text = (selectedItem != null) ? selectedItem.shortName : string.Empty; }
public override void OnPush() { if (!IsSetup) { return; } selectedItem = null; powersList.ClearEnchantments(); sideEffectsList.ClearEnchantments(); EnumerateEnchantments(); Refresh(); }