XML GUI editor

Flesh out your ideas for new or improved Inkscape features before submitting a request.
Sidar
Posts: 11
Joined: Fri Dec 25, 2009 10:37 am

XML GUI editor

Postby Sidar » Tue Nov 29, 2011 4:40 am

Hi,

I'm using Inkscape as a level editor and while it's "ok" to work with the build in xml editor to set up properties; I just wish it was more integrated the same way you would change color or whatever.

This is how I would imagine it if you were to click an object ( these attributes might not be realistic but it's about the idea)

Image

Since im working with some designers this approach would be far better than the current xml editor.
Think of custom tags I would use for my gameobjects( can't see it in the image but a + button could be imagined with it ).
I think others will find their reason to see it like this as well.

Just putting it out there, it would be awesome if we ever see something like that in inkscape.

User avatar
LiquidAsh
Posts: 71
Joined: Fri Apr 22, 2011 11:35 pm
Contact:

Re: XML GUI editor

Postby LiquidAsh » Tue Nov 29, 2011 6:30 am

I'm also using inkscape as a game level editor. I'm in the process of adding ways to edit game-specific attributes on objects, and am currently heading in the direction of having the users enter text as either an object description field or as hide-able grouped graphics. If your suggesting is aimed at a similar goal, I'll be interested in hearing what kind of game-specific data you are interested in encoding. I plan to post a demo video of how I'm approaching this problem by the end of this week (hopefully).

Here are a couple of comments regarding two other interpretations I have from your suggestion: It seems like most of the information in your example can be edited more easily with inkscape's tools than through these kinds of numerical values(?). If you are interested in providing an interface to edit all of the svg in a file (including extra game-specific markup), there are many visual xml editors on the market. I haven't worked with any enough to make a recommendation, but a google search for "visual xml editor" should give you a good start.

Best!

Sidar
Posts: 11
Joined: Fri Dec 25, 2009 10:37 am

Re: XML GUI editor

Postby Sidar » Tue Nov 29, 2011 9:30 am

I have to admit my "mock-up" didn't really conform to what I was aiming for. The "data" doesn't really suggest anything to custom attributes. Of course it would be easier to use the inkscape tools adjust these parameters. But the idea was more so that you get a clear and more integrated "editing" layout which fits with the rest of the software.
In my case it's rather simple. I just use the simple circle objects created with Inkscape, read the matrix and apply it ( most objects in our game are circles). But in the end the level designer can also pick the texture, set various properties for each object etc. It's in the end not for me but for them. The current xml editor in inkscape isn't inviting at all. I want these "level-designers" in my project to work directly from Inkscape rather than to use different applications.

I would like to take it a step further and explain a much "complexer" idea which builds on my original:

What if Inkscape had an "Object GUI layout" creator for objects.
The idea is to create specific GUI layouts for objects ( I.E. level properties, player, enemies objects, whatever ) with specific attributes and properties. Which then you can assign to an object in your workspace. These GUI layouts are stored in a "template" library instead of in your SVG. So that they could be used again for multiple files.

Take a look at the Unity3D interface:
Image
It's just so much more easy if we were to use inkscape as more of unified tool than to rely on other xml editors or the not so inviting xml editor build in.

Imagine creating a layout where you can add sliders with min and max values, boolean types, string/numeral fields, whatever data you need to add. And then assign the object to an instance of the GUI layout. The assigned object automatically gets all the fields in the GUI layout injected into its xml tags/node. Any changes made are directly applied ( instead of hitting the "set" button ). And when you need to adjust, removing/adding fields, it will be updated for ALL objects which use the GUI template.

Now that when I add functionality to my level template, I need to get an instance, adjust the xml by hand and then make sure there are no old instances laying around. My it's a pain in the ass for level designers to do stuff over and over. And yes I could use more of a sophisticated xml application. But I see no reason why I should push my team mates into technical stuff and extra software while it should be handled all in one package. I understand that Inkscape is primarily meant for visuals, however Inkscape has great potential because of the SVG format and it should really expand it.

O well that's just something I would like to see, probably never will.... :D


Return to “Inkscape Ideas”