Exemplo n.º 1
0
        public bool OnGUI(int leftWidth, int height)
        {
            //BaseOnGUI();

            this.leftWidth = leftWidth;
            this.height    = height;

            EditorGUIHelper.DrawColums(DrawLeftSide, DrawRightSide);

            return(isDirty);
        }
    public bool OnGUI(int leftWidth, int height)
    {
        BaseOnGUI();
        var root         = InstanceFinder.DataManager.AudioTree;
        int id           = InstanceFinder.GuiUserPrefs.SelectedAudioNodeID;
        var selectedNode = UpdateSelectedNode(root, id);

        InstanceFinder.GuiUserPrefs.SelectedAudioNodeID = selectedNode != null ? selectedNode.ID : 0;

        this.leftWidth = leftWidth;
        this.height    = height;

        EditorGUIHelper.DrawColums(DrawLeftSide, DrawRightSide);

        return(isDirty);
    }
Exemplo n.º 3
0
    public bool OnGUI(int leftWidth, int height)
    {
        BaseOnGUI();

        var dataManager = InstanceFinder.DataManager;

        if (dataManager != null)
        {
            Undo.ClearSnapshotTarget();
            var root         = dataManager.BankLinkTree;
            int id           = InstanceFinder.GuiUserPrefs.SelectedBusID;
            var selectedNode = UpdateSelectedNode(root, id);
            InstanceFinder.GuiUserPrefs.SelectedBusID = selectedNode != null ? selectedNode.ID : 0;
        }

        this.leftWidth = leftWidth;
        this.height    = height;

        EditorGUIHelper.DrawColums(DrawLeftSide, DrawRightSide);

        return(isDirty);
    }