Set the selected continent into the widgets.

This commit is contained in:
Relintai 2021-12-25 03:25:42 +01:00
parent b30016bc28
commit b7b36d47ab
2 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
tool
extends ScrollContainer
var _edited_resource : WorldGenWorld = null
var _edited_resource : WorldGenBaseResource = null
var properties : Array = Array()
func add_slot_color(getter : String, setter : String) -> int:

View File

@ -9,12 +9,12 @@ func _ready():
option_button.connect("item_selected", self, "on_item_selected")
func refresh_continent() -> void:
# $HSplitContainer/ResourcePropertyList.edit_resource(edited_world)
# $VBoxContainer/DataList.set_edited_resource(edited_world)
# $HSplitContainer/RectEditor.set_edited_resource(edited_world)
$HSplitContainer/VBoxContainer/HBoxContainer2/ResourcePropertyList.edit_resource(edited_continent)
$HSplitContainer/VBoxContainer/HBoxContainer2/VBoxContainer/DataList.set_edited_resource(edited_continent)
$HSplitContainer/RectEditor.set_edited_resource(edited_continent)
if !edited_continent:
return
# if !edited_continent:
# return
func refresh() -> void:
var option_button : OptionButton = $HSplitContainer/VBoxContainer/OptionButton