fake error handling for connect()

This commit is contained in:
Luke Hubmayer-Werner 2023-08-07 01:15:55 +09:30
parent 6c5097728e
commit c0dff664eb
1 changed files with 10 additions and 2 deletions

View File

@ -206,8 +206,16 @@ static func game_time_frames_to_hhmm(game_time_frames: int) -> String:
return '%d:%02d' % [game_hours, game_minutes % 60]
func _ready():
shrink_timer.connect('timeout', self, 'shrink_to_integer')
match shrink_timer.connect('timeout', self, 'shrink_to_integer'):
OK:
pass
_:
assert(false)
shrink_timer.one_shot = true
add_child(shrink_timer)
get_tree().connect('screen_resized', self, 'update_window_scale')
match get_tree().connect('screen_resized', self, 'update_window_scale'):
OK:
pass
_:
assert(false)
OS.set_min_window_size(base_resolution*2)