Esempio n. 1
0
 public static void ShowModelView(string _ModelName, ModelContorlBase _Model, Rect Pos)
 {
     Model      = _Model;
     ModelName  = _ModelName;
     ModelComps = Model.GetMyComps();
     newWindow  = GetWindowWithRect <ModelBaseEditor>(Pos, true, "模块详情");
 }
Esempio n. 2
0
 protected virtual void ShowModeInfoStyle(int Index, Rect Pos)
 {
     if (Event.current.type == EventType.MouseDown && Event.current.button == 0 && Pos.Contains(Event.current.mousePosition))
     {
         CurrIndex = Index;
         Event.current.Use();
         if (Event.current.clickCount == 2)
         {
             ModelBaseEditor.CloseView();
             ModelBaseEditor.ShowModelView(ModelNames[CurrIndex], Models[ModelNames[CurrIndex]], new Rect(Pos.x, Pos.y, 300, 500));
         }
     }
     if (Event.current.type == EventType.Repaint)
     {
         listItemBackground2.Draw(Pos, false, false, CurrIndex == Index, false);
     }
 }