Ejemplo n.º 1
0
 public static void Box(string text, GUILayoutOption[] opts)
 {
     UGUI.Box(text, Style.Box, opts);
 }
Ejemplo n.º 2
0
 public static void Box(Texture img, GUILayoutOption[] opts)
 {
     UGUI.Box(img, opts);
 }
Ejemplo n.º 3
0
 public static void Box(Texture img)
 {
     UGUI.Box(img);
 }
Ejemplo n.º 4
0
 public static void Box(string text)
 {
     UGUI.Box(text, Style.Box);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Draws simple vertical GUI line
 /// </summary>
 public static void VerticalRule()
 {
     Gl.Box("", Gl.ExpandHeight(true), Gl.Width(2));
 }
Ejemplo n.º 6
0
 ///<summary> Draws simple horizontal GUI line </summary>
 public static void HorizontalRule()
 {
     Gl.Box("", Gl.ExpandWidth(true), Gl.Height(2));
 }
Ejemplo n.º 7
0
    void OnGUI()
    {
        //This is used for debugging, when the code is changed, simply refocussing the City Generator window will reload the code
        if (window == null)
        {
            OpenWindow();
        }
        scrollLocation = EGL.BeginScrollView(scrollLocation);

        GL.BeginHorizontal();
        GL.Label("Procedural City Generator", EditorStyles.boldLabel);
        GL.Space(50);
        EGL.BeginHorizontal("Box");
        rDebugToggle.target = EGL.ToggleLeft("Debug Mode?", rDebugToggle.target);
        EGL.EndHorizontal();
        GL.EndHorizontal();

        GL.Box("", new GUILayoutOption[] { GL.ExpandWidth(true), GL.Height(1) });
        showTerrainGUI();

        GL.Box("", new GUILayoutOption[] { GL.ExpandWidth(true), GL.Height(1) });
        showPopulationMapGUI();

        GL.Box("", new GUILayoutOption[] { GL.ExpandWidth(true), GL.Height(1) });
        showGrowthMapGUI();

        GL.Box("", new GUILayoutOption[] { GL.ExpandWidth(true), GL.Height(1) });
        showRoadMapGUI();

        GL.Box("", new GUILayoutOption[] { GL.ExpandWidth(true), GL.Height(1) });
        showBuildingGUI();

        GL.Box("", new GUILayoutOption[] { GL.ExpandWidth(true), GL.Height(1) });
        if (GL.Button("Reset"))
        {
            oldShowPop          = false;
            oldShowGrowth       = false;
            showTerrainUI       = true;
            showPopUI           = false;
            showGrowthUI        = false;
            showRoadMapAdvanced = false;
            showRoadMapUI       = false;
            showBuildingUI      = false;
            terrainGenerated    = false;
            populationGenerated = false;
            growthMapGenerated  = false;
            roadMapGenerated    = false;
            roadMeshGenerated   = false;

            terrainLabel    = "1. Terrain Generation - NOT COMPLETED ✘";
            populationLabel = "2. Population Map Generation - NOT COMPLETED ✘";
            growthLabel     = "3. Growth Map Generation - NOT COMPLETED ✘";
            roadmapLabel    = "4. Road Map Generation - NOT COMPLETED ✘";
            buildingLabel   = "5. Building Generation - NOT COMPLETED ✘";
        }

        // TESTING

        /*
         * if (GL.Button ("Generate Houses")) {
         *      generator.testHouses ();
         * }*/
        //END TESTING

        EGL.EndScrollView();
    }