diff --git a/404.html b/404.html index 531101d5..7c564db1 100644 --- a/404.html +++ b/404.html @@ -9,7 +9,7 @@ - +
diff --git a/assets/js/2ce19011.25d281e7.js b/assets/js/2ce19011.25d281e7.js deleted file mode 100644 index e987a451..00000000 --- a/assets/js/2ce19011.25d281e7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[230],{2308:function(e,n,o){o.r(n),o.d(n,{assets:function(){return c},contentTitle:function(){return r},default:function(){return m},frontMatter:function(){return s},metadata:function(){return a},toc:function(){return d}});var t=o(5893),i=o(1151);const s={sidebar_position:40},r="Image Page",a={id:"basics/page-types/image-page",title:"Image Page",description:"Image Page",source:"@site/docs/basics/page-types/image-page.md",sourceDirName:"basics/page-types",slug:"/basics/page-types/image-page",permalink:"/modonomicon/docs/basics/page-types/image-page",draft:!1,unlisted:!1,editUrl:"https://github.com/klikli-dev/modonomicon/tree/documentation/docs/basics/page-types/image-page.md",tags:[],version:"current",sidebarPosition:40,frontMatter:{sidebar_position:40},sidebar:"tutorialSidebar",previous:{title:"Multiblock Page",permalink:"/modonomicon/docs/basics/page-types/multiblock-page"},next:{title:"Entity Page",permalink:"/modonomicon/docs/basics/page-types/entity-page"}},c={},d=[{value:"Attributes",id:"attributes",level:2},{value:"title (DescriptionId or Component JSON, optional)",id:"title-descriptionid-or-component-json-optional",level:3},{value:"images (ResourceLocation[], mandatory)",id:"images-resourcelocation-mandatory",level:3},{value:"text (DescriptionId or Component JSON, optional)",id:"text-descriptionid-or-component-json-optional",level:3},{value:"border (Boolean, optional)",id:"border-boolean-optional",level:3},{value:"Usage Examples",id:"usage-examples",level:2}];function l(e){const n={a:"a",br:"br",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",img:"img",p:"p",pre:"pre",strong:"strong",...(0,i.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"image-page",children:"Image Page"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{alt:"Image Page",src:o(8012).Z+"",width:"1109",height:"732"})}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Page type:"})," ",(0,t.jsx)(n.code,{children:"modonomicon:image"})]}),"\n",(0,t.jsx)(n.p,{children:"Displays an image and optionally a title and text."}),"\n",(0,t.jsx)(n.h2,{id:"attributes",children:"Attributes"}),"\n",(0,t.jsxs)(n.h3,{id:"title-descriptionid-or-component-json-optional",children:[(0,t.jsx)(n.strong,{children:"title"})," (DescriptionId or Component JSON, ",(0,t.jsx)(n.em,{children:"optional"}),")"]}),"\n",(0,t.jsxs)(n.p,{children:["The page title. Will not parse markdown, instead it uses the default title color as defined in the ",(0,t.jsx)(n.code,{children:"book.json"}),".",(0,t.jsx)(n.br,{}),"\n","See ",(0,t.jsx)(n.a,{href:"../structure/book",children:"Book.json"})," for details."]}),"\n",(0,t.jsxs)(n.h3,{id:"images-resourcelocation-mandatory",children:[(0,t.jsx)(n.strong,{children:"images"})," (ResourceLocation[], ",(0,t.jsx)(n.em,{children:"mandatory"}),")"]}),"\n",(0,t.jsxs)(n.p,{children:["Array of ResourceLocations of the textures to display.",(0,t.jsx)(n.br,{}),"\n","The files should be 256px by 256px. The upper 200px by 200px will be rendered."]}),"\n",(0,t.jsxs)(n.h3,{id:"text-descriptionid-or-component-json-optional",children:[(0,t.jsx)(n.strong,{children:"text"})," (DescriptionId or Component JSON, ",(0,t.jsx)(n.em,{children:"optional"}),")"]}),"\n",(0,t.jsx)(n.p,{children:"The page text. Can be styled using markdown."}),"\n",(0,t.jsxs)(n.h3,{id:"border-boolean-optional",children:[(0,t.jsx)(n.strong,{children:"border"})," (Boolean, ",(0,t.jsx)(n.em,{children:"optional"}),")"]}),"\n",(0,t.jsxs)(n.p,{children:["Defaults to ",(0,t.jsx)(n.code,{children:"true"}),". If true, render a border around the image."]}),"\n",(0,t.jsx)(n.h2,{id:"usage-examples",children:"Usage Examples"}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"Array of ResourceLocations of the textures to display.
-The files should be 256px by 256px. The upper 200px by 200px will be rendered.
use_legacy_rendering
for more information.
+Defaults to false
.
If true, the image will be rendered using the legacy rendering setup that matches the behaviour in Patchouli.
+The files should be 256px by 256px. The upper left 200px by 200px will be rendered.
+Larger images work too but the top left box matching the relative size of the 200px by 200px box will be rendered.
The page text. Can be styled using markdown.
<entry>.json
:
{
...
"pages": [
{
"type": "modonomicon:image",
"border": true,
"images": [
"modonomicon:textures/gui/default_background.png",
"modonomicon:textures/gui/dark_slate_seamless.png"
],
"text": "book.modonomicon.demo.features.image.image.text",
"title": "book.modonomicon.demo.features.image.image.title"
}
]
}
/lang/*.json
:
{
"book.modonomicon.demo.features.image.image.text": "A sample text for the sample image.",
"book.modonomicon.demo.features.image.image.title": "Sample image!",
}
{
"book.modonomicon.demo.features.image.image.text": "A sample text for the sample image.",
"book.modonomicon.demo.features.image.image.title": "Sample image!",
}