This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Testing world scripting functionality | |
*/ | |
var WorldScripting = {}; | |
WorldScripting.scriptAction = tiled.registerAction("WorldScripting", function (action) { | |
var state = { | |
worlds: tiled.worlds, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var AddProjectProperties = {}; | |
AddProjectProperties.action = tiled.registerAction("ProjectCustomProperties", function (action) { | |
tiled.project.setProperty('newString', 'hello world'); | |
tiled.project.setFloatProperty('newRatio', 0.7); | |
tiled.project.setColorProperty('newColor', "#aabbaa"); | |
}); | |
AddProjectProperties.action.text = "Add Project Properties"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import pathlib | |
import os | |
import re | |
def fix_locale_code(code): | |
# https://docs.godotengine.org/en/stable/tutorials/i18n/locales.html | |
return code.replace("-", "_") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------------------------------- | |
# Nimbus note HTML export to markdown converter | |
# Extract all zip files containing 'note.html' and convert to markdown | |
# | |
# Setup: | |
# 1) install python 3 for your OS | |
# 2) install pandoc https://github.com/jgm/pandoc/releases/tag/2.11.4 | |
# on Windows, the .msi will automatically add pandoc to your $PATH | |
# otherwise add it to your $PATH. | |
# 3) save this script in the directory where your HTML exports were |