-
-
Notifications
You must be signed in to change notification settings - Fork 141
Fully configureable Fancy Tab HUD #230
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
Fully configureable Fancy Tab HUD #230
Conversation
Instead of creating a new widget instance every frame, instantiate once and update content. This means that every widget had to be updated to work like that. This also necessitated some ugly hackery for the dwarven HUD. Many other minor things like moving and renaming classes
Use resource pack logic to load the layouts. Finally delete the old screen defs, replace with builtin layout JSON files. Include a top-aligned layout as a builtin resource pack. Implement more possibilites for the layout to support said pack.
…into json-tabhud # Conflicts: # src/main/java/me/xmrvizzy/skyblocker/SkyblockerMod.java # src/main/java/me/xmrvizzy/skyblocker/skyblock/dwarven/DwarvenHud.java # src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/screens/main/GardenScreen.java # src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/util/PlayerLocator.java Pull upstream changes
Latter looks a bit off thanks to whatever Minecraft uses to scale the icon...
|
Looks great so far! Maybe add a format version to the resource pack format in case we need to make breaking changes? I don't know if you can put extra stuff in |
…hem work correctly
…into json-tabhud # Conflicts: # src/main/java/me/xmrvizzy/skyblocker/skyblock/dwarven/DwarvenHud.java Pull new upstream things into branch
|
There we go, should be good to merge after some double checking |
src/main/java/me/xmrvizzy/skyblocker/skyblock/dwarven/DwarvenHud.java
Outdated
Show resolved
Hide resolved
src/main/java/me/xmrvizzy/skyblocker/skyblock/dwarven/DwarvenHudConfigScreen.java
Outdated
Show resolved
Hide resolved
src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/util/PlayerLocator.java
Outdated
Show resolved
Hide resolved
…into json-tabhud Pull newest changes from upstream
|
Pushed some refactors which Intellij was yelling at me for. Tested this by going to random skyblock island and seems to work. Also, is the intended name of the resource pack to be "skyblocker/default_top"? Don't think that's a very user friendly name lol. |
I would just add to the pack's description instead of changing the packs name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
The long-awaited customizeable fancy tab is finally (almost) here!
You can now specify your own layouts using some JSON files and load them via a resource pack. There's also a builtin resource pack for a top-aligned layout and a README containing some docs about how to write layout files.
Needs testing. The top aligned layout needs some work and the
collideop doesn't work for all of the values that might be useful, which is TODO at the moment. Hence, this is just a draft for the moment