Topic: [PATCH] Editor patch
I added/fixed/removed some things in the editor, and now I want to make this patch public, since it seems a new official version of TW isn't going to come soon (and we can't be sure what changes the editor is going to have, if there are changes at all).
I won't provide a .patch file for this, I will only upload the changed source files and some new windows binary (=teeworlds.exe for those who don't know). I have to say that I don't know if everything is working for you, like it's for me, so I do not take any responsibility if this patch brakes your system/pc/maps.
Before I'm uploading the files, I'm posting the changes I made and wait for some comments (I don't want to be an ass, but I want to be sure If it's ok to upload this patch). You can also request some additional changes, but since I'm only some cpp noob, I can't promise to add the requested feature/fix/whatever.
Changelist:
Overall:
- Value selector with "<" and ">" now changes value by 10 when right clicked (was 5)
- When saving, the original map is renamed to [oldmapname]_[somenumbers].map, then the new map is saved using the original name.
- Teeworlds crashed on saving when using non square graphics, this should be fixed. (Don't use non-square images for tileset in the map, this will mess up the tileset after saving. Only use non-square images for quads.)
- Removed "Make Collision" button from Game layer.
- Removed "Save" from File menu since it isn't working.
- Using +, - and * keys for zooming is now also possible when GUI is disabled (press TAB)Quads:
- "Add Quad" Button only visible when some Quad Layer is selected
- Color drag selector replaced with shifter ("<" and ">" buttons)
- Added X and Y value shifter right below color selectors
- Added X and Y value shifter for pivpt in pivot popup (moves pivot AND points)
- Added "Fix coordinates" button to pivot popup (usefull to get multiple quads on the same position)Envelopes:
- Left click + shift only changes time (x-axis) instead of time AND value.
- Press and hold ctrl while moving a point for more accurate movement (if the point doesn't move, move your mouse quicker)
- Holding shift while creating a new point will create the point with value 0
- Holding ctrl while creating a new point will create the point with value 1
- Added delete button in envelopes editor (NOTE: every quad which used the deleted envelope will be set to use -1, so you have to assign a new envelope yourself)
Download: http://shmafoo.brainsware.org/0.4.2_editor_patch.rar