Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ func render_worker_overlay() -> void:
sprite = worker_overlay_nodes[name]
else:
sprite = TextureRect.new()
sprite.custom_minimum_size = Vector2(22, 28)
sprite.custom_minimum_size = Vector2(int(tile_size.x * 0.40), int(tile_size.y * 0.50))
sprite.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
sprite.stretch_mode = TextureRect.STRETCH_KEEP_CENTERED
world_overlay.add_child(sprite)
Expand Down Expand Up @@ -1246,7 +1246,7 @@ func render_worker_sprites(container: HBoxContainer, workers_here: Array) -> voi
child.queue_free()
for worker in workers_here:
var sprite := TextureRect.new()
sprite.custom_minimum_size = Vector2(12, 14)
sprite.custom_minimum_size = Vector2(int(tile_size.x * 0.25), int(tile_size.y * 0.28))
sprite.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
sprite.stretch_mode = TextureRect.STRETCH_KEEP_CENTERED
sprite.texture = worker_texture(String(worker.name), worker_anim_frame(worker))
Expand Down