Example #1
0
        public void OnAfterActivate()
        {
            DummyCharacter selectedDummyCharacter = m_partyCreator.GetSelectedDummyCharacter();

            if (selectedDummyCharacter.Class == EClass.NONE && selectedDummyCharacter.Race != ERace.NONE)
            {
                selectedDummyCharacter.Class = m_partyCreator.GetUnusedClass();
            }
            UpdatePromotion();
            UpdateButtons();
        }
Example #2
0
        public void OnAfterActivate()
        {
            DummyCharacter selectedDummyCharacter = m_partyCreator.GetSelectedDummyCharacter();

            if (selectedDummyCharacter.Race == ERace.NONE)
            {
                selectedDummyCharacter.Race = m_partyCreator.GetUnusedRace();
            }
            UpdateDescription();
            UpdateButtons();
        }
Example #3
0
        private void OnCharacterClicked(Object p_sender, EventArgs p_args)
        {
            PartyCreationCharacter partyCreationCharacter = p_sender as PartyCreationCharacter;

            if (partyCreationCharacter != null)
            {
                m_partyCreator.SelectCharacter(partyCreationCharacter.Index);
                m_currentTab = Math.Min(m_currentTab, m_partyCreator.GetSelectedDummyCharacter().GetStepToShow());
                UpdateTabsForCharacter();
                m_tabController.SelectTab(m_currentTab, true);
                AudioController.Play("PortraitSelect");
            }
            LegacyLogic.Instance.EventManager.InvokeEvent(m_partyCreator.GetSelectedDummyCharacter(), EEventType.DUMMY_CHARACTER_SELECTED, EventArgs.Empty);
        }
Example #4
0
 private void InitParty(PartyCreator p_partyCreator)
 {
     if (m_characters != null)
     {
         for (Int32 i = 0; i < m_characters.Length; i++)
         {
             DummyCharacter dummyCharacter = p_partyCreator.GetDummyCharacter(i);
             if (dummyCharacter != null)
             {
                 m_characters[i].Init(dummyCharacter, i);
                 m_characters[i].OnCharacterClicked += OnCharacterClicked;
                 m_characters[i].SetSelected(dummyCharacter == p_partyCreator.GetSelectedDummyCharacter());
                 m_characters[i].SetTickState(m_partyCreator.CheckSkillsFinished(i) && m_partyCreator.CheckAttributesFinished(i));
             }
         }
     }
 }
        public void OnAfterActivate()
        {
            DummyCharacter selectedDummyCharacter = m_partyCreator.GetSelectedDummyCharacter();

            if (selectedDummyCharacter.Gender == EGender.NOT_SELECTED)
            {
                selectedDummyCharacter.Gender = ((Random.Range(0, 100) < 50) ? EGender.FEMALE : EGender.MALE);
            }
            if (selectedDummyCharacter.PortraitID == 0)
            {
                selectedDummyCharacter.PortraitID = ((Random.Range(0, 100) < 50) ? 2 : 1);
            }
            if (selectedDummyCharacter.Name == String.Empty)
            {
                selectedDummyCharacter.Name = m_partyCreator.GetRandomName(selectedDummyCharacter);
            }
            UpdateButtons();
            UpdateDescription();
        }
Example #6
0
        public void UndoSelection()
        {
            DummyCharacter selectedDummyCharacter = m_partyCreator.GetSelectedDummyCharacter();

            selectedDummyCharacter.ResetAttributes();
        }
Example #7
0
        public void UndoSelection()
        {
            DummyCharacter selectedDummyCharacter = m_partyCreator.GetSelectedDummyCharacter();

            selectedDummyCharacter.ResetPickedSkills();
        }