diff --git a/Difficult_Rocket/gui/widget/button.py b/Difficult_Rocket/gui/widget/button.py index f9935ac..7c40473 100644 --- a/Difficult_Rocket/gui/widget/button.py +++ b/Difficult_Rocket/gui/widget/button.py @@ -132,11 +132,5 @@ class PressTextButton(widgets.WidgetBase): self.back_rec.height = self._height ... - def on_press(self, x, y): - # import random - self.value += "1" - # next_rgb = [random.randint(50, 255) for _ in range(3)] - # self.untouched_color = (*next_rgb, 255) - PressTextButton.register_event_type('on_press') diff --git a/mods/dr_game/sr1_ship.py b/mods/dr_game/sr1_ship.py index 06835de..f44129c 100644 --- a/mods/dr_game/sr1_ship.py +++ b/mods/dr_game/sr1_ship.py @@ -281,8 +281,9 @@ class SR1ShipRender(BaseScreen): def draw_batch(self, window: ClientWindow): if self.status.draw_done: self.render_d_label.text = f'x: {self.group_camera.view_x} y: {self.group_camera.view_y}' - self.render_d_label.position = self.group_camera.view_x + (self.window_pointer.width / 2), self.group_camera.view_y + ( - self.window_pointer.height / 2) + 10, 0 # 0 for z + self.render_d_label.position = self.group_camera.view_x + ( + self.window_pointer.width / 2), self.group_camera.view_y + ( + self.window_pointer.height / 2) + 10, 0 # 0 for z self.render_d_line.x2 = self.group_camera.view_x self.render_d_line.y2 = self.group_camera.view_y @@ -484,7 +485,6 @@ class SR1ShipRender(BaseScreen): self.window_pointer.view = value - if __name__ == '__main__': from objprint import op