丢点正经东西上去
This commit is contained in:
parent
dc0b49ffd7
commit
ccb1c76baf
@ -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
24
mods/dr_game/menu.py
Normal 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 纪念日哦
|
||||||
|
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user