May 31, 2011 § 8 Comments
Last week I got it sort-of done. Like, the “It looks like it works but it really doesn’t do much” kind of done like the Map editor was before when I showed a picture of it. Anyway, this is what it will look like more or less when it’s finished.
Let’s see uh, the entity’s Category/Subcategory/Name/Preview Rect is actually stored in an external .txt file for easy modification. I’m pretty pleased with how it has turned out so far, despite having some frustration getting it to work in the first place. An entity can belong to multiple categories so you can organize by say, entity types, or by what’s on what tileset, or something else absolutely ridiculous if you were so inclined. The reason Critter(g) ‘s preview is messed up is because the engine is of course using the two entity spritesheets that are loaded for that map, so if it’s not supposed to be there then it won’t show up right in the preview either.
Missing are again, the buttons (for some reason it seems I don’t like doing those). I think I planned to have a button for “Edit Npc.tbl info”, and “Save PXE”.
If you notice, hovering over an entity shows a list of the names of all the entities on that tile. I still need to implement the like, exact scheme of what clicks do what in which circumstances, but my general idea is such:
Left-click selects, ctrl-left multi-selects, shift-left to select all of a certain type (?). Left-clicking a non-entity-containing square will deselect all (Unless ctrl is pressed)
If a single entity is selected, its stats will be displayed on the right and will be editable.
If multiple are selected then uh, the stats on the right will probably still show for the first but they won’t be editable (this is because I’m lazy)
Groups of selected entities must be drag-able. Still not sure how to differentiate between a click that’s supposed to mean “drag” and a click that’s supposed to mean “Select/Unselect”.
right-click places an entity with the stats displayed on the right. OR MAYBE ctrl- or shift-right could be drag.
ctrl-c will copy all the selected entities to the ‘clipboard’, and ctrl-v will paste them. Somehow. When I say clipboard I don’t mean the actual clipboard but rather a fake internal one I am going to hodgepodge together probably.
Wow, that was a long post! Fun fact: I just decided on how all those mouse clicks would work as I wrote them.