public void AddClassSpecialization(ClassSpecialization newClassSpecialization)
 {
     classSpecialization          = newClassSpecialization;
     icon.sprite                  = this.classSpecialization.MyIcon;
     icon.color                   = Color.white;
     classSpecializationName.text = classSpecialization.DisplayName;
     //description.text = this.faction.GetSummary();
     description.text = classSpecialization.GetSummary();
 }
 public void Setup(ClassSpecialization newClassSpecialization)
 {
     //Debug.Log("ClassChangePanelController.Setup(" + newClassName + ")");
     classSpecialization = newClassSpecialization;
     classSpecializationButton.AddClassSpecialization(classSpecialization);
     PopupWindowManager.MyInstance.specializationChangeWindow.SetWindowTitle(classSpecialization.DisplayName);
     ShowAbilityRewards();
     ShowTraitRewards();
     PopupWindowManager.MyInstance.specializationChangeWindow.OpenWindow();
 }
 public void SetClassSpecialization(ClassSpecialization newClassSpecialization)
 {
     //if (newClassSpecialization != null && SystemConfigurationManager.MyInstance.NewGameSpecialization == true) {
     if (SystemConfigurationManager.MyInstance.NewGameSpecialization == true)
     {
         classSpecializationLabel.SetActive(true);
         classSpecializationButton.gameObject.SetActive(true);
         classSpecializationButton.AddClassSpecialization(newClassSpecialization);
     }
     else
     {
         classSpecializationLabel.SetActive(false);
         classSpecializationButton.gameObject.SetActive(false);
     }
 }
Пример #4
0
        public void HandleSetClassSpecialization(ClassSpecialization newClassSpecialization)
        {
            detailsPanel.SetClassSpecialization(newGameManager.ClassSpecialization);

            specializationPanel.SetClassSpecialization(newClassSpecialization);

            if (newGameManager.ClassSpecialization != null)
            {
                specializationButton.Button.interactable = true;
            }
            else
            {
                specializationButton.Button.interactable = false;
            }

            uINavigationControllers[0].UpdateNavigationList();
            uINavigationControllers[0].HighlightCurrentButton();
        }
        public void ShowClassSpecialization(NewGameClassSpecializationButton newGameClassSpecializationButton)
        {
            //Debug.Log("LoadGamePanel.ShowSavedGame()");
            if (selectedClassSpecializationButton != null && selectedClassSpecializationButton != newGameClassSpecializationButton)
            {
                selectedClassSpecializationButton.DeSelect();
            }

            selectedClassSpecializationButton = newGameClassSpecializationButton;
            if (newGameClassSpecializationButton == null)
            {
                classSpecialization = null;
            }
            else
            {
                classSpecialization = newGameClassSpecializationButton.ClassSpecialization;
            }
            ShowAbilityRewards();
            ShowTraitRewards();
        }
 public void HandleSpecializationChange(ClassSpecialization newSpecialization, ClassSpecialization oldSpecialization)
 {
     //Debug.Log("CharacterPanelManager.HandleSpecializationChange()");
     unitController.CharacterUnit.BaseCharacter.SetClassSpecialization(newSpecialization, true, false, false);
 }