90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

DynamicHUD 1.2.0

Changelog

What the update brings to the player:

  • Scaling system

The player can now scale the widgets with a slider in the options screen 🎉

  • Better saving system to prevent invalid/corrupted files

What this update removes for the player:

  • I am sad to announce that Horizontal Rainbow for text Widget has been removed for performance as well as the new scaling system (it might be brought back later)

Developer changes: (Nerdy stuff, viewer discretion advised)

  • Library now uses Set data structure instead of List data structure
  • For scaling system two new classes have been added in addition to changes in TextureHelper.java and DrawHelper.java

CustomTextRenderer.java for scaling texts CustomItemRenderer.java for scaling item textures You may need to add your own custom classes for scaling if you use some different renderer/rendering system/Widget

  • DrawHelper.java adds the following method:

drawTextWithScale(...) : Draws scaled text on screen

  • TextureHelper.java adds the following method:

drawItemTextureWithTextAndScale(...) : Draws an scaled item texture on the screen with text at a specified position relative to it.

  • And much more which I don't remember (it will be updated on Gitbook )

Increased performance and calculation. Default Key binds are now changeable.

AutoSave is now improved to create a temporary file before updating the main config file.

Important changes for developer:

Widgets and MainMenuWidgets list has been changed from List to Set. You can now update the default keybind and their 4 parameters:

  • translationKey by using the DynamicHUD.setTranslationKey(translationKey)
  • InputUtil.type by using the DynamicHUD.setInputType(inputType)
  • keybindCategory by using the DynamicHUD.setKeybingCategory(keybingCategory)
  • key by using the DynamicHUD.setKeyBindKey(key)

Get Live changes at: https://github.com/V-Fast/DynamicHUD

Files

dynamichud-1.2.0.jar(632.31 KiB) Primary Download

Project members

tanishisherewithhh

Owner

Details

Licensed MIT
Published 2 years ago
Updated 6 months ago