示例#1
0
//		void OnDropdownAnimationSelected(int itemId){
//
//		}

//		void OnListAnimationSelected(int itemId){
//
//		}



        public void OnAddButton()
        {
            // Find selected anim
            CharacterAnimation selectedAnim = GetAnimationFromDropdown();
            // Find selected event
            ConditionalEvent selectedEvent = allEventsSorted[_eventsList.SelectedItem];

            // Clone event and add to animation
            selectedAnim.events.Add(selectedEvent.Clone());
            allEvents[selectedEvent].Add(selectedAnim);

            // Refresh UI
            RefreshAnimationsList();
            RefreshAnimationsDropdown();
        }
示例#2
0
//		void OnDropdownObjectSelected(int itemId){
//
//		}

//		void OnListObjectSelected(int itemId){
//
//		}



        public void OnAddButton()
        {
            // Find selected anim
            HUDObject selectedAnim = GetObjectFromDropdown();
            // Find selected event
            ConditionalEvent selectedEvent = allEventsSorted[_eventsList.SelectedItem];

            // Clone event and add to object
            selectedAnim.events.Add(selectedEvent.Clone());
            allEvents[selectedEvent].Add(selectedAnim);

            // Refresh UI
            RefreshObjectsList();
            RefreshObjectsDropdown();
        }