davelens / fvtt-party-resources

A simple module for FoundryVTT to manage (and track) custom party-wide numeric values.
MIT License
6 stars 16 forks source link

[Feature Request] Open resource window by clicking/double-clicking on the resource #56

Closed jagoe closed 2 years ago

jagoe commented 2 years ago

Problem

Whenever I want to edit a resource, I have to navigate to the actors tab first. Depending on the frequency, this might get annoying. Leaving the window open is not option due to limited screen real estate.

Proposed Solution

Clicking (or double-clicking) on the resource bar opens the "Party Resources" window.

Alternatives

  1. Editing the resource directly using the mouse wheel might also be an option. If both seem like good ideas, I'll open a separate issue.

Notes

If accepted, I'd be willing to draft a PR.

davelens commented 2 years ago

@jagoe In the back of my mind, I think I settled on implementing CTRL+clicking a resource to open the resource's edit form somewhere down the line, but starting out with opening the dashboard when clicking the resource bar itself makes sense to me. 👍

davelens commented 2 years ago

@jagoe Merged and released into 1.4.3a. Thanks again, also for the cleanup involving the sass build script. I'm not a frontend dev, so I learned something there.

I made two changes in addition to yours:

jagoe commented 2 years ago

Whoops! Both of those make a lot of sense, haha. I always forget about Macs (neither me, nor my usual players use one). And I got no excuse for the GM-check - good thing you caught that!

Thanks for the quick review, merge, and release :smiley:

jagoe commented 2 years ago

@davelens, just noticed: Foundry doesn't support versions like 1.4.3a, causing it not to be recognized as the latest version (more details here).

image

As per SemVer it would have made sense to make the new version 1.5.0 and the hotfix 1.5.1. As it is, you might want to change 1.4.3a to 1.4.4 to fix the issue with the latest version.

davelens commented 2 years ago

@jagoe Oops, I didn't know that! It's how we do patch releases at work so I didn't really think about it. My self-hosted Foundry seemed to update the version just fine, but not having it as latest isn't good. 1.4.4 is out now to remedy it.

Thanks again for the heads-up!