public UIEditor() { InitializeComponent(); m_finalClose = false; m_stringDictLoad = false; guiRenderControl = new NGUIRenderControl(this); guiRenderControl.Dock = DockStyle.Fill; guiRenderControl.CreateViewport(); guiRenderControl.WindowCreated += new UIECreateWindowEventHander(guiRenderControl_WindowCreated); this.Closing += new CancelEventHandler(UIEditor_Closing); this.GUIPreview.Controls.Add(guiRenderControl); CopyWindowResourceName = new NResourceLoc("content", "ui/_temp/_copy.nui"); CurrentMode = UIEditorMode.Editor; UndoRedoCommands = new UndoRedo(); }
public void RemoveRenderControl(NGUIRenderControl control) { m_renderControls.Remove(control); }
public void AddRenderControl(NGUIRenderControl control) { m_renderControls.Add(control); }