diff --git a/injectTilesetCopyright.py b/injectTilesetCopyright.py index 1a3ee96..551224e 100644 --- a/injectTilesetCopyright.py +++ b/injectTilesetCopyright.py @@ -1,3 +1,16 @@ +import json + +print("Tiled-Editor Copyright-Info nach rc3.world-Vorgaben hinzufügen") +print("Datei rechte.json passend befüllen, dann Aufruf") +print("{$0} ") +print("Die wird modifiziert! Vorher eigene Änderungen committen!") +print("") + with open("rechte.json", "r") as rechte_file: rechte = json.load(rechte_file) + print("Folgende Rechte wurden zugeordnet:") + for recht in rechte: + print(recht["name"] + " zu -> " + recht["copytxt"]) + #json.dump(rechte, rechte_file, indent=2) + with open() diff --git a/rechte.json b/rechte.json index 91a8d4f..326d7ec 100644 --- a/rechte.json +++ b/rechte.json @@ -1,10 +1,10 @@ [ - { - name: "floortileset.png", - copytxt: "CC0BY blatut" -}, -{ name: "floortileset.png", - copytxt: "CC0BY blatut" - -} -] + { + "name": "floortileset.png", + "copytxt": "CC0BY blatut" + }, + { + "name": "chemnitz_al.png", + "copytxt": "CC0BY Chaostreff Chemnitz https://chch.it" + } +] \ No newline at end of file