Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TuxedoBerries.ScenePanel.ButtonContainer"/> class.
 /// </summary>
 /// <param name="containerName">Container name.</param>
 /// <param name="saveInPreferences">If set to <c>true</c> save in preferences.</param>
 public ButtonContainer(string containerName, bool saveInPreferences)
 {
     _containerName     = containerName;
     _saveInPreferences = saveInPreferences;
     _folders           = new Dictionary <string, bool> ();
     _channel           = EditorPreferenceHandler.GetChannel(this, _containerName);
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TuxedoBerries.ScenePanel.ScrollableContainer"/> class.
 /// </summary>
 /// <param name="containerName">Container name.</param>
 /// <param name="saveInPreferences">If set to <c>true</c> save in preferences.</param>
 public ScrollableContainer(string containerName, bool saveInPreferences)
 {
     _areas             = new Dictionary <string, Vector2> ();
     _containerName     = containerName;
     _saveInPreferences = saveInPreferences;
     _channel           = EditorPreferenceHandler.GetChannel(this, _containerName);
 }
        public SceneEntityDrawer(string name) : base()
        {
            _buttonContainer = new ButtonContainer(name, true);
            _column1         = GUILayout.Width(128);

            _channel       = EditorPreferenceHandler.GetChannel(this, name);
            _enableEditing = _channel.GetBool("edit");
        }
        public SceneHistoryDrawer() : base()
        {
            _history = new SceneHistory();
            _history.Load();

            _channel       = EditorPreferenceHandler.GetChannel(this, CLASS_NAME);
            _restoreOnStop = _channel.GetBool(RESTORE_VAR);
            _textCol1      = GUILayout.Width(100);
        }
        public SceneHistoryDrawer()
            : base()
        {
            _history = new SceneHistory ();
            _history.Load ();

            _channel = EditorPreferenceHandler.GetChannel (this, CLASS_NAME);
            _restoreOnStop = _channel.GetBool (RESTORE_VAR);
            _textCol1 = GUILayout.Width (100);
        }
Exemple #6
0
 public BasePersistantStack()
 {
     _backHistory = new Stack <T> ();
     _channel     = EditorPreferenceHandler.GetChannel(this);
 }
 public SceneHistory()
 {
     _backHistory = new Stack<ISceneFileEntity> ();
     _forwardHistory = new Stack<ISceneFileEntity> ();
     _channel = EditorPreferenceHandler.GetChannel (this);
 }
 public SceneHistory()
 {
     _backHistory    = new Stack <ISceneFileEntity> ();
     _forwardHistory = new Stack <ISceneFileEntity> ();
     _channel        = EditorPreferenceHandler.GetChannel(this);
 }