mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-25 01:17:10 +01:00
When adding a continent the world will set up a base size now.
This commit is contained in:
parent
6c438c97f4
commit
4cc9baf23b
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user