Jump to content

Adding weathers to the Admin Panel


DazzaJay

Recommended Posts

Basically, im bored, And i noticed that the admin panel only had 19 weathers, but the wiki showed that there was 45.....

so i went thru and added this to the weathers.xml

  "0" name="Blue Sky, Sunny" /> 
  "1" name="Blue Sky, Sunny" /> 
  "2" name="Blue Sky, Clouds" /> 
  "3" name="Blue Sky, Clouds" /> 
  "4" name="Blue Sky, Clouds" /> 
  "5" name="Blue Sky, Clouds" /> 
  "6" name="Blue Sky, Clouds" /> 
  "7" name="Blue Sky, Clouds" /> 
  "8" name="Storming" /> 
  "9" name="Cloudy and Foggy" /> 
  "10" name="Clear Blue Sky" /> 
  "11" name="Sunny, Scorching Hot" /> 
  "12" name="Very Dull, Colourless, Hazy" /> 
  "13" name="Very Dull, Colourless, Hazy" /> 
  "14" name="Very Dull, Colourless, Hazy" /> 
  "15" name="Very Dull, Colourless, Hazy" /> 
  "16" name="Dull, Cloudy, Rainy" /> 
  "17" name="Sunny, Scorching Hot" /> 
  "18" name="Sunny, Scorching Hot" /> 
  "19" name="Sandstorm" /> 
  "20" name="Foggy, Greenish" /> 
  "21" name="Very Dark, Gradiented Skyline, Purple" /> 
  "22" name="Very Dark, Gradiented Skyline, Green" /> 
  "23" name="Pale Orange" /> 
  "24" name="Pale Orange" /> 
  "25" name="Pale Orange" /> 
  "26" name="Pale Orange" /> 
  "27" name="Fresh Blue" /> 
  "28" name="Fresh Blue" /> 
  "29" name="Fresh Blue" /> 
  "30" name="Dark, Cloudy, Teal" /> 
  "31" name="Dark, Cloudy, Teal" /> 
  "32" name="Dark, Cloudy, Teal" /> 
  "33" name="Dark, Cloudy, Brown" /> 
  "34" name="Blue, Purple, Regular" /> 
  "35" name="Dull Brown" /> 
  "36" name="Bright, Foggy, Orange" /> 
  "37" name="Bright, Foggy, Orange" /> 
  "38" name="Bright, Foggy, Orange" /> 
  "39" name="Extremely Bright" /> 
  "40" name="Blue, Purple, Cloudy" /> 
  "41" name="Blue, Purple, Cloudy" /> 
  "42" name="Blue, Purple, Cloudy" /> 
  "43" name="Dark Toxic Clouds " /> 
  "44" name="Black, White Sky" /> 
  "45" name="Black, Purple Sky" /> 

then i changed a line in admin_main.lua

From this:

                    if ( ( source == aTab3.WeatherInc ) and ( id < 19 ) ) then guiSetText ( aTab3.Weather, ( id + 1 ).." ("..getWeatherNameFromID ( id + 1 )..")" ) 

To this:

                    if ( ( source == aTab3.WeatherInc ) and ( id < 45 ) ) then guiSetText ( aTab3.Weather, ( id + 1 ).." ("..getWeatherNameFromID ( id + 1 )..")" ) 

and its added all the new weathers in to the panel, and i can select them, but still only 1 thru 19 work, 20 thru 45 just say "Error setting weather"

so what have i missed?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...