Exemple #1
0
    // サブウィンドウを開く
    public static MapCreaterSubWindow WillAppear(MapCreater _parent)
    {
        MapCreaterSubWindow window = (MapCreaterSubWindow)EditorWindow.GetWindow(typeof(MapCreaterSubWindow), false);

        window.Show();
        window.minSize = new Vector2(WINDOW_W, WINDOW_H);
        window.SetParent(_parent);
        window.init();
        return(window);
    }
Exemple #2
0
 // マップウィンドウを開くボタンを生成
 private void DrawMapWindowButton()
 {
     EditorGUILayout.BeginVertical();
     GUILayout.FlexibleSpace();
     if (GUILayout.Button("open map editor"))
     {
         if (subWindow == null)
         {
             subWindow = MapCreaterSubWindow.WillAppear(this);
         }
         else
         {
             subWindow.Focus();
         }
     }
     EditorGUILayout.EndVertical();
 }
Exemple #3
0
 // マップウィンドウを開くボタンを生成
 private void DrawMapWindowButton()
 {
     EditorGUILayout.BeginVertical();
     GUILayout.FlexibleSpace();
     if(GUILayout.Button("open map editor")){
         if(subWindow == null){
             subWindow = MapCreaterSubWindow.WillAppear(this);
         }else{
             subWindow.Focus();
         }
     }
     EditorGUILayout.EndVertical();
 }