2019-12-17 15:05:27 +10:30
|
|
|
extends Node2D
|
|
|
|
|
2020-05-02 16:09:51 +09:30
|
|
|
onready var root := $'/root'
|
|
|
|
|
2019-12-17 15:05:27 +10:30
|
|
|
func _draw():
|
2020-05-02 16:09:51 +09:30
|
|
|
var screen_size = root.get_visible_rect().size
|
2019-12-17 15:05:27 +10:30
|
|
|
var screen_height = max(screen_size.x, screen_size.y)
|
|
|
|
draw_rect(Rect2(-screen_height/2, -screen_height/2, screen_height, screen_height), GameTheme.screen_filter)
|
|
|
|
|
|
|
|
func _ready():
|
2020-05-02 16:09:51 +09:30
|
|
|
GameTheme.connect('screen_filter_changed', self, 'update')
|