Package horizons :: Package gui :: Package modules :: Module singleplayermenu :: Class RandomMapWidget
[hide private]
[frames] | no frames]

Class RandomMapWidget

source code

Create a random map, influence map generation with multiple sliders.

Instance Methods [hide private]
 
__init__(self, windows, singleplayer_menu, aidata) source code
 
end(self) source code
 
get_widget(self) source code
 
act(self, player_name, player_color) source code
 
show(self) source code
 
_get_map_parameters(self) source code
 
_on_random_parameter_changed(self) source code
 
_on_preview_click(self, event, drag) source code
 
_update_map_preview(self)
Start a new process to generate a map preview.
source code
 
_poll_preview_process(self)
This will be called regularly to see if the process ended.
source code
 
_set_map_preview_status(self, text) source code
Method Details [hide private]

_poll_preview_process(self)

source code 

This will be called regularly to see if the process ended.

If the process has not yet finished, schedule a new callback to this function. Otherwise use the data to update the minimap.