Beispiel #1
0
 private void SetActiveTab(InventoryTabButton newTab)
 {
     if (activeTabButton != null)
     {
         activeTabButton.SetIconColor(UNSELECTED_TAB_COLOR);
     }
     newTab.SetIconColor(SELECTED_TAB_COLOR);
     activeTabButton = newTab;
 }
Beispiel #2
0
        private void HandleTabChange(InventoryTabButton newTab)
        {
            if (selectedEquipmentSlotID != EquipmentSlotEnum.None)
            {
                return;
            }

            SetActiveTab(newTab);
            OpenActiveTabPanel();
        }