Exemplo n.º 1
0
        private void OnSceneRefreshed(RefreshSceneOpt opts)
        {
            if (opts.HasFlag(RefreshSceneOpt.Refresh_MainMenu))
            {
                m_menuCut.Enabled    = SceneEd.Instance.HasSelection;
                m_menuCopy.Enabled   = SceneEd.Instance.HasSelection;
                m_menuPaste.Enabled  = SceneEd.Instance.Clipboard.IsInUse;
                m_menuDelete.Enabled = SceneEd.Instance.HasSelection;
            }

            if (opts.HasFlag(RefreshSceneOpt.Refresh_Layout))
            {
                m_uiLayoutTree.PopulateLayout();
            }

            if (opts.HasFlag(RefreshSceneOpt.Refresh_Properties))
            {
                m_uiPropertyGrid.GetGridCtrl().RefreshPropertyValues();
            }

            // Rendering 排在后面是为了反映前两者的变化的结果
            if (opts.HasFlag(RefreshSceneOpt.Refresh_Rendering))
            {
                m_glRenderBuffer.Refresh();
            }
        }
Exemplo n.º 2
0
 public void Emit_RefreshScene(RefreshSceneOpt opts)
 {
     if (RefreshScene != null)
     {
         RefreshScene(opts);
     }
 }
Exemplo n.º 3
0
 void OnSceneRefreshed(RefreshSceneOpt opts)
 {
     RefreshSelection();
 }