public AddControlSchemePopup(InputActionAssetManager assetManager, InputActionWindowToolbar toolbar, Action apply)
 {
     m_AssetManager = assetManager;
     m_Toolbar      = toolbar;
     m_SetFocus     = true;
     m_Apply        = apply;
 }
Beispiel #2
0
 public void SetReferences(InputActionAssetManager actionAssetManager, Action apply)
 {
     m_ActionAssetManager = actionAssetManager;
     m_Apply = apply;
     RebuildData();
     BuildDeviceList();
 }
        // Set asset would usually only be called when the window is open
        private void SetAsset(InputActionAsset referencedObject)
        {
            m_ActionAssetManager = new InputActionAssetManager(referencedObject);
            m_ActionAssetManager.SetReferences(SetTitle);
            m_ActionAssetManager.InitializeObjectReferences();
            m_InputActionWindowToolbar = new InputActionWindowToolbar(m_ActionAssetManager, Apply);
            m_ContextMenu = new ActionInspectorContextMenu(this, m_ActionAssetManager);
            InitializeTrees();

            // Make sure first actions map selected and actions tree expanded
            m_ActionMapsTree.SelectFirstRow();
            OnActionMapSelection();
            m_ActionsTree.ExpandAll();
            LoadPropertiesForSelection();
        }
        // Set asset would usually only be called when the window is open
        private void SetAsset(InputActionAsset asset)
        {
            m_ActionAssetManager = new InputActionAssetManager(asset)
            {
                onDirtyChanged = OnDirtyChanged
            };
            m_ActionAssetManager.Initialize();

            InitializeTrees();
            LoadControlSchemes();

            // Select first action map in asset.
            m_ActionMapsTree.SelectFirstToplevelItem();

            UpdateWindowTitle();
        }
        // Set asset would usually only be called when the window is open
        private void SetAsset(InputActionAsset asset)
        {
            m_ActionAssetManager = new InputActionAssetManager(asset)
            {
                onDirtyChanged = OnDirtyChanged
            };
            m_ActionAssetManager.InitializeObjectReferences();
            m_InputActionWindowToolbar = new InputActionWindowToolbar(m_ActionAssetManager, ApplyAndReload);
            m_ContextMenu = new ActionInspectorContextMenu(this, m_ActionAssetManager, m_InputActionWindowToolbar);
            InitializeTrees();

            // Make sure first actions map selected and actions tree expanded
            m_ActionMapsTree.SelectFirstRow();
            OnActionMapSelection();
            m_ActionsTree.ExpandAll();
            LoadPropertiesForSelection();

            UpdateWindowTitle();
        }
 public void SetReferences(AssetInspectorWindow window, InputActionAssetManager assetManager)
 {
     m_AssetInspectorWindow = window;
     m_ActionAssetManager   = assetManager;
 }
 public ActionInspectorContextMenu(AssetInspectorWindow window, InputActionAssetManager assetManager)
 {
     SetReferences(window, assetManager);
 }
Beispiel #8
0
 public void SetReferences(AssetInspectorWindow window, InputActionAssetManager assetManager, InputActionWindowToolbar toolbar)
 {
     m_AssetInspectorWindow = window;
     m_ActionAssetManager   = assetManager;
     m_Toolbar = toolbar;
 }
Beispiel #9
0
 public InputActionWindowToolbar(InputActionAssetManager actionAssetManager, Action apply)
 {
     SetReferences(actionAssetManager, apply);
     RebuildData();
 }