mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-21 13:16:49 +01:00
Also add the initial rect size setup code to Continent and Zone.
This commit is contained in:
parent
b7b36d47ab
commit
c21970b82f
@ -14,6 +14,12 @@ func add_content(item_name : String = "") -> void:
|
||||
var zone : Zone = Zone.new()
|
||||
zone.resource_name = item_name
|
||||
|
||||
var r : Rect2 = get_rect()
|
||||
r.size.x /= 10.0
|
||||
r.size.y /= 10.0
|
||||
|
||||
zone.set_rect(r)
|
||||
|
||||
zones.append(zone)
|
||||
|
||||
emit_changed()
|
||||
|
@ -14,6 +14,12 @@ func add_content(item_name : String = "") -> void:
|
||||
var subzone : SubZone = SubZone.new()
|
||||
subzone.resource_name = item_name
|
||||
|
||||
var r : Rect2 = get_rect()
|
||||
r.size.x /= 10.0
|
||||
r.size.y /= 10.0
|
||||
|
||||
subzone.set_rect(r)
|
||||
|
||||
subzones.append(subzone)
|
||||
emit_changed()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user