2022-05-11 11:11:39 +08:00
|
|
|
# -------------------------------
|
|
|
|
# Difficult Rocket
|
2022-06-27 16:51:14 +08:00
|
|
|
# Copyright © 2021-2022 by shenjackyuanjie 3695888@qq.com
|
2022-05-11 11:11:39 +08:00
|
|
|
# All rights reserved
|
|
|
|
# -------------------------------
|
|
|
|
|
2022-11-26 21:48:55 +08:00
|
|
|
import typing
|
2022-05-11 11:11:39 +08:00
|
|
|
|
2022-05-25 09:16:38 +08:00
|
|
|
from Difficult_Rocket.command.tree import CommandTree
|
2022-05-11 11:11:39 +08:00
|
|
|
|
|
|
|
|
2022-11-26 21:48:55 +08:00
|
|
|
if typing.TYPE_CHECKING:
|
|
|
|
from Difficult_Rocket.client import ClientWindow
|
|
|
|
|
|
|
|
|
2022-05-11 11:11:39 +08:00
|
|
|
class BaseScreen:
|
2022-11-26 21:48:55 +08:00
|
|
|
def __init__(self, main_window: "ClientWindow"):
|
2022-09-03 22:35:57 +08:00
|
|
|
self.window_pointer = main_window
|
2022-05-25 09:16:38 +08:00
|
|
|
self.command_tree = None
|
|
|
|
self.create_command_tree()
|
2022-05-11 11:11:39 +08:00
|
|
|
|
|
|
|
def update(self, tick: float):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def create_command_tree(self):
|
2022-05-25 09:16:38 +08:00
|
|
|
self.command_tree = CommandTree({})
|
2022-05-11 11:11:39 +08:00
|
|
|
|
|
|
|
|
|
|
|
class DRScreen(BaseScreen):
|
2022-11-26 21:48:55 +08:00
|
|
|
def __init__(self, main_window: "ClientWindow"):
|
2022-05-11 11:11:39 +08:00
|
|
|
super().__init__(main_window)
|
2022-09-03 22:35:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
class DRDEBUGScreen(BaseScreen):
|
2022-11-26 21:48:55 +08:00
|
|
|
def __init__(self, main_window: "ClientWindow"):
|
2022-09-03 22:35:57 +08:00
|
|
|
super().__init__(main_window)
|