This file contains hidden or 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
| /* | |
| * All recent hotspots (as of 2009) *really* like to have the natural code | |
| * | |
| * if (guardExpression) { | |
| * throw new BadException(messageExpression); | |
| * } | |
| * | |
| * refactored so that messageExpression is moved to a separate | |
| * String-returning method. | |
| * |
This file contains hidden or 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
| //% root!TestDialogue.js | |
| // ^ says "run the original TestDialogue.js first" | |
| (function() { // boilerplate, it hides some stuff so you don't pollute the script for other mods | |
| var oldStep2 = step2; | |
| step2 = function() { | |
| var orig = oldStep2(); | |
This file contains hidden or 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 loadAssets = function(assets) { | |
| return [ | |
| { | |
| fileName: "Portraits/adam-normal.png", | |
| type: Types["Texture"] | |
| }, | |
| { | |
| fileName: "Portraits/celt-normal.png", | |
| type: Types["Texture"] | |
| } |
This file contains hidden or 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
| //% root!Maps/Scripts/TestMap.js | |
| (function() { | |
| var a = init; | |
| init = function() { | |
| LOGGER.info("I'm an override function for " + MAP.titleName); | |
| a(); | |
| } | |
| })(); |
NewerOlder