mirror of
https://github.com/chaosz0ne/tilesetCopyrighter.git
synced 2025-06-29 20:06:11 +02:00
Merge branch 'hauptast' of github.com:chaosz0ne/tilesetCopyrighter into hauptast
This commit is contained in:
commit
27831cdc3a
1 changed files with 15 additions and 0 deletions
15
README.md
Normal file
15
README.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# tilesetCopyrighter
|
||||||
|
Ein PY-Skript, mit dem tiled-Editor-Maps bearbeitet werden können
|
||||||
|
fügt je Tileset eine custom-Property *tilesetCopyright* (string) hinzu und gibt ihr eine Lizenz.
|
||||||
|
Die Lizenz wird in Abhängigkeit des Bildnamens (xyz.png) ermittelt.
|
||||||
|
Infos dazu stehen in *rechte.json* (bitte gerne erweitern für eigenen Bedarf und als Pull Request für alle)
|
||||||
|
|
||||||
|
Das Skript kann idempotent (immer wieder) ausgeführt werden und es überschreibt die bisherigen copyright infos.
|
||||||
|
Aber auch nur das.
|
||||||
|
Leider ist die Formatierung des map-JSON erhelbich anders als Tiled es macht. Also muss man es mit Tiled nochmal hübsch speichern.
|
||||||
|
|
||||||
|
Aufruf:
|
||||||
|
|
||||||
|
python3 injectTilesetCopyright.py meinemap.json
|
||||||
|
|
||||||
|
-> danach ist meinemap.json aktualisiert.
|
Loading…
Add table
Add a link
Reference in a new issue