public AddControlSchemePopup(InputActionAssetManager assetManager, InputActionWindowToolbar toolbar, Action apply) { m_AssetManager = assetManager; m_Toolbar = toolbar; m_SetFocus = true; m_Apply = apply; }
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); }
public void SetReferences(AssetInspectorWindow window, InputActionAssetManager assetManager, InputActionWindowToolbar toolbar) { m_AssetInspectorWindow = window; m_ActionAssetManager = assetManager; m_Toolbar = toolbar; }
public InputActionWindowToolbar(InputActionAssetManager actionAssetManager, Action apply) { SetReferences(actionAssetManager, apply); RebuildData(); }