Commit Graph
12 Commits
Author SHA1 Message Date
Arthur Uzulin 0d754749ec Added book functionality
- Added translation strings to TextData using $( and )$ [$$( and )$$ to escape]
- Added the ability to use items for ImageData (TODO scale)
- Added the ability to use the block atlas as the file for ImageData using $BLOCK_ATLAS (doubtful of possible uses)
2016-04-11 22:23:34 +10:00
Bernhard Bonigl 34e251b49b Use ElementText fontrenderer for rendering and add support fro dropshadows 2016-04-10 18:28:37 +02:00
Arthur Uzulin 13e1a8f981 Reformat book code 2016-04-10 13:23:59 +10:00
Bernhard Bonigl 752c2b3cb7 Update books to 1.9 2016-03-25 12:35:20 +01:00
Arthur Uzulin 341ef7e41d Table of Contents
- Not ready for prime implementation of 3D structures
- Added table of contents to beginning of each section
- Extended load method to PageContent
- A less hard-coded imagedata loading implementation (DataLocation)
- Repositories handle their own files
- Removed title from SectionData, replaced with translation strings
- BookTransformers now invoked after loading pages
- Fixed TextDataRenderer incorrectly calculating condition for ellipsis
2016-03-18 21:48:16 +11:00
Arthur Uzulin 4e98678f46 Book item lists
- Added block interaction page type
- Added smithing (anvil) page type
- Integrated the title
- Renamed textdata onClick to action
- Implemented item list JSON files instead of nesting item data
- Replaced the hardcoded ImageData transformer with a modular hotswap system
2016-02-10 11:09:09 +11:00
Arthur Uzulin 1ac2d95644 Book crafting pages
- Added crafting and smelting page types to the book
- Improved error handling
- Line breaks in ResourceHelper.getStringFromResource output
- 2 layers for pages instead of one
- ElementItem now does item cycling
2016-02-07 05:19:13 +11:00
Arthur Uzulin 413b43dfd1 ItemStack loader
- Load ItemStacks from JSON
  - items.json specifies all the global item click events
2016-02-06 03:56:07 +11:00
Arthur Uzulin 4b5c849893 Updated book code
- Added book transformers
- Added an index page
- Fixed mouse position on right pages
- Books now save position on close
2016-01-30 02:26:16 +11:00
Arthur Uzulin d0bd1aac90 Update book code
- Add click events to text data
- Rename CoverData to AppearanceData (and cover.json to appearance.json)
- Add ability to recolor arrows
- Added page numbers
- Enforce lower case for section/page names
- Added scale to text data
- Added paragraph to text data
- Added optional back arrow
- Rename page title to name
- 0, 0 is now actually on the page of the book
- The book elements are now all half the size
- Bumped the last page forward for odd-paged books, even if the last page is blank.
2016-01-29 03:15:16 +11:00
Arthur Uzulin 779dfd06cd Remove author tags, add @SideOnlyies, reformat code for books 2016-01-26 21:44:44 +11:00
Arthur Uzulin a7699788ac Add books WIP 2016-01-26 21:35:28 +11:00