JML wrote:My two cents:
I'd agree with RPTroll on this. It seems an awful loss of coding time (which is sparse) to develop an internal code editor instead of an easy way to export/import macros and all the campaign stuff. We won't get close to existing code editors, not talking of all other developing tools. Let's let those interested work on improving all those marvelous existing tools and focus on MapTool specific functions.
What do you think?
FYI, some things are easier when you leverage existing projects/plugins. Is doing a full fledged editor a lot of work? Sure. Can I give you syntax highlighting for MT Script keywords/functions with line numbers, undo/redo, code folding, search/replace, word wrap with a few lines of code? Yes!
I was stuck on adding MT specific keywords for a bit (lexial parser and all that can be quite ugly) but found there was a TokenMakerMaker program that pretty much did the work for me so adding it in was no more difficult than doing it in Notepad.
Looking into changing the macro editor now into a dockable window vs dialog, add a couple of buttons, and it should make editing a little easier. I thought of putting a "Button" builder as well, allowing you to select an Asset as an image with a preview.