Nightinggale
Deity
- Joined
- Feb 2, 2009
- Messages
- 5,378
That is precisely my plan. You select a file, then a type in that class and it will display everything based on the schema file. That's the essence of my primary goal with all the GUI stuff.So one problem I have when editing my xml (this one makes me so tired sometimes!)
Is adding in a tag to an existing entry. Trying to make sure I put it in the right place so that the order does not break. (Especially when using entries that do not need to have every tag.) So maybe something that lets you choose an entry like UNIT_INFANTRY, then a list of all unitinfo tags, then you select the one(s) you want and it builds or adds it in the right place(s). Something like that.
However reading you write this now makes me realise a blunder in my planning. I planned on adding a "new" button, which would then add a new instance to the end. However I just realised that order matters. Well I knew that, but my wishful thinking had forgotten about it. I need some sort of Type reorder feature as well and perhaps something like click on a type and then the new button to make a new type right after the selected one

I have been thinking of some default values, possibly stored as comments in the schema files. However I will start by making the xml file editable first with a GUI, then worry about default values.Perhaps another one for tech tree type situations is something that 'auto fills' the placement order. I don't know exactly what I am thinking, but for example I am thinking of building a tech tree from scratch, and having some way to put them in order, or just an easier way to organise them in the right order, click a button and it then builds that order.. Don't know my brain has gone a bit squishy right now..
For now I will just carry on and try to make the window itself with the 4? areas it needs to contain and then fill it with xml data. Right now I will be happy if I can just draw the damn thing like I want to. Ok drawing them doesn't seem to be the biggest problem anymore, but 4 empty blocks aren't that interesting.