Adam's Lair Forum
https://forum.adamslair.net:80/

Developing an editor plugin, almost there, but...
https://forum.adamslair.net:80/viewtopic.php?f=16&t=1042
Page 1 of 1

Author:  eyeliner [ 2017/01/13, 00:55 ]
Post subject:  Developing an editor plugin, almost there, but...

Hi guys!

I am developing a .tmx importer. All is going good, I have a system set up that parses the file, and imports the tileset .png's, converting them to tilesets that Duality can use.

I just need to be able to edit the tile sizes, but I'll get there.

Now, I just want to be able to drag and drop the .tmx into the scene viewer, but can't seem to get how that particular event is triggered.

Could someone point me in the right direction?

I was able to figure the rest out on my own by perusing some other source files of other plugins, but the drag and drop operation eludes me.

I have even setup a github project, so you know I'm serious! For some reson, my friend's internet failed me, and I was unable to sync the project to it's latest form, so some code is weird if you dare to look at it and manage to survive. Rest assured, it
gets the possible multiple tilesets, layers and stuff, though it doesn't actually do anything for now.

Tomorrow I'll do it properly, promise.

Author:  Cross [ 2017/01/13, 10:47 ]
Post subject:  Re: Developing an editor plugin, almost there, but...

Hey ^^

For the drag and drop thing, you need inherit from the DataConverter-Class.

I'm also writing a Tmx-Plugin. On github you can see, how I solved your problem:

https://github.com/ChristianGreiner/dua ... FromTmx.cs

Here is my github project page:
https://github.com/ChristianGreiner/duality-tiled

This is my first editor plugin... so maybe there is a better way to implement this tmx-importer :]

Author:  eyeliner [ 2017/01/13, 12:11 ]
Post subject:  Re: Developing an editor plugin, almost there, but...

Oh, you are doing it already!

Guess I'll move on over to other things, then. Funnily, I had the feeling it was the DataConverter class. I just didn't know how it was triggered.

Guess I'll find other things to train. :)

Thanks for the heads up ^^

Author:  eyeliner [ 2017/01/16, 15:55 ]
Post subject:  Re: Developing an editor plugin, almost there, but...

Just a heads up. Considering that a .tmx importer is already underway, I used the skeleton of my plugin to make an OGMO Level Editor importer.

Though it is a bit more obscure than Tiled, some features make it an amazing tool and sometimes a better alternative than Tiled.

Edit: For that, of course, I've set up a github page for the project so you all can point and laugh at my coding. :D

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/