This commit is contained in:
沈瑗杰 2021-02-27 20:55:08 +08:00
parent 94eb26ae22
commit 2de359c279
2 changed files with 14 additions and 3 deletions

View File

@ -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

View File

@ -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'
}
},
}
}