mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-15 04:32:35 +00:00
Request a repaint when popping and shifting states
This commit is contained in:
@@ -141,10 +141,14 @@ module CyberarmEngine
|
||||
|
||||
def pop_state
|
||||
@states.pop
|
||||
|
||||
current_state.request_repaint if current_state&.is_a?(GuiState)
|
||||
end
|
||||
|
||||
def shift_state
|
||||
@states.shift
|
||||
|
||||
current_state.request_repaint if current_state&.is_a?(GuiState)
|
||||
end
|
||||
|
||||
def has_focus?
|
||||
|
||||
Reference in New Issue
Block a user