Go to the documentation of this file.00001 import BigWorld, GUI, Math, ResMgr
00002
00003
00004
00005 def setup():
00006 BigWorld.camera(BigWorld.CursorCamera())
00007 BigWorld.setCursor( GUI.mcursor() )
00008 GUI.mcursor().visible = True
00009
00010
00011 def clearAll():
00012 while len(GUI.roots()):
00013 GUI.delRoot(GUI.roots()[0])
00014
00015
00016 def clone( component ):
00017 ResMgr.purge( "gui/temp_clone.gui", True )
00018 component.save( "gui/temp_clone.gui" )
00019 return GUI.load( "gui/temp_clone.gui" )
00020
00021
00022 weatherWindow = None
00023 def weather():
00024 global weatherWindow
00025 setup()
00026 weatherWindow = GUI.load( "gui/weather_window.gui" )
00027 GUI.addRoot( weatherWindow )
00028 return weatherWindow
00029
00030 def saveWeather():
00031 global weatherWindow
00032 if weatherWindow:
00033 weatherWindow.save( "gui/weather_window.gui" )
00034