1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Added Fix for new Tile modes (#384)

This commit is contained in:
Darshan Phaldesai 2020-11-17 00:27:35 +05:30 committed by GitHub
parent 001fb02ed1
commit 397ef566db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,15 @@ func _get_draw_rect() -> Rect2:
func _get_tile_mode_rect() -> Rect2:
match Global.tile_mode:
Global.Tile_Mode.XAXIS:
return Rect2(Vector2(-Global.current_project.size.x,0), Vector2(Global.current_project.size.x * 3,Global.current_project.size.y))
Global.Tile_Mode.YAXIS:
return Rect2(Vector2(0,-Global.current_project.size.y), Vector2(Global.current_project.size.x,Global.current_project.size.y * 3))
Global.Tile_Mode.BOTH:
return Rect2(-Global.current_project.size, Global.current_project.size * 3)
return Rect2(Vector2(0,0),Global.current_project.size)
func _get_draw_image() -> Image: