//mxd. Replace constructor
        internal ScriptFileDocumentTab(ScriptResourceDocumentTab sourcetab)
            : base(sourcetab.Panel, sourcetab.Config)
        {
            // Set text and view settings
            tabtype = ScriptDocumentTabType.FILE;
            editor.Scintilla.Text = sourcetab.Editor.Scintilla.Text;
            SetViewSettings(sourcetab.GetViewSettings());

            // Set title
            SetTitle(sourcetab.Filename);
        }
Пример #2
0
		public void SelectItem(ScriptResourceDocumentTab tab)
		{
			if(tab == null) return;
			SelectItem(tab.Resource.Resource.Location.location, tab.Resource.Filename, 
				tab.Resource.LumpIndex, tab.Resource.ScriptType);
		}