Monday, July 21, 2014

NPC Editor

In the last week I recently made a lot of progress on the npc editor!  
Now I'm going through the hard part, which is after someone adds an action to an action_set and then changing that action's type (from clicking on a dropdown that adds the appropriate buttons and boxes for that action type).

The next step after I get all the UI behavior down is making each interaction modify the xml string behind the scenes, then making the decision of whether or not this is just an xml generator to copy paste from, or something that allows you to save the xml directly to the npc's properties in the sqlite db (select a map name and then list all npc's in a dropdown, that sort of thing).  Of course, if db manipulation occurs, syncing object properties from the tmx file created in Tiled comes into question - I might just make an option to directly insert xml into the tmx files themselves...I dunno, we'll see.  The important part is easy xml generation and modification (being able to paste a given xml string into an input box, hit load and interact with it).


I have different widgets outlined in different colors, and the layout isn't finalized yet either.  

No comments:

Post a Comment