Customiza zoom in tile map editor?
by Matthews_30 · in Torque Game Builder · 11/06/2005 (7:23 am) · 1 replies
In "View" menu you can select 0.1, 05, 1.0, etc zooming, i want to know if it is possible to add 0.3 and 0,7 zooming?
or is there a potential workaround?
matt.
or is there a potential workaround?
matt.
Associate Melv May
If you look in the tileEditor mod for the file "editorScreen.cs" and look for a function "readTileLayerSelection()", you'll see the script there. It's pretty simple to alter/add extra entries to the menu.
Menus are split into two components; a call to add the text to the menu and a call to specify what it does when the user selects it.
Use the "addMenuItem()" call to do just that and use the "scriptCommand" to specify what it does. Just make sure that if you add an item that you keep the ID numbers unique and that the item matches your script command.
As soon as you look at the code, it'll become self evident how to add/alter it.
Good luck,
- Melv.