Ejemplo n.º 1
0
 private void _DrawMenuViewMap()
 {
     if (GUILayout.Button("Terrain"))
     {
         _viewMapStatus = ViewMapStatus.Terrain;
         if (_tileData != null && _terrainColor != null)
         {
             _ShowWorldMapTexture(_tileData);
             _noticeTxt = string.Format("Terrain map: {0}*{1}", _tileData.Width, _tileData.Height);
         }
     }
     if (GUILayout.Button("Biome"))
     {
         _viewMapStatus = ViewMapStatus.Biome;
         if (_tileData != null && _terrainColor != null)
         {
             _ShowWorldMapTexture(_tileData);
             _noticeTxt = string.Format("Biome map: {0}*{1}", _tileData.Width, _tileData.Height);
         }
     }
     if (GUILayout.Button("Humudity"))
     {
         _viewMapStatus = ViewMapStatus.Humudity;
         if (_tileData != null && _weatherColor != null)
         {
             _ShowWorldMapTexture(_tileData);
             _noticeTxt = string.Format("Humudity map: {0}*{1}", _tileData.Width, _tileData.Height);
         }
     }
     if (GUILayout.Button("Temperature"))
     {
         _viewMapStatus = ViewMapStatus.Temperature;
         if (_tileData != null && _weatherColor != null)
         {
             _ShowWorldMapTexture(_tileData);
             _noticeTxt = string.Format("Temperature map: {0}*{1}", _tileData.Width, _tileData.Height);
         }
     }
     if (GUILayout.Button("Mana"))
     {
         _viewMapStatus = ViewMapStatus.Mana;
         if (_tileData != null && _manaColor != null)
         {
             _ShowWorldMapTexture(_tileData);
             _noticeTxt = string.Format("Mana map: {0}*{1}", _tileData.Width, _tileData.Height);
         }
     }
     if (GUILayout.Button("River"))
     {
         _viewMapStatus = ViewMapStatus.River;
         if (_tileData != null && _rainColor != null)
         {
             _ShowWorldMapTexture(_tileData);
             _noticeTxt = string.Format("River map: {0}*{1}", _tileData.Width, _tileData.Height);
         }
     }
 }
Ejemplo n.º 2
0
 private void _DrawHeader()
 {
     if (GUILayout.Button("New Map", GUILayout.Width(200)))
     {
         _viewMapStatus  = ViewMapStatus.None;
         _mainMenuStatus = MainMenuStatus.NewMap;
         _noticeTxt      = string.Empty;
     }
     if (GUILayout.Button("View Map", GUILayout.Width(200)))
     {
         _mainMenuStatus = MainMenuStatus.ViewMap;
         _worldTexture   = null;
         _noticeTxt      = string.Empty;
     }
 }