示例#1
0
文件: NodeBase.cs 项目: wachel/block
 private void doTextureGUI(EditorGuiBase gui)
 {
     gui.beginH();
     {
         gui.labelField("", 10);
         gui.labelField("texture", 64);
         gui.labelField("");
     }
     gui.endH();
     gui.beginH();
     {
         gui.labelField("", 10);
         texture     = (Texture2D)gui.objectField(texture, typeof(Texture2D), true, 64, 64);
         texturePath = gui.getAssetPath(texture);
         gui.beginV();
         {
             gui.space();
             gui.space();
             gui.beginH();
             {
                 gui.labelField("min size:", 60);
                 minSize = gui.floatField("", minSize);
             }
             gui.endH();
             gui.beginH();
             {
                 gui.labelField("max size:", 60);
                 maxSize = gui.floatField("", maxSize);
             }
             gui.endH();
             gui.beginH();
             {
                 gui.labelField("billboard:", 60);
                 bBillboard = gui.toggle("", bBillboard);
             }
             gui.endH();
         }
         gui.endV();
     }
     gui.endH();
 }
示例#2
0
文件: NodeBase.cs 项目: wachel/block
 private void doTextureGUI(EditorGuiBase gui)
 {
     gui.beginH();
     {
         gui.labelField("", 10);
         gui.labelField("texture", 64);
         gui.labelField("normal", 64);
         gui.labelField("size", -1);
     }
     gui.endH();
     gui.beginH();
     {
         gui.labelField("", 10);
         texture     = (Texture2D)gui.objectField(texture, typeof(Texture2D), true, 64, 64);
         texturePath = gui.getAssetPath(texture);
         normal      = (Texture2D)gui.objectField(normal, typeof(Texture2D), true, 64, 64);
         normalPath  = gui.getAssetPath(normal);
         gui.beginV();
         {
             gui.space();
             gui.space();
             gui.beginH();
             {
                 gui.labelField("size x:", 40);
                 texSizeX = gui.intField("", texSizeX);
             }
             gui.endH();
             gui.beginH();
             {
                 gui.labelField("size y:", 40);
                 texSizeY = gui.intField("", texSizeY);
             }
             gui.endH();
         }
         gui.endV();
     }
     gui.endH();
 }
示例#3
0
文件: NodeBase.cs 项目: wachel/block
 public override void OnMainGUI(EditorGuiBase gui)
 {
     //treeIndex = gui.layoutIntField("index of " + label, treeIndex);
     //texture = (Texture2D)EditorGUILayout.ObjectField(name, texture, typeof(Texture2D), true);
     bShowInMain = gui.foldout(bShowInMain, label);
     if (bShowInMain)
     {
         doTreeGUI(gui, true);
         gui.beginH();
         {
             //EditorGUILayout.LabelField("", GUILayout.Width(10));
             gui.labelField("", 10);
             density = gui.floatField("density of " + label, density);
         }
         gui.endH();
     }
 }
示例#4
0
文件: NodeBase.cs 项目: wachel/block
 private void doTreeGUI(EditorGuiBase gui, bool bIndent)
 {
     gui.beginH();
     {
         if (bIndent)
         {
             gui.labelField("", 10);
         }
         gui.beginV();
         {
             gui.labelField("tree");
             objTree = (GameObject)gui.objectField(objTree, typeof(GameObject), true);
             gui.minMaxSlider("size(" + minSize.ToString("0.00") + "~" + maxSize.ToString("0.00") + ")", ref minSize, ref maxSize, 0.3f, 3f);
         }
         gui.endV();
     }
     gui.endH();
     treePath = gui.getAssetPath(objTree);
 }