Пример #1
0
        public PageNavigator(TalkDataContainerScriptable dataContainer, TalkDataContainerScriptable.PageNavigatorState pageState)
        {
            _dataContainer      = dataContainer.Container;
            _pageNavigatorState = pageState;

            _pages = new PagesFactory(this, dataContainer);

            _navigatedPages = new List <IPage>();

            _navigationButtons = new GUIStyle(EditorStyles.label);

            _navigationButtons.margin.left  = 0;
            _navigationButtons.margin.right = 0;
            _navigationButtons.font         = GUI.skin.font;
            _navigationButtons.fontStyle    = FontStyle.Bold;
            _path = new StringBuilder();

            _pathLabel           = new GUIStyle(EditorStyles.toolbarButton);
            _pathLabel.alignment = TextAnchor.MiddleLeft;
            _pathLabel.richText  = true;
            _pathLabel.fontSize  = 11;

            LoadPageState();
        }
Пример #2
0
 static EditorUndoRedo()
 {
     _scriptable = Utils.GetTalkScriptable();
 }