fake error handling for connect()
This commit is contained in:
parent
6c5097728e
commit
c0dff664eb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue