Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed DF Hotkey and fixed module.json #127

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

tehguitarist
Copy link

This pull should get everything functional again. I don't think it fixes the inability to move the hotbar, but CSS isn't my wheelhouse (programming barely is ha). Basically it just removes all code that references DF Hotkeys.

I fixed up the deprecation warnings for the module.json, I wasn't sure if colorsettings was explicitly required or just a nice to have, so i've left it as optional, but that can be changed to required easily enough.

I bumped the version number and links to avoid any confusion (and so my version doesn't autoupdate by accident).

I didn't delete the hotkey code, just commented out, as I figured if you wanted to transpose that to the core keybinding system, it would be safest not to delete it.

I also added a release zip just for anyone who needs a cleaner download to use in their own worlds.

@charlesfire
Copy link

charlesfire commented Mar 23, 2023

I didn't delete the hotkey code, just commented out, as I figured if you wanted to transpose that to the core keybinding system, it would be safest not to delete it.

No need to keep commented code. If needed, the removed code can be easily retrieved from the history. It's kind of the point of git, to keep track of changes.

@tehguitarist
Copy link
Author

Didn’t think of that. If I find some time I’ll clean everything up if Norc doesn’t merge this soonish.

@Norc
Copy link
Owner

Norc commented Mar 23, 2023

Hey, thanks so much for the pull request!! I'll take a look at this and potentially merge tonight.

It is greatly, greatly appreciated.

@tehguitarist
Copy link
Author

Cleaned up the commented code and added TODO notes instead. Mind you, JS and CSS are so far out of my wheel house, tinkering is about as good as I get ha.

@tehguitarist
Copy link
Author

Fixed an error warning around a keyhintDiv error and added in some CSS to fix the issue of PF2e Dorako UI stopping the hotbar being able to shift position. Also added an adjustment to handle Dorako UI sizing things a little different so the default position works nice.

If other UI modules are breaking things, it's possible similar code might fix it too.

@tehguitarist
Copy link
Author

Just did a test, seems to still work in V11, so updated the module.json to reflect that.

@tehguitarist
Copy link
Author

Hey, just thought I'd follow up to see if you needed any more changes.

@GhostwheelX
Copy link

What .json should I add in Foundry to use this version?

@tehguitarist
Copy link
Author

What .json should I add in Foundry to use this version?

I haven’t set this up as a manifest you can just add, but if you replace the files with the ones from my fork, that’ll do the trick

@GhostwheelX
Copy link

I did so, and when I hit "update all", I receive the following error:
image

Is this something that will resolve itself when the main module is updated, or do I need to keep an eye out for when it's updated and then uninstall and re-install?

@tehguitarist
Copy link
Author

Yeah when the module gets updated that should resolve itself. I did it because the module would sometimes “update” itself to the main version.
I’ve since just locked it so it doesn’t update. It’s a harmless warning though. I’ll try to maintain this as best I can, but I’m hesitant to maintain it until I see what the v12 macro changes are. I’m not a professional by any stretch of the imagination so if there are fundamental changes to macros coming, I doubt I could port them over.

@Arkandos
Copy link

I tried updating manually with this fork on foundry v11, but it removes the custom hotbar entirely, and makes the normal hotbar inaccessible.
image
When its the only module enabled, it also shifts all other parts of the ui upwards, making them inaccessible
image

@tehguitarist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants