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 tool
extends ScrollContainer extends ScrollContainer
var _edited_resource : WorldGenWorld = null var _edited_resource : WorldGenBaseResource = null
var properties : Array = Array() var properties : Array = Array()
func add_slot_color(getter : String, setter : String) -> int: 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") option_button.connect("item_selected", self, "on_item_selected")
func refresh_continent() -> void: func refresh_continent() -> void:
# $HSplitContainer/ResourcePropertyList.edit_resource(edited_world) $HSplitContainer/VBoxContainer/HBoxContainer2/ResourcePropertyList.edit_resource(edited_continent)
# $VBoxContainer/DataList.set_edited_resource(edited_world) $HSplitContainer/VBoxContainer/HBoxContainer2/VBoxContainer/DataList.set_edited_resource(edited_continent)
# $HSplitContainer/RectEditor.set_edited_resource(edited_world) $HSplitContainer/RectEditor.set_edited_resource(edited_continent)
if !edited_continent: # if !edited_continent:
return # return
func refresh() -> void: func refresh() -> void:
var option_button : OptionButton = $HSplitContainer/VBoxContainer/OptionButton var option_button : OptionButton = $HSplitContainer/VBoxContainer/OptionButton