Adding a 2D Editor into a 3D Editor

I'm planning to add a new feature to CopperCube: 2D Overlays, in order to make it possible to easily create 2D menus, buttons, health indicators and similar. For this, I need an editor for 2D elements, since CopperCube currently is only able to edit 3d scenes. I thought about using an external editor or writing a simple 2d editor directly integrated into CopperCube, but I found a better way: Simply reuse the 3d editor and make it also edit 2d items:


The 2D item on the left also has those arrows as the 3D item on the right and in fact, this is the same object. The editor doesn't really know anything about that item being 2D instead of 3D, only the code of the arrows needed a bit of adaption to let them draw themselves in 2D. I was quite surprised after everything worked already with very few code adaptions.

And I think this also works great from a user perpective: The 2D editor works exactly as the 3D one, no need to new short cuts or special menu items. I hope this feature makes it into a release before the end of the year.

two comments, already:

Nice feature. Well designed software most of the time makes it easy to add new features. Btw: is it yet possible to save .irr files from coppercube?
Brainsaw (link) - 15 12 09 - 07:17

not yet, but it’s planned. Not sure if it will make it into the next release, but let’s see.
niko - 15 12 09 - 18:08


Name:  
Remember personal info?
yes
no
Email (optional):
URL (optional):
Enter "layered" (antispam):
Comment:Emoticons / Textile

  ( Register your username / Log in )

Notify: Yes, send me email when someone replies.  

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.
Note: If you type in your email adress above, it will be visible to other visitors, although it will be hidden for bots using javaScript.