예제 #1
0
 protected override void Initialize()
 {
     base.Initialize();
     canvaBgStyle   = CaomaoGUIStyle.GraphBGStyle;
     this.m_preZoom = 1;
     ColorExtensions.PushIntColor(45, 45, 45);
     waitContent = new GUIContent("正在编译中...");
 }
예제 #2
0
 protected override void OnGUI()
 {
     this.canvasRect = new Rect(0, 0, this.position.width, this.position.height);
     this.canvasRect = canvasRect.Padding(5f);
     //this.canvaBgStyle.Draw(this.canvasRect, GUIContent.none, 0);
     //GUI.Box(this.canvasRect, GUIContent.none, this.canvaBgStyle);
     EditorGUI.DrawRect(this.canvasRect, ColorExtenstion.PopIntColor());
     if (EditorApplication.isCompiling)
     {
         ShowNotification(this.waitContent);
         return;
     }
     this.DrawGrid();
     this.HandlerGUIEvent();
     base.OnGUI();
 }