Highlights for this update:
- Context-sensitive auto-completion in the script editor!
- Real-time error reporting in the script editor
- You can now use TypeScript 1.5 features including block-scoped
let,constandfor(let ITERATOR of ARRAY) ... - New text rendering plugin, supports both vector fonts and bitmap fonts
- You can now remove servers from the launcher's server list
- Better error reporting in the launcher
- 14 out of 16 modules have been ported from CoffeeScript to TypeScript. We're almost done!
- New
EventEmitterAPI plugin, lets you emit and listen for events - Many bugfixes (and probably a few new ones, let's be honest, we ported a lot of code :D)
Plugin development
Component editors
The arguments passed to a component editor class constructor have changed (the first one was removed, it was just a copy of SupClient which is a global):
class MyComponentEditor {
constructor(tbody: HTMLDivElement, config: any, projectClient: SupClient.ProjectClient, editConfig: any) {
// ...
}
}
Component updaters
Component updater classes should have a destroy() method (no arguments). It will be called when a component is destroyed.
If your component editor has subscribed to asset(s) or resource(s), make sure to unsubscribe within your destroy method.