Changed resource spawning
added interact functionality temp added zoom with scroll wheel
This commit is contained in:
@@ -11,7 +11,7 @@ func _on_resource_manager_changed_resource(changed: ResourceChangedSignal) -> vo
|
||||
if not _resource_displays.has(resource):
|
||||
var atlas_tex := AtlasTexture.new()
|
||||
atlas_tex.atlas = SCIFI_TILESHEET
|
||||
atlas_tex.region = Rect2(128 * resource.atlas_location.x, 128 * resource.atlas_location.y, 128, 128)
|
||||
atlas_tex.region = Rect2(Grid.GRID_SIZE * resource.atlas_location.x, Grid.GRID_SIZE * resource.atlas_location.y, Grid.GRID_SIZE, Grid.GRID_SIZE)
|
||||
var img := TextureRect.new()
|
||||
img.texture = atlas_tex
|
||||
img.expand_mode = TextureRect.EXPAND_FIT_WIDTH_PROPORTIONAL
|
||||
|
||||
Reference in New Issue
Block a user