Updated Gradle to use Java 21 instead of Java 17. Not much code changes.
This is the official 1.21
release for minecraft fabric.
Some additional changes were made which are reflected in the GitBook/Wiki.
- New
BooleanPool
class was added. - Updated constructors for
BooleanOption
,RunnableOption
andSubMenuOption
- 1.21 related changes.
- Usual dependency update.
Updated DynamicHUD to 1.20.6
version.
Should support 1.20.4, 1.20.5 and 1.20.6
.
Nothing much else was added.
Primary file contains the demo of DynamicHUD included. Not advised to use.
This version has a few minor changes and some bug fixes:
- Added tooltips for widgets and created an option in YACL for the same (off by default)
- Added new TextWidget as an example.
- Made some javadocs more detailed and precise.
Still currently on 1.20.4 but may work for 1.20.5 and 1.20.6 as well.
Generated Changelog: https://github.com/V-Fast/DynamicHUD/compare/v2.0.0...v2.0.1
Complete rewritten of previous versions.
Major changes
- Adding widgets is now more simpler
- Integrate DynamicHUD with a simple interface
- Multi-Mod support
- WidgetRenderer for rendering groups of widgets of a specific ID.
- Different groups of widgets are saved to different files as per the developer.
- Widgets are now compiled with Unique IDs to identify them across mods.
- Better dragging, snapping and border control.
- Scalability of widgets is much more improved in the hands of the player.
- Using DynamicValueRegistry to supply the library with changing values.
- Widgets can be rendered on any screen as per the developers requirement instead of the previous TitleScreen and in game.
- Supports more compatibility with other mods.
- AbstractMoveableScreen is simplified heavily.
- ContextMenu now works directly with widgets instead of previosly indirectly from the Abstract screen.
- ContextMenu is improved with better visuals and now accepts Options.
- Default ContextMenu options are: Boolean, Color, Double, Runnable,List/Enum and a SubMenu option. The Option<T> class enables the developer to add more options as per their desire.
Minor changes:
- ModMenuIntegration has been fixed.
- DynamicHUD now uses YACL to manage global settings.
- Removed complex and unnecessary code.
- Overall performace and stability has been improved.
- All previous bugs are fixed.
The wiki has also been updated and explains in much more depth.
A small showcase video was also made on youtube.
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 ofList
data structure - For scaling system two new classes have been added in addition to changes in
TextureHelper.java
andDrawHelper.java
CustomTextRenderer.java
for scaling textsCustomItemRenderer.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
andMainMenuWidgets
list has been changed fromList
toSet
. You can now update the default keybind and their 4 parameters:
translationKey
by using theDynamicHUD.setTranslationKey(translationKey)
InputUtil.type
by using theDynamicHUD.setInputType(inputType)
keybindCategory
by using theDynamicHUD.setKeybingCategory(keybingCategory)
key
by using theDynamicHUD.setKeyBindKey(key)
Get Live changes at: https://github.com/V-Fast/DynamicHUD
Fixed WidgetBox calculations and some other small changes
DynamicHud 1.1.1 had some entry point errors so here is the working version:
1.1.1 changelogs:
Updates regarding rendering and others:
New for developers:
Added:
ContextMenu Input Options which supports text input from user:
- String Input
- Double Input
MainMenuWidgets which now allow you to render different widgets on the title screen or main menu screen as well. The widgets can be moved on the screen without opening another one.
String
label
as a parameter in the Widget class
A new method to load the widget text.
Screen Movement constrained within the game window.
Added support for non-draggable widgets.
Updated:
Updated the load and save to work for MainMenu Widgets
Updated DynamicHUDmod.java
Mod Menu
Integration
ContextMenu
rendering and positioning.
Slider Widget
rendering and positioning.
Updated Gitbook for 1.20x Minecraft version and 1.1.1 dynamicHUD version.
Changed:
Changed ContextMenu and SliderWidget to a
List
type in the AbstractMoveableScreen.java to support Submenus.
Gitbook [Mostly updated]
Full Changelog: https://github.com/V-Fast/DynamicHUD/compare/1.20...master
Updates regarding rendering and others:
New for developers:
Added:
ContextMenu Input Options which supports text input from user:
- String Input
- Double Input
MainMenuWidgets which now allow you to render different widgets on the title screen or main menu screen as well. The widgets can be moved on the screen without opening another one.
String
label
as a parameter in the Widget class
A new method to load the widget text.
Screen Movement constrained within the game window.
Added support for non-draggable widgets.
Updated:
Updated the load and save to work for MainMenu Widgets
Updated DynamicHUDmod.java
Mod Menu
Integration
ContextMenu
rendering and positioning.
Slider Widget
rendering and positioning.
Updated Gitbook for 1.20x Minecraft version and 1.1.1 dynamicHUD version.
Changed:
Changed ContextMenu and SliderWidget to a
List
type in the AbstractMoveableScreen.java to support Submenus.
Gitbook [Mostly updated]
Full Changelog: https://github.com/V-Fast/DynamicHUD/compare/1.20...master
Reupload of 1.1.0 with a few changes