Kruptein / PlanarAlly

A companion tool for when you travel into the planes.
https://www.planarally.io/
MIT License
402 stars 73 forks source link

[FEAT] Make Asset Extra field output better #857

Open 10leej opened 2 years ago

10leej commented 2 years ago

Screenshot from 2021-12-11 16-16-12

Basically we move the extra field into the right popup panel that the trackers use, have it hidden by default with a plain button on say the center bottom of the panel to "Show More" and when pressed it shows the additional panel until mouse leaves or button is pressed again.

This does remove the courrent mouse enter/leave behavious with the field but as you can see in the above image that field gets quite large and obtrusive when it's filled out with a lot of text.

develroo commented 2 years ago

As I mentioned on Discord perhaps it would just be easier to implement links in the description that could open a pop-up window instead that can be resized and moved as needed as well as dismissed when not needed.

10leej commented 2 years ago

That could work too. Just link to an srd page or dndbeyond/archive of neathys or something

PalasX commented 2 years ago

some markdown formatting can help in the extras/annotation to make it less "spammy", but an entire statblock still takes up about 20% of the screen, depending on browser window size, at 1080p.

image

Hoverable sections of the tracker side-bar thing that behave like annotaions maybe? What i mean is having a tracker like HP or AC but instead of showing a numerical tracker for it, just have it as a place holder and when it is hovered, show an annotation that contains user defineable markdown/text?

just an FYI, 5etools has a feature for monsters that lets you copy out the entire statblock as Markdown in a single click, making it easy to paste into an annotation. i use a slightly modded copy of the markdown renderer javascript to output a condensed/simplified version of the statblock to get the results shown.

10leej commented 2 years ago

just an FYI, 5etools has a feature for monsters that lets you copy out the entire statblock as Markdown in a single click, making it easy to paste into an annotation. i use a slightly modded copy of the markdown renderer javascript to output a condensed/simplified version of the statblock to get the results shown.

Wait it does? I've never seen that feature before...

PalasX commented 2 years ago

image

CTRL+LeftClick the middle "popout" button at the top of a monster statblock.

it's handled by a pair of renderer.js files in the source, which is downloadable. you can easily run your own copy of 5etools and modify the .js source so that the markdown outputs to your liking.