protected override void HandleOnViewFocused() { CleanupGraph(); CreateNewGraph(); LinkControls(); HideCopyPasteButton(); OTGEditorUtility.PopulateListViewScriptableObject <OTGCombatAction>(ref m_actionListView, ref m_containerElement, OTGEditorUtility.ActionsInstantiated, "action-list-area"); OTGEditorUtility.PopulateListViewScriptableObject <OTGTransitionDecision>(ref m_transitionListView, ref m_containerElement, OTGEditorUtility.TransitionsInstantiated, "transition-list-area"); OTGEditorUtility.PopulateListView <string>(ref m_animationListView, ref m_containerElement, OTGEditorUtility.AvailableAnimationClips, "animation-list-area", true); AddCallbacksToListView(ref m_actionListView); AddCallbacksToListView(ref m_transitionListView); AddCallbacksToListView(ref m_animationListView); m_actionListView.onSelectionChange += OnActionListItemSelected; m_transitionListView.onSelectionChange += OnActionListItemSelected; m_animationListView.onSelectionChange += OnAnimationListItemSelected; SubscribeToButtonCallbacks(); m_animFilterField.RegisterValueChangedCallback(OnTextChanged); }
private void OnRefreshTransitions() { OTGEditorUtility.RefreshProject(m_editorConfig); OTGEditorUtility.PopulateListViewScriptableObject <OTGTransitionDecision>(ref m_transitionListView, ref m_containerElement, OTGEditorUtility.TransitionsInstantiated, "transition-list-area"); }
private void PopulateAvailableStates() { OTGEditorUtility.FindCharacterStates(m_charViewData.SelectedCharacter.name, m_editorConfig); OTGEditorUtility.PopulateListViewScriptableObject <OTGCombatState>(ref m_availabeStatesListView, ref m_containerElement, OTGEditorUtility.AvailableCharacterStates, "state-list-area"); }
private void OnRefreshActions() { OTGEditorUtility.RefreshProject(m_editorConfig); OTGEditorUtility.PopulateListViewScriptableObject <OTGCombatAction>(ref m_actionListView, ref m_containerElement, OTGEditorUtility.ActionsInstantiated, "action-list-area"); }
private void PopulateAnimationEventListView() { OTGEditorUtility.PopulateListViewScriptableObject <OTGAnimationEvent>(ref m_availableAnimationEventList, ref m_containerElement, OTGEditorUtility.AvailableAnimationEvents, "animation-event-list"); }