Skip to content
Success

Changes

Summary

  1. Fix textdata renderer trimming text without linebreaks too (details)
  2. Add a parameter that indicates whether the page is a left or right side (details)
  3. Textdata containing only \n will cause a linebreak (details)
  4. Change padding to be side-sensitive (4 sides). Make pages have less (details)
  5. Fix a race condition with rendering and initializing the mc variable (details)
  6. Change section list to be half as small (due to scale changes) and draw (details)
  7. Make width/height of sized elements available (details)
  8. Make book transformers available publicly. This is needed so that the (details)
  9. Center the section list (details)
  10. Fix back-arrow position (details)
  11. Experimental "up" arrow thing for the back-to-index arrow (details)
  12. Change the tooltip rendering in books over to forge tooltip rendering (details)
  13. Translation utility (details)
Commit ffd38cf8e89b23d230fc424d9f3382453b6ebed3 by bernhard.bonigl
Fix textdata renderer trimming text without linebreaks too
The file was modifiedsrc/main/java/slimeknights/mantle/client/gui/book/TextDataRenderer.java (diff)
Commit 5e537bd3ee7002850d5c8ed1091743449f191ce2 by bernhard.bonigl
Add a parameter that indicates whether the page is a left or right side
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentTextRightImage.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentStructure.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentImage.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentError.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentBlockInteraction.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentImageText.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentTableOfContents.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentBlank.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/gui/book/GuiBook.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentSectionList.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentText.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/PageContent.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentTextLeftImage.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentDummy.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentSmelting.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentCrafting.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentSmithing.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentTextImage.java (diff)
Commit 6a0429ec5465ebfa263a55f9d8fdcc730e7c1ecc by bernhard.bonigl
Textdata containing only \n will cause a linebreak
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/element/TextData.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/gui/book/TextDataRenderer.java (diff)
Commit 23da60afd05996ca80fd72f04a7c2e6f3730d7e3 by bernhard.bonigl
Change padding to be side-sensitive (4 sides). Make pages have less
padding towards the center.
The file was modifiedsrc/main/java/slimeknights/mantle/client/gui/book/editor/GuiBookEditor.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/gui/book/GuiBook.java (diff)
Commit 25d357e8f8228b8af46280f15732bc8857700719 by bernhard.bonigl
Fix a race condition with rendering and initializing the mc variable
The file was modifiedsrc/main/java/slimeknights/mantle/client/gui/book/GuiBook.java (diff)
Commit 19d1cdae7005720b734070bc7ec95f63a2b1e109 by bernhard.bonigl
Change section list to be half as small (due to scale changes) and draw
section name as tooltip
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/AppearanceData.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/gui/book/element/ElementSection.java (diff)
Commit 240466c546b0097d36bd484f479c474217d4911c by bernhard.bonigl
Make width/height of sized elements available
The file was modifiedsrc/main/java/slimeknights/mantle/client/gui/book/element/SizedBookElement.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/gui/book/element/ElementSection.java (diff)
Commit efb34bd9834468e7bb2c7838de8b27cfb82f047e by bernhard.bonigl
Make book transformers available publicly. This is needed so that the
index transformer can be applied after custom transformers
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/BookLoader.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/BookTransformer.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/content/ContentSectionList.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/gui/book/GuiBook.java (diff)
Commit 1c670116e4ce59cda595d975140a4e2d0f279635 by bernhard.bonigl
Experimental "up" arrow thing for the back-to-index arrow
The file was modifiedsrc/main/resources/assets/mantle/textures/gui/book/book.png (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/gui/book/GuiBook.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/gui/book/GuiArrow.java (diff)
Commit 7c9f7906a846be33c694f842c28828c7ce50fde3 by bernhard.bonigl
Change the tooltip rendering in books over to forge tooltip rendering
The file was modifiedsrc/main/java/slimeknights/mantle/client/gui/book/GuiBook.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/gui/book/TextDataRenderer.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/PageData.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/SectionData.java (diff)
The file was modifiedsrc/main/java/slimeknights/mantle/client/book/data/BookData.java (diff)