Skyblocker icon indicating copy to clipboard operation
Skyblocker copied to clipboard

the hud thing idk

Open viciscat opened this issue 5 months ago • 1 comments

Opening as a draft. I want opinions, I do not want to touch this ever again. Please go ham on reviewing

Left to do

  • [x] Snapping to other widgets
  • [x] Option to deactivate the auto anchor thing
  • [x] Fancy Tab Widget
  • [ ] Add options to some widgets
  • [ ] Data fixer for previous config oh boy that's gonna be fun

How does one implement widgets with this dang thing?

If you directly extend HudWidget you just need to implement 3 methods huzzah!

  • renderWidget
  • renderConfig
  • getInformation Contains: id for config, name for the config screen, where it can be added with right click.

then you register your widget with the annotation or by adding it manually.

You can extend the getOptions method to add options duh. They will be accessible when right clicking a widget in the config screen. These options will be common to every location and layer. For per location and layer you can extend getPerScreenOptions (might change to just per location perchance but that would mean changing positioning since that's stored in there)

I added some options to ComponentBasedWidget if you want to check that out.

Other stuff

PlayerListManager was changed you can check it out, TabHudWidget was changed so implementations don't need to change anything.

May add more to this PR message

viciscat avatar Jul 16 '25 15:07 viciscat

Funny bug with Powder Mining Tracker image

Alex33856 avatar Sep 03 '25 01:09 Alex33856