Add exporting

This commit is contained in:
Astatin3
2024-03-19 20:43:48 -06:00
parent a5467a244c
commit 0a3ded5a1b
7 changed files with 249 additions and 13 deletions
+3 -1
View File
@@ -32,7 +32,7 @@ tabIndex = 0
tabs = [
pathEditor.pathEditor(render),
buttonEditor.buttonEditor(render, pathEditor),
export.export(pg, render)
export.export(pg, render, buttonEditor)
]
tabs[tabIndex].load()
@@ -51,6 +51,7 @@ def addTab(i):
def onClick(pos):
global tabIndex
tabs[tabIndex].unload()
tabIndex = i
tabs[tabIndex].load()
render.renderElements(pos)
@@ -100,6 +101,7 @@ while running:
elif event.type == pg.KEYDOWN:
tabs[tabIndex].keyDown(event.key)
if event.key == pg.K_TAB:
tabs[tabIndex].unload()
tabIndex = (tabIndex + 1) % len(tabs)
tabs[tabIndex].load()
render.renderElements(pg.mouse.get_pos())