
DynamicHUD
A dynamic HUD library to create, display, load and save, interact and do much more with HUD elements - widgets.
Список изменений
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 Rainbowfor 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
Setdata structure instead ofListdata structure - For scaling system two new classes have been added in addition to changes in
TextureHelper.javaandDrawHelper.java
CustomTextRenderer.javafor scaling textsCustomItemRenderer.javafor scaling item textures You may need to add your own custom classes for scaling if you use some different renderer/rendering system/Widget
DrawHelper.javaadds the following method:
drawTextWithScale(...): Draws scaled text on screen
TextureHelper.javaadds 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:
WidgetsandMainMenuWidgetslist has been changed fromListtoSet. You can now update the default keybind and their 4 parameters:
translationKeyby using theDynamicHUD.setTranslationKey(translationKey)InputUtil.typeby using theDynamicHUD.setInputType(inputType)keybindCategoryby using theDynamicHUD.setKeybingCategory(keybingCategory)keyby using theDynamicHUD.setKeyBindKey(key)
Get Live changes at: https://github.com/V-Fast/DynamicHUD