broken_seals/game/addons/world_generator/ui/MainScreen.gd

22 lines
559 B
GDScript3
Raw Normal View History

2021-12-21 21:57:15 +01:00
tool
extends PanelContainer
var edited_world
func set_plugin(plugin : EditorPlugin) -> void:
$TabContainer/World.set_plugin(plugin)
$TabContainer/Continent.set_plugin(plugin)
$TabContainer/Zone.set_plugin(plugin)
$TabContainer/SubZone.set_plugin(plugin)
2021-12-21 21:57:15 +01:00
func refresh() -> void:
2021-12-25 02:32:00 +01:00
$TabContainer/World.set_wgworld(edited_world)
$TabContainer/Continent.set_wgworld(edited_world)
2021-12-25 12:18:59 +01:00
$TabContainer/Zone.set_wgworld(edited_world)
2021-12-25 12:31:36 +01:00
$TabContainer/SubZone.set_wgworld(edited_world)
2021-12-21 21:57:15 +01:00
func set_wgworld(wgw : WorldGenWorld) -> void:
edited_world = wgw
refresh()