mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-21 13:16:49 +01:00
Set the selected continent into the widgets.
This commit is contained in:
parent
b30016bc28
commit
b7b36d47ab
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user