コード例 #1
0
        private void ClearTraitRewardIcons()
        {
            //Debug.Log("ClassChangePanelController.ClearRewardIcons()");

            foreach (RewardButton rewardIcon in traitRewardIcons)
            {
                objectPooler.ReturnObjectToPool(rewardIcon.gameObject);
            }
            traitRewardIcons.Clear();
        }
コード例 #2
0
 public void RemoveEquipmentObjects()
 {
     foreach (Dictionary <AttachmentNode, GameObject> holdableObjectReferences in currentEquipmentPhysicalObjects.Values)
     {
         //Debug.Log("MecanimModelController.RemoveEquipmentObjects(): destroying objects ");
         foreach (GameObject holdableObjectReference in holdableObjectReferences.Values)
         {
             //Debug.Log("MecanimModelController.RemoveEquipmentObjects(): destroying object: " + holdableObjectReference.name);
             objectPooler.ReturnObjectToPool(holdableObjectReference);
         }
     }
     currentEquipmentPhysicalObjects.Clear();
 }
コード例 #3
0
 public void ClearOptionButtons()
 {
     // clear the quest list so any quests left over from a previous time opening the window aren't shown
     //Debug.Log("LoadGamePanel.ClearLoadButtons()");
     foreach (NewGameCharacterClassButton optionButton in optionButtons)
     {
         if (optionButton != null)
         {
             optionButton.DeSelect();
             objectPooler.ReturnObjectToPool(optionButton.gameObject);
         }
     }
     uINavigationControllers[0].ClearActiveButtons();
     optionButtons.Clear();
 }
コード例 #4
0
 public void ResetSettings()
 {
     foreach (GameObject go in miniMapLayers.Values)
     {
         objectPooler.ReturnObjectToPool(go);
     }
     miniMapLayers.Clear();
     interactable  = null;
     setupComplete = false;
 }
コード例 #5
0
        private void ClearRewardIcons()
        {
            //Debug.Log("FactionChangePanelController.ClearRewardIcons()");

            foreach (RewardButton rewardIcon in abilityRewardIcons)
            {
                objectPooler.ReturnObjectToPool(rewardIcon.gameObject);
            }
            abilityRewardIcons.Clear();
            abilityRewardsGrid.ClearActiveButtons();
        }
コード例 #6
0
        public void ClearButtons()
        {
            //Debug.Log("InteractionPanelUI.ClearButtons()");
            // clear the skill list so any skill left over from a previous time opening the window aren't shown
            foreach (InteractionPanelQuestScript qs in questScripts)
            {
                qs.transform.SetParent(null);
                qs.DeSelect();
                objectPooler.ReturnObjectToPool(qs.gameObject);
            }
            questScripts.Clear();

            foreach (InteractionPanelScript interactionPanelScript in interactionPanelScripts)
            {
                interactionPanelScript.transform.SetParent(null);
                objectPooler.ReturnObjectToPool(interactionPanelScript.gameObject);
            }
            interactionPanelScripts.Clear();
            uINavigationControllers[0].ClearActiveButtons();
        }
コード例 #7
0
 public void RemoveNamePlate(NamePlateUnit namePlateUnit)
 {
     //Debug.Log("NamePlatemanager.RemoveNamePlate(" + namePlateUnit.DisplayName + ")");
     if (namePlates.ContainsKey(namePlateUnit))
     {
         if (namePlates[namePlateUnit] != null && namePlates[namePlateUnit].gameObject != null)
         {
             objectPooler.ReturnObjectToPool(namePlates[namePlateUnit].gameObject);
         }
         namePlates.Remove(namePlateUnit);
     }
 }
コード例 #8
0
        private void ClearRewardIcons()
        {
            //Debug.Log("QuestDetailsArea.ClearRewardIcons()");

            // items
            foreach (RewardButton rewardIcon in itemRewardIcons)
            {
                rewardIcon.Unselect();
                objectPooler.ReturnObjectToPool(rewardIcon.gameObject);
            }
            itemRewardIcons.Clear();
            itemGrid.ClearActiveButtons();

            // abilties
            foreach (RewardButton rewardIcon in abilityRewardIcons)
            {
                rewardIcon.Unselect();
                objectPooler.ReturnObjectToPool(rewardIcon.gameObject);
            }
            abilityRewardIcons.Clear();
            abilityGrid.ClearActiveButtons();

            // skills
            foreach (RewardButton rewardIcon in skillRewardIcons)
            {
                rewardIcon.Unselect();
                objectPooler.ReturnObjectToPool(rewardIcon.gameObject);
            }
            skillRewardIcons.Clear();
            skillGrid.ClearActiveButtons();

            // factions
            foreach (RewardButton rewardIcon in factionRewardIcons)
            {
                rewardIcon.Unselect();
                objectPooler.ReturnObjectToPool(rewardIcon.gameObject);
            }
            factionRewardIcons.Clear();
            factionGrid.ClearActiveButtons();
        }
コード例 #9
0
        /*
         * public override void ReceiveClosedWindowNotification() {
         *  //Debug.Log("NewGameMecanimCharacterPanelController.RecieveClosedWindowNotification()");
         *  base.ReceiveClosedWindowNotification();
         *  OnCloseWindow(this);
         * }
         *
         * public override void ProcessOpenWindowNotification() {
         *  //Debug.Log("NewGameMecanimCharacterPanelController.ProcessOpenWindowNotification()");
         *  base.ProcessOpenWindowNotification();
         *
         * }
         */

        public void ClearOptionButtons()
        {
            //Debug.Log("LoadGamePanel.ClearLoadButtons()");
            foreach (NewGameUnitButton optionButton in optionButtons)
            {
                if (optionButton != null)
                {
                    optionButton.DeSelect();
                    objectPooler.ReturnObjectToPool(optionButton.gameObject);
                }
            }
            uINavigationControllers[0].ClearActiveButtons();
            optionButtons.Clear();
        }
コード例 #10
0
 public void ClearMusicProfiles()
 {
     //Debug.Log("SkillTrainerUI.ClearSkills()");
     // clear the skill list so any skill left over from a previous time opening the window aren't shown
     foreach (MusicPlayerHighlightButton musicPlayerHighlightButton in musicPlayerHighlightButtons)
     {
         if (musicPlayerHighlightButton != null)
         {
             musicPlayerHighlightButton.gameObject.transform.SetParent(null);
             musicPlayerHighlightButton.DeSelect();
             objectPooler.ReturnObjectToPool(musicPlayerHighlightButton.gameObject);
         }
     }
     musicPlayerHighlightButtons.Clear();
     uINavigationControllers[0].ClearActiveButtons();
 }
コード例 #11
0
 public void ClearQuests()
 {
     //Debug.Log("QuestTrackerUI.ClearQuests()");
     // clear the quest list so any quests left over from a previous time opening the window aren't shown
     foreach (QuestTrackerQuestScript qs in questScripts)
     {
         if (qs.gameObject != null)
         {
             //Debug.Log("The questnode has a gameobject we need to clear");
             qs.gameObject.transform.SetParent(null);
             objectPooler.ReturnObjectToPool(qs.gameObject);
         }
     }
     questScripts.Clear();
     uINavigationControllers[0].ClearActiveButtons();
 }
コード例 #12
0
 public void ClearSkills()
 {
     //Debug.Log("SkillTrainerUI.ClearSkills()");
     // clear the skill list so any skill left over from a previous time opening the window aren't shown
     foreach (SkillTrainerSkillScript skill in skillScripts)
     {
         if (skill != null)
         {
             skill.gameObject.transform.SetParent(null);
             skill.DeSelect();
             objectPooler.ReturnObjectToPool(skill.gameObject);
         }
     }
     skillScripts.Clear();
     uINavigationControllers[0].ClearActiveButtons();
 }