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
/* | |
The MIT License (MIT) | |
Copyright (c) 2015-2017 Secret Lab Pty. Ltd. and Yarn Spinner contributors. | |
Permission is hereby granted, free of charge, to any person obtaining a | |
copy of this software and associated documentation files (the "Software"), | |
to deal in the Software without restriction, including without limitation | |
the rights to use, copy, modify, merge, publish, distribute, sublicense, |
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 TilesetImageTest = {}; | |
TilesetImageTest.action = tiled.registerAction("TilesetImages", function (action) { | |
var dialog = new Dialog('Tile Image Test'); | |
var tilesRendered = 0; | |
if (tiled.activeAsset != null && tiled.activeAsset.isTileset){ | |
var set = tiled.activeAsset; | |
for (tile of set.tiles){ |
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
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using Godot; | |
using YarnSpinnerGodot; | |
/// <summary> | |
/// Interface to YarnSpinner that allows getting and setting of save data from | |
/// dialogue. Also handles temporary variables that aren't committed to save data |
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 |