这波必须得水一手了,要不然commit太少了(确信
This commit is contained in:
parent
159a717bd0
commit
dc0b49ffd7
@ -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')
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user