Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public void RemoveRenderControl(NGUIRenderControl control)
 {
     m_renderControls.Remove(control);
 }
Exemplo n.º 3
0
 public void AddRenderControl(NGUIRenderControl control)
 {
     m_renderControls.Add(control);
 }