This commit is contained in:
shenjack 2023-06-22 01:48:17 +08:00
parent 09f97c8066
commit c3e40a9566
2 changed files with 4 additions and 2 deletions

View File

@ -48,4 +48,3 @@ class DRDEBUGScreen(BaseScreen):
def on_draw(self, *dt, window: "ClientWindow"): def on_draw(self, *dt, window: "ClientWindow"):
self.main_batch.draw() self.main_batch.draw()
# print(self.window_pointer.try_if_runs)

View File

@ -123,7 +123,7 @@ class SR1ShipRender(BaseScreen):
self.part_box_batch = Batch() self.part_box_batch = Batch()
self.part_batch = Batch() self.part_batch = Batch()
self.part_group = Group() self.part_group = Group()
self.debug_label = Label(x=20, y=main_window.height - 20, font_size=DR_status.std_font_size, self.debug_label = Label(x=20, y=main_window.height - 50, font_size=DR_status.std_font_size,
text='SR1 render!', font_name=Fonts.微软等宽无线, text='SR1 render!', font_name=Fonts.微软等宽无线,
width=main_window.width - 20, height=20, width=main_window.width - 20, height=20,
anchor_x='left', anchor_y='top') anchor_x='left', anchor_y='top')
@ -220,6 +220,9 @@ class SR1ShipRender(BaseScreen):
self.drawing = False self.drawing = False
raise GeneratorExit raise GeneratorExit
def on_resize(self, width: int, height: int, window: "ClientWindow"):
self.debug_label.y = height - 50
def render_ship(self): def render_ship(self):
if self.textures is None: if self.textures is None:
self.load_textures() self.load_textures()