When adding a continent the world will set up a base size now.

This commit is contained in:
Relintai 2021-12-25 01:55:52 +01:00
parent 6c438c97f4
commit 4cc9baf23b

View File

@ -11,7 +11,15 @@ func set_content(arr : Array) -> void:
continents = arr continents = arr
func add_content() -> void: func add_content() -> void:
continents.append(Continent.new()) var continent : Continent = Continent.new()
var r : Rect2 = get_rect()
r.size.x /= 10.0
r.size.y /= 10.0
continent.set_rect(r)
continents.append(continent)
emit_changed() emit_changed()
func setup_property_inspector(inspector) -> void: func setup_property_inspector(inspector) -> void: