mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-16 05:42:35 +00:00
Fixed Boot animation not requesting repaint every frame
This commit is contained in:
@@ -30,15 +30,20 @@ module TAC
|
|||||||
def update
|
def update
|
||||||
super
|
super
|
||||||
|
|
||||||
|
request_repaint
|
||||||
|
|
||||||
@title_font.x = window.width / 2 - @title_font.width / 2
|
@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
|
@title_font.y = (window.height / 2 - (@logo.height / 2 + @title_font.height)) * @title_animator.transition
|
||||||
|
|
||||||
@transition_color.alpha = @transition_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
|
end
|
||||||
|
|
||||||
def button_up(id)
|
def button_down(id)
|
||||||
super
|
super
|
||||||
|
|
||||||
push_state(@next_state)
|
push_state(@next_state)
|
||||||
|
|||||||
Reference in New Issue
Block a user