Set the world into the continent editor.

This commit is contained in:
Relintai 2021-12-25 02:33:43 +01:00
parent c34b629b26
commit 65562c6523
2 changed files with 13 additions and 0 deletions

View File

@ -5,6 +5,7 @@ var edited_world
func refresh() -> void:
$TabContainer/World.set_wgworld(edited_world)
$TabContainer/Continent.set_wgworld(edited_world)
func set_wgworld(wgw : WorldGenWorld) -> void:
edited_world = wgw

View File

@ -1,3 +1,15 @@
tool
extends HBoxContainer
var edited_world
func refresh() -> void:
pass
# $HSplitContainer/ResourcePropertyList.edit_resource(edited_world)
# $VBoxContainer/DataList.set_edited_resource(edited_world)
# $HSplitContainer/RectEditor.set_edited_resource(edited_world)
func set_wgworld(wgw : WorldGenWorld) -> void:
edited_world = wgw
refresh()