mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-26 03:44:42 -04:00
Minor guide and rulers performance boost
Got rid of their _process methods, Guides have input instead, and the rulers get updated when the camera zoom or offset change.
This commit is contained in:
parent
06d19c8e48
commit
b21455cfd0
6 changed files with 34 additions and 30 deletions
|
@ -13,8 +13,8 @@ func _ready() -> void:
|
|||
width = 0.1
|
||||
default_color = Global.guide_color
|
||||
|
||||
# warning-ignore:unused_argument
|
||||
func _process(delta : float) -> void:
|
||||
|
||||
func _input(_event : InputEvent):
|
||||
width = Global.camera.zoom.x * 2
|
||||
mouse_pos = get_local_mouse_position()
|
||||
var point0 := points[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue