feat: add Sprite Splitter tool and support X/Y offsets in Inset Crop Tool (v1.3.0)
This commit is contained in:
4
tool.py
4
tool.py
@@ -11,6 +11,7 @@ from shiny_maker import app as shiny_app
|
||||
from rotate_webtool import app as flipper_app
|
||||
from sprite_merger import app as merger_app
|
||||
from inset_crop_tool import app as inset_app
|
||||
from sprite_splitter import app as splitter_app
|
||||
|
||||
app = FastAPI(title="Game Dev Suite")
|
||||
|
||||
@@ -25,6 +26,7 @@ NAVBAR_HTML = """
|
||||
<a href="/flipper/" class="text-sm text-slate-300 hover:text-blue-400 transition">🔄 Flipper</a>
|
||||
<a href="/merger/" class="text-sm text-slate-300 hover:text-blue-400 transition">🧩 Merger</a>
|
||||
<a href="/inset/" class="text-sm text-slate-300 hover:text-blue-400 transition">✂️ Inset Crop</a>
|
||||
<a href="/splitter/" class="text-sm text-slate-300 hover:text-blue-400 transition">📦 Splitter</a>
|
||||
</nav>
|
||||
"""
|
||||
|
||||
@@ -57,6 +59,7 @@ app.mount("/shiny", shiny_app)
|
||||
app.mount("/flipper", flipper_app)
|
||||
app.mount("/merger", merger_app)
|
||||
app.mount("/inset", inset_app)
|
||||
app.mount("/splitter", splitter_app)
|
||||
|
||||
# 首頁入口
|
||||
@app.get("/", response_class=HTMLResponse)
|
||||
@@ -79,6 +82,7 @@ async def index():
|
||||
<a href="/flipper/" class="p-6 bg-slate-800 rounded-2xl border border-slate-700 text-center hover:border-blue-500 transition block">🔄 Flipper</a>
|
||||
<a href="/merger/" class="p-6 bg-slate-800 rounded-2xl border border-slate-700 text-center hover:border-blue-500 transition block">🧩 Merger</a>
|
||||
<a href="/inset/" class="p-6 bg-slate-800 rounded-2xl border border-slate-700 text-center hover:border-blue-500 transition block">✂️ Inset Crop</a>
|
||||
<a href="/splitter/" class="p-6 bg-slate-800 rounded-2xl border border-slate-700 text-center hover:border-blue-500 transition block">📦 Splitter</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user