Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        public override void OnPush()
        {
            if (!IsSetup)
            {
                return;
            }

            selectedItem = null;
            powersList.ClearEnchantments();
            sideEffectsList.ClearEnchantments();
            EnumerateEnchantments();
            Refresh();
        }