DevMode Settings Explorer feedback
So, I'm working on the styling for a little potential addition to Calego's 'Developer Mode' module and since this Discord is probably the key user group I could use the opinion of anyone who has one:
1) Is there any information you see here that would never be useful?
2) Is there any info you don't see here that would be useful?
3) As I'm starting to work on the styling now, any ideas you have on a useful way to lay out the information in a clear, compact way would be helpful.
(Images in thread)
24 Replies
Perhaps remove the quotes on these
Also, it would be dope if "Current" had a textbox to the right of it, rather than just text, which would allow you to put a new value for the setting
I'd lay these out with
JSON.stringify
inside a <pre>
maybe not stringify, there's some utility somewhere that formats json nicelyHmmm, will investigate.
JSON.stringify(myjson, null, 4)
Maybe a light left hand border on the <details>
elements?name
isn't garunteed is it?
ballsNo, sadly
I place it if it exists and skip it if not. Same as hint
Yeah makes sense
I recind my previous statement
I would not lay this out with JSON.stringify
I would lay out
current
aka value
or w/e with it
Some icons for scope
config
default
would be good.
Don't think module
is very useful as it's already under a heading.It would be really cool to be able to edit "current" 🥺
no
no no
nono no nono no
no * 100
no ^ 100
no
Yes
maybe?
I think it might be too messy to edit it directly in a textbox there, but I could conceivably pop a dialog with the appropriate form field for the setting's
type
...We'll stretch goal it
for now just display +
The field could be directly there as well
Well, I don't see why not since this is for Devs who can type
game.settings.set(.......)
It just saves timeediting a boolean would be easy, a string too, but beyond that there's some big needs for validation for me to be comfortable with a UI that does that
I have some ideas 😉 But yes, stretch goal.
Plus almost all of the normal UI is the existing settings panel
this is most useful for
config: false
things
and those are typically complex structuresNot in my experience 🤔
My first idea was actually to literally inject the
config: false
settings into the settings panel but with their values jsonStringified
that real estate is crowded lately lolNo matter what you do there's no good way to ensure that complex settings will be formatted in the way the module expects... but thankfully there's an available reset button, so.
In terms of formatting, some good ideas 👍
I am somewhat nervous about the implications of loading the dialog in a world with 300 active modules, each of which has x settings, and running
game.settings.get
(300*x) times... shrugHmmm. That smells.
Take a look at what foundry core settings dialog does?