Skip to content
Snippets Groups Projects
Commit e7e93518 authored by dos's avatar dos Committed by ave
Browse files

py,st3m: BaseView: Add is_active method

parent 4cce150e
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,11 @@ class BaseView(View):
def think(self, ins: InputState, delta_ms: int) -> None:
self.input.think(ins, delta_ms)
def is_active(self) -> bool:
if not self.vm:
return False
return self.vm.is_active(self)
class ViewTransition(ABCBase):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment