丢点正经东西上去

This commit is contained in:
shenjack 2023-09-11 00:08:52 +08:00
parent dc0b49ffd7
commit ccb1c76baf
Signed by: shenjack
GPG Key ID: 7B1134A979775551
3 changed files with 29 additions and 1 deletions

View File

@ -24,6 +24,8 @@ class BaseScreen(EventDispatcher):
DR 页面API DR 页面API
""" """
screen_name: str = 'BaseScreen'
def __init__(self, main_window: ClientWindow): def __init__(self, main_window: ClientWindow):
super().__init__() super().__init__()
self.focus = False self.focus = False

24
mods/dr_game/menu.py Normal file
View File

@ -0,0 +1,24 @@
# -------------------------------
# Difficult Rocket
# Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com
# All rights reserved
# -------------------------------
from Difficult_Rocket.client import ClientWindow
from Difficult_Rocket.api.screen import BaseScreen
# from . import DR_mod_runtime
class Menu(BaseScreen):
"""
DR game 菜单
"""
name = 'DR_game_menu'
def __init__(self,
main_window: ClientWindow):
super().__init__(main_window)
# 占位, 高二看看能不能咕出来点啥 (20230911)
# 欸呀, 正好是 911 纪念日哦

View File

@ -10,7 +10,7 @@ import logging
import traceback import traceback
from pathlib import Path from pathlib import Path
from typing import List, TYPE_CHECKING, Dict, Optional, Generator, Tuple from typing import List, Dict, Optional, Generator, Tuple
from pyglet.gl import gl from pyglet.gl import gl
from pyglet.math import Mat4 from pyglet.math import Mat4
@ -66,6 +66,8 @@ class SR1ShipRenderStatus(Options): # NOQA
class SR1ShipRender(BaseScreen): class SR1ShipRender(BaseScreen):
"""用于渲染 sr1 船的类""" """用于渲染 sr1 船的类"""
screen_name = 'DR_game_sr1_ship_render'
def __init__(self, def __init__(self,
main_window: ClientWindow): main_window: ClientWindow):
super().__init__(main_window) super().__init__(main_window)