gigaherz / Guidebook

Minecraft book API and library
https://www.curseforge.com/minecraft/mc-mods/guidebook
Other
31 stars 16 forks source link

[WIP] Multiblock Display System #23

Open joazlazer opened 7 years ago

joazlazer commented 7 years ago

Features (Some Still WIP)

Adds the new <multiblock> tag which represents a MultiblockPanel element and allows guidebook authors to display a multiblock structure:

<multiblock structures="[gbook:furnace_brick,gbook:furnace_nether_brick]" transformation="t[-1,-1.35,-1] q[0,1,0,0] s[0.9]">

2017-08-22_21-56-42

In addition, a mouseHover system is in the works, with the current iteration appearing as follows:

hoverover

Tasks

gigaherz commented 7 years ago

I don't dislike the PR, but I was always picturing people using templates for this, like I did on the Ender-Rift manual: https://github.com/gigaherz/Ender-Rift/blob/master/src/main/resources/assets/enderrift/xml/book.xml#L3

joazlazer commented 7 years ago

Interesting. I wanted to see if I could support more interactive features within the book such as spin, z-layer hiding via a slider, and an option to view both expanded and compacted. To do this, I was thinking of rendering in 3d and then translating to screen space via transforms. What do you think about these features?

gigaherz commented 7 years ago

Interesting. I wanted to see if I could support more interactive features within the book such as spin, z-layer hiding via a slider, and an option to view both expanded and compacted. To do this, I was thinking of rendering in 3d and then translating to screen space via transforms. What do you think about these features?

Oops never answered to this: Yeah I do like it. It's quite a lot more interesting than just a static template, even if it deviates from the "pseudo-html" that I originally had in mind.