From 7e0903125746a88233fdddbb89de4cfca854b5d3 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Mon, 30 Jan 2023 08:37:56 -0600 Subject: [PATCH] Fixed Boot animation not requesting repaint every frame --- lib/states/boot.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/states/boot.rb b/lib/states/boot.rb index 4ff062d..392ab1a 100644 --- a/lib/states/boot.rb +++ b/lib/states/boot.rb @@ -30,15 +30,20 @@ module TAC def update super + request_repaint + @title_font.x = window.width / 2 - @title_font.width / 2 @title_font.y = (window.height / 2 - (@logo.height / 2 + @title_font.height)) * @title_animator.transition @transition_color.alpha = @transition_animator.transition - push_state(@next_state) if @transition_color.alpha >= 255 + if @transition_color.alpha >= 255 + pop_state + push_state(@next_state) + end end - def button_up(id) + def button_down(id) super push_state(@next_state)