diff --git a/bin/client.py b/bin/client.py index 6d76cbf..6a868c3 100644 --- a/bin/client.py +++ b/bin/client.py @@ -131,6 +131,8 @@ class window(pyglet.window.Window): self.textures['runtime'][runtime] = runtime_image # load button's textures for runtime in runtimes['button']: + if runtime == 'logic': + continue path = runtimes['button'][runtime] runtime_image = pyglet.resource.image(path) runtime_sprite = pyglet.sprite.Sprite(img=runtime_image, batch=self.runtime_batch, x=self.width + 1, @@ -207,6 +209,8 @@ class window(pyglet.window.Window): self.textures['runtime']['stage'].y = tool_y self.textures['runtime']['zoom'].x = 260 self.textures['runtime']['zoom'].y = tool_y + self.textures['runtime']['play'].x = 260 + self.textures['runtime']['zoom'].y = tool_y if self.button_toggled['zoom'] != -1: self.textures['runtime']['zoom_in'].x = 260 - 40 self.textures['runtime']['zoom_in'].y = tool_y + 25 + 50 diff --git a/sys_value/runtime.json5 b/sys_value/runtime.json5 index e8ba026..3cd0287 100644 --- a/sys_value/runtime.json5 +++ b/sys_value/runtime.json5 @@ -8,10 +8,17 @@ 'rotate': 'Editor/RotateButton.png', 'add_part': 'Editor/ToolbarIconAddPart.png', 'to_menu': 'Editor/ToolbarIconMenu.png', - 'part_button': 'Editor/PartButton.png', + // 'part_button': 'Editor/PartButton.png', 'stage': 'Editor/ToolbarIconStaging.png', 'zoom': 'Editor/ToolbarIconZoom.png', 'zoom_in': 'Editor/ToolbarIconZoomIn.png', - 'zoom_out': 'Editor/ToolbarIconZoomOut.png' - }, + 'zoom_out': 'Editor/ToolbarIconZoomOut.png', + 'play': 'Editor/ToolbarIconPlay.png', + 'logic': { + 'zoom': { + 'zoom_in': 'child', + 'zoom_out': 'child' + } + }, + } } \ No newline at end of file