P1nero's Dialogue Lib
This modification is a dialogue support library providing convenient tools for creating and customizing interactive dialogue windows. Despite having only one available styling theme, the library offers complete functionality for working with dialogues.
Key Features
The library allows building dialogues as tree-like structures where each choice can lead to a separate conversation branch. You can flexibly adjust the dialogue window height for optimal content display. After button presses, available options include triggering various types of custom events, as well as sending special request codes to the server for data exchange.
This mod develops the Valkyrie dialogue system from TheAether, extending its basic functionality. Additional features include:
- Typewriter effect for text animation
- Convenient construction of tree-like dialogue structures
- Precise positioning adjustment capabilities for dialogue windows
- Image insertion functionality within dialogues
For examining practical usage examples of the library, you can review the code at these links:
https://github.com/GaylordFockerCN/Duel-Of-The-End/blob/1.20.1dlc/src/main/java/com/p1nero/dote/entity/custom/StarChaser.java#L231
https://github.com/The-Aether-Team/The-Aether/blob/c143d03defe725432377126fd4e8bc9bbd571b77/src/main/java/com/aetherteam/aether/client/gui/screen/ValkyrieQueenDialogueScreen.java