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-08-29 00:26:14 +08:00
|
|
|
# import ctypes
|
2022-05-11 11:11:39 +08:00
|
|
|
|
|
|
|
from Difficult_Rocket.client import ClientWindow
|
2022-05-25 09:16:38 +08:00
|
|
|
from Difficult_Rocket.command.tree import CommandTree
|
2022-05-11 11:11:39 +08:00
|
|
|
|
|
|
|
|
|
|
|
class BaseScreen:
|
2022-09-03 22:35:57 +08:00
|
|
|
def __init__(self, main_window: ClientWindow):
|
|
|
|
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-09-03 22:35:57 +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):
|
|
|
|
def __init__(self, main_window: ClientWindow):
|
|
|
|
super().__init__(main_window)
|