RoyAwesome / WorldSmith

Open source Dota 2 Mod Editor
MIT License
59 stars 28 forks source link

Document Management. #27

Closed RoyAwesome closed 9 years ago

RoyAwesome commented 9 years ago

Many documents in a dota addon can be opened in different contexts.

Most .txt files can be opened as either a Plain Old Text file or as a Key-Value file (parse the KVs, display them in a grid view). Something should be created to allow editing in both contexts, then saving one editor saves the file and reloads both editors with the new data.

Certain files (npc_units_custom.txt, npc_items_custom.txt, and so on) should be opened with their own special editor for modifying properties. They are one big file to hold a ton of data objects, and it would be better to have them in their own tree view.

Ideally, we should disallow directly editing those special files, and instead route them into modifying each data object individually, then compile all of those objects into one big file when the project is saved. This would prevent having a potentially infinite number of editors trying to save and reparse these special files, and force users into the workflow of creating individual units/objects and editing them.

RoyAwesome commented 9 years ago

This is mostly done. Before disabling the display of the special files (npc_units_custom.txt, etc), I want to finish #30. That is going to require #57 to be finished.