RimWorld

RimWorld

XML Document Viewer and Export
Some idea for additional feature...
I'm back with some low-priority ideas that popped up while working with the Document Viewer (which already was some help in my current modding.) It's not exactly something absolutely necessary, since you can achieve it just with xpath as well, but I had to think about it when doing the following:

[img]https://imgur.com/a/NWHPVhr.jpg[/img]

From my experience, many modder don't know much about the possibilities to 'navigate back' via xpath .. - it took me quite a while to find out things like that when I started modding at least. Not sure how realistic and feasible it would be, but I guess having a sort of UI element/button to navigate back/forth a level in the structure could be helpful?

Alternatively having a basic list of important xpath expressions somewhere - like just as a (?) with tooltip function or similar - could potentially help some people. Don't know how much the overlap of people who need that info/functionality and actual users of the mod is to be honest, could be rather fringe - but I guess after all those years in QA consulting I can't stop the constant; "Will the customer be able to understand that?" questions. :D
Last edited by tide{S}haper industries; 19 Aug @ 9:49am
< >
Showing 1-4 of 4 comments
Imranfish  [developer] 19 Aug @ 12:08pm 
@tide{S}haper industries Thank you for the suggestions. Actually both of those are already planned additions. For going up a node, I was thinking of adding a button or something that would take show you the full Def for the node you are currently looking at. I was also planning on adding a list of useful XPath features and examples as well. But at the moment other features, such as the search, are taking priority right now.
Imranfish  [developer] 19 Aug @ 12:08pm 
Would you prefer going up and down a single node level, or showing the full Def?
Hm... for most use-cases I can think of, jumping to the full Def root probably is good enough. Going up a node probably isn't too complicated to implement I assume - but I have to admit that thinking about how you would best implement it so you can go back (down) again gives me a slight headache...

In fact, I can't think of many situations where going down the path again would offer much. At least not for the use on RW. There are a few deeply-nested structures in RW's Defs, but most use-cases probably are fine with directly jumping to the root/Def.
Imranfish  [developer] 19 Aug @ 1:25pm 
@tide{S}haper industries Actually implementing the ability to go back down a node would be pretty simple, the mod would simply just remember which nodes you are traversing as you go up a level, and then traverses that same list in backwards order when going back down. But ya I think just be able to go straight the Def itself is more simple and achives the same result that most people are aiming for
< >
Showing 1-4 of 4 comments
Per page: 1530 50