summaryrefslogtreecommitdiff
path: root/config/gregtech/terminal/guide/tutorials/zh_cn
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2024-09-01 02:09:01 +0300
committerDrNuget <drnuget@outlook.com>2024-09-01 02:09:01 +0300
commita803b2a49c8419f4999629f989ba0649a4f57d4d (patch)
tree280b816ee6afc8cecd4855cc0b33424f198e6b96 /config/gregtech/terminal/guide/tutorials/zh_cn
parent58b8c20b9aefe1bf1ec4c00b9f3217d770e8e525 (diff)
modify gregtech configs
Diffstat (limited to 'config/gregtech/terminal/guide/tutorials/zh_cn')
-rw-r--r--config/gregtech/terminal/guide/tutorials/zh_cn/crafttweaker/terminal/ct_terminal_01.json107
-rw-r--r--config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_0_guidepage.json148
-rw-r--r--config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_1_widget.json304
-rw-r--r--config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_2_textbox.json256
-rw-r--r--config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_3_image.json207
-rw-r--r--config/gregtech/terminal/guide/tutorials/zh_cn/resource_pack/emissive_texture.json1
-rw-r--r--config/gregtech/terminal/guide/tutorials/zh_cn/terminal/terminal_hardware.json1
7 files changed, 1024 insertions, 0 deletions
diff --git a/config/gregtech/terminal/guide/tutorials/zh_cn/crafttweaker/terminal/ct_terminal_01.json b/config/gregtech/terminal/guide/tutorials/zh_cn/crafttweaker/terminal/ct_terminal_01.json
new file mode 100644
index 0000000..d787b38
--- /dev/null
+++ b/config/gregtech/terminal/guide/tutorials/zh_cn/crafttweaker/terminal/ct_terminal_01.json
@@ -0,0 +1,107 @@
+{
+ "section": "CraftTweaker/终端",
+ "title": "终端的CT教程",
+ "stream": [
+ {
+ "type": "textbox",
+ "content": [
+ "目录:"
+ ]
+ },
+ {
+ "type": "textbox",
+ "content": [
+ "§1§lURL:§r§n https://github.com/Gregicality/GregTech/wiki/CraftTweaker-of-Terminal"
+ ]
+ },
+ {
+ "type": "textbox",
+ "ref": "api",
+ "isShadow": false,
+ "content": [
+ "§4§lAPI:"
+ ]
+ },
+ {
+ "type": "textbox",
+ "fontSize": 9,
+ "content": [
+ "1. §1registerDevice(deviceItemStack, deviceName)§0:\n注册自定义设备。\n\n2. §1createAppRegistryBuilder(appName):\n§0根据应用名称(可从商店获取)获得构造器。\n\n3. §1isDefaultApp(default):\n§0设置为默认应用。\n\n4. §1battery(euTier, cost):\n§0为所有层级设置相同的电池要求。\n\n5. §1battery(appTier, euTier, cost):\n§0为特定等级设置电池要求。\n\n6. §1device(deviceName...):\n§0为所有等级设置设备要求。 (默认可用设备: \"scanner\", \"wireless\", \"camera\", \"solar_lv\").\n\n7. §1device(appTier, device...):\n§0为特定等级设置设备要求。\n\n8. §1upgrade(upgradeItemStack...):\n§0设置所有等级的升级要求。\n\n9. §1upgrade(appTier, upgradeItemStack...):\n§0设置特定等级的升级和要求。\n\n10. §1build():\n§0完成并注册。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "ref": "demo",
+ "space": 1,
+ "content": [
+ "\n§4§lZS Demo:"
+ ]
+ },
+ {
+ "type": "textbox",
+ "fill": -912478525,
+ "fontSize": 9,
+ "content": [
+ "import mods.gregtech.TerminalRegistry;\n\nTerminalRegistry.registerDevice(\u003core:ingotIron\u003e.firstItem, \"ingot_iron\");\n\nTerminalRegistry.createAppRegistryBuilder(\"ore_prospector\")\n .isDefaultApp(true)\n .battery(1, 500)\n .battery(3, 3, 1000)\n .device(\"camera\", \"wireless\")\n .device(4, \"ingot_iron\")\n .upgrade(\u003cminecraft:apple\u003e * 9)\n .upgrade(2, \u003cminecraft:apple\u003e * 9, \u003cminecraft:grass\u003e * 12)\n .build();"
+ ]
+ },
+ {
+ "type": "textbox",
+ "fontSize": 9,
+ "content": [
+ "§4§l结果:\n§r自定义设备"
+ ]
+ },
+ {
+ "type": "image",
+ "form": "url",
+ "source": "https://user-images.githubusercontent.com/18493855/140280593-37922838-4a20-4e1b-9be9-73935c4c8c13.png",
+ "width": 190,
+ "height": 120
+ },
+ {
+ "type": "textbox",
+ "content": [
+ "注册电池、设备、升级"
+ ]
+ },
+ {
+ "type": "image",
+ "form": "url",
+ "source": "https://user-images.githubusercontent.com/18493855/140280587-84dc8f67-6dde-472f-9ed8-6a4c5e71abc4.png",
+ "width": 190,
+ "height": 120
+ },
+ {
+ "type": "image",
+ "form": "url",
+ "source": "https://user-images.githubusercontent.com/18493855/140280590-d4700a88-5780-4e0f-95f8-130e82f4634a.png",
+ "width": 190,
+ "height": 120
+ }
+ ],
+ "fixed": [
+ {
+ "type": "textbox",
+ "x": 27,
+ "y": 24,
+ "width": 16,
+ "height": 10,
+ "link": "api",
+ "content": [
+ "§9§napi"
+ ]
+ },
+ {
+ "type": "textbox",
+ "x": 41,
+ "y": 24,
+ "width": 25,
+ "height": 10,
+ "link": "demo",
+ "content": [
+ "§9§ndemo"
+ ]
+ }
+ ]
+}
diff --git a/config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_0_guidepage.json b/config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_0_guidepage.json
new file mode 100644
index 0000000..c501c92
--- /dev/null
+++ b/config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_0_guidepage.json
@@ -0,0 +1,148 @@
+{
+ "section": "指南页控件API",
+ "title": "指南页",
+ "stream": [
+ {
+ "type": "textbox",
+ "content": [
+ "这一页我们将学习如何编写指南页。",
+ "-------------------------------",
+ "先看一看一个简单里指南页示例。",
+ "§lJSON§r:",
+ "{",
+ " \"section\": \"section name here\",",
+ " \"title\": \"title here\",",
+ " \"stream\": [",
+ " {",
+ " \"type\": \"textbox\",",
+ " \"content\": [\"TextBox widget\"]",
+ " }",
+ " ],",
+ " \"fixed\": [",
+ " {",
+ " \"x\": 50,",
+ " \"y\": 100,",
+ " \"width\": 150,",
+ " \"height\": 40,",
+ " \"type\": 0,",
+ " \"content\": [\"TextBox widget\"]",
+ " }",
+ " ]",
+ "}",
+ "-------------------------------",
+ "§l目录§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "section",
+ "content": [
+ " 1.§nsection§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "title",
+ "content": [
+ " 2.§ntitle§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "stream",
+ "content": [
+ " 3.§nstream§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "fixed",
+ "content": [
+ " 4.§nfixed§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "ref": "section",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nsection§r (§4必须§r)",
+ "§l类型§r: String",
+ "§l说明§r: 指定页面属于哪个章节。",
+ "指南App会自动合并具有相同节名的页面并构建目录树。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "ref": "title",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §ntitle§r (§4必须§r)",
+ "§l类型§r: String",
+ "§l说明§r: 页标题。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "ref": "stream",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nstream§r (§4必须§r)",
+ "§l类型§r: Array",
+ "§l说明§r: 属于流布局的控件。 你不需要关心控件在流中的位置和大小,所有的排版都会自动完成。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "ref": "fixed",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nfixed§r (§4必须§r)",
+ "§l类型§r: Array",
+ "§l说明§r: 属于固定布局的控件。 您需要指定每个控件的位置和大小。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "content": [
+ "§l示例§r: 固定布局和流布局"
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "hover_text": ["流布局"],
+ "content": [
+ "§nMinecraft Formatting",
+ "§r§00 §11 §22 §33",
+ "§44 §55 §66 §77",
+ "§88 §99 §aa §bb",
+ "§cc §dd §ee §ff",
+ "§r§0k §kMinecraft",
+ "§rl §lMinecraft",
+ "§rm §mMinecraft",
+ "§rn §nMinecraft",
+ "§ro §oMinecraft",
+ "§rr §rMinecraft"
+ ]
+ }
+ ],
+ "fixed": [
+ {
+ "type": "image",
+ "x": 30,
+ "y": 800,
+ "stroke": 4278190335,
+ "hover_text": ["固定布局", "\"x\": 30","\"y\": 800","\"width\": 100","\"width\": 100"],
+ "form": "item",
+ "source": "minecraft:ender_pearl",
+ "width": 100,
+ "height": 100
+ }
+ ]
+}
diff --git a/config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_1_widget.json b/config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_1_widget.json
new file mode 100644
index 0000000..a1575f6
--- /dev/null
+++ b/config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_1_widget.json
@@ -0,0 +1,304 @@
+{
+ "section": "指南页控件API",
+ "title": "控件",
+ "stream": [
+ {
+ "type": "textbox",
+ "content": [
+ "这里我们将学习什么是 §4§l控件§r, 以及它的公共属性。",
+ "控件被渲染在指南页中,是一切的基础。 §n文本控件§r, §n图片控件§r, 等等",
+ "要使用控件,只需要将对应的控件配置写在 §l\"fixed\"§r 或者 §l\"stream\"§r下即可。",
+ "有一些公共属性、效果(样式)对所有控件都有效。",
+ "-------------------------------",
+ "§lJSON§r:",
+ "{",
+ " \"type\": \"type here\",",
+ " \"x\": 50,",
+ " \"y\": 100,",
+ " \"width\": 150,",
+ " \"height\": 40,",
+ " \"ref\": \"ref\",",
+ " \"stroke\": 0,",
+ " \"stroke_width\": 1,",
+ " \"fill\": 0,",
+ " \"link\": \"ref\"",
+ " \"hover_text\": [\"text here\"]",
+ "}",
+ "-------------------------------",
+ "§l目录§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "type",
+ "content": [
+ " 1.§ntype§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "xywh",
+ "content": [
+ " 2.§nx, y, width, height§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "ref",
+ "content": [
+ " 3.§nref§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "fill",
+ "content": [
+ " 4.§nfill§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "stroke",
+ "content": [
+ " 5.§nstroke§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "stroke_width",
+ "content": [
+ " 6.§nstroke_width§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "link",
+ "content": [
+ " 7.§nlink§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "hover",
+ "content": [
+ " 8.§nhover_text§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "ref": "type",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §ntype§r (§4必须§r)",
+ "§l类型§r: String",
+ "§l说明§r: 控件类型的唯一标识。通过api文档可以查看控件对应的控件类型标识。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "ref": "xywh",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nx, y, width, height§r (§4可选§r)",
+ "§l类型§r: Integer",
+ "§l说明§r: 控件的位置和大小。 在流布局中,通常不需要设置它(图片控件需要设置宽度和高度)。 在固定布局下,你必须设置这四个属性。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "ref": "ref",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nref§r (§4可选§r)",
+ "§l类型§r: String",
+ "§l缺省值§r: null",
+ "§l说明§r: 这是这个控件的一个引用标记。 同一页中的引用标记应该是唯一的。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "ref": "fill",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nfill§r (§6可选§r)",
+ "§l类型§r: Number",
+ "§l缺省值§r: 0",
+ "§l说明§r: 背景颜色。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "content": [
+ "§l示例§r: 4278190335 (0xFF0000FF)"
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "fill": 4278190335,
+ "content": [
+ "§nMinecraft Formatting",
+ "§r§00 §11 §22 §33",
+ "§44 §55 §66 §77",
+ "§88 §99 §aa §bb",
+ "§cc §dd §ee §ff",
+ "§r§0k §kMinecraft",
+ "§rl §lMinecraft",
+ "§rm §mMinecraft",
+ "§rn §nMinecraft",
+ "§ro §oMinecraft",
+ "§rr §rMinecraft"
+ ]
+ },
+ {
+ "type": "textbox",
+ "ref": "stroke",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nstroke§r (§6可选§r)",
+ "§l类型§r: Number",
+ "§l缺省值§r: 0",
+ "§l说明§r: 边框颜色"
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "content": [
+ "§l示例§r: 4278190335 (0xFF0000FF)"
+ ]
+ },
+ {
+ "type": "image",
+ "form": "item",
+ "source": "minecraft:ender_pearl",
+ "stroke": 4278190335,
+ "width": 50,
+ "height": 50
+ },
+ {
+ "type": "textbox",
+ "ref": "stroke_width",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nstroke_width§r (§6可选§r)",
+ "§l类型§r: Number",
+ "§l缺省值§r: 1",
+ "§l说明§r: 边框宽度。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "content": [
+ "§l示例§r: 5"
+ ]
+ },
+ {
+ "type": "image",
+ "form": "item",
+ "source": "minecraft:ender_pearl",
+ "stroke": 4278190335,
+ "stroke_width": 5,
+ "width": 50,
+ "height": 50
+ },
+ {
+ "type": "textbox",
+ "ref": "link",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nlink§r (§6可选§r)",
+ "§l类型§r: String",
+ "§l缺省值§r: null",
+ "§l说明§r: 单击可跳转到指定引用的位置。需要与引用标记一起使用,目标是ref。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "content": [
+ "§l示例§r: \"P2\""
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "fill": 4286430975,
+ "hover_text": ["\"ref\": \"P1\""],
+ "ref": "P1",
+ "link": "P2",
+ "content": ["点我!"]
+ },
+ {
+ "type": "textbox",
+ "content": [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "content": [
+ "§l示例§r: \"P1\""
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "fill": 4286430975,
+ "hover_text": ["\"ref\": \"P2\""],
+ "ref": "P2",
+ "link": "P1",
+ "content": ["点我!"]
+ },
+ {
+ "type": "textbox",
+ "ref": "hover",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nhover_text§r (§6可选§r)",
+ "§l类型§r: Array",
+ "§l缺省值§r: null",
+ "§l说明§r: 鼠标悬停时的展示文本。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "content": [
+ "§l示例§r: [\"这是\",\"GT图标\"]"
+ ]
+ },
+ {
+ "type": "image",
+ "hover_text": ["这是","GT图标"],
+ "form": "resource",
+ "source": "gregtech:textures/gui/icon/gregtech_logo.png",
+ "width": 100,
+ "height": 100
+ }
+ ],
+ "fixed": []
+}
diff --git a/config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_2_textbox.json b/config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_2_textbox.json
new file mode 100644
index 0000000..83c645b
--- /dev/null
+++ b/config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_2_textbox.json
@@ -0,0 +1,256 @@
+{
+ "section": "指南页控件API",
+ "title": "1. 文本控件",
+ "stream": [
+ {
+ "type": "textbox",
+ "content": [
+ "我们将学习指南中最常用的控件 §4§l文本控件§r。 因此,您应该仔细阅读API文档。",
+ "-------------------------------",
+ "§l控件类型标识§r: §ntextbox§r",
+ "-------------------------------",
+ "§lJSON§r:",
+ "{",
+ " \"type\": \"textbox\",",
+ " \"space\": 1,",
+ " \"fontSize\": 9,",
+ " \"fontColor\": 4278190080,",
+ " \"isCenter\": false,",
+ " \"isShadow\": false,",
+ " \"content\": [\"content here!\"]",
+ "}",
+ "-------------------------------",
+ "§l目录§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "content",
+ "content": [
+ " 1.§ncontent§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "space",
+ "content": [
+ " 2.§nspace§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "fontSize",
+ "content": [
+ " 3.§nfontSize§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "fontColor",
+ "content": [
+ " 4.§nfontColor§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "isCenter",
+ "content": [
+ " 5.§nisCenter§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "isShadow",
+ "content": [
+ " 6.§nisShadow§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "ref": "content",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §ncontent§r (§4必须§r)",
+ "§l类型§r: Array",
+ "§l说明§r: 文本内容数组,每一项都会换行。 文本太长会自动换行。 (支持Minecraft格式代码) "
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "stroke": 4294901760,
+ "content": [
+ "§l示例§r: [...]",
+ "§nMinecraft Formatting",
+ "§r§00 §11 §22 §33",
+ "§44 §55 §66 §77",
+ "§88 §99 §aa §bb",
+ "§cc §dd §ee §ff",
+ "§r§0k §kMinecraft",
+ "§rl §lMinecraft",
+ "§rm §mMinecraft",
+ "§rn §nMinecraft",
+ "§ro §oMinecraft",
+ "§rr §rMinecraft"
+ ]
+ },
+ {
+ "type": "textbox",
+ "ref": "space",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nspace§r (§6可选§r)",
+ "§l类型§r: Number",
+ "§l缺省值§r: 1",
+ "§l说明§r: 文本行之间的间隔。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "stroke": 4294901760,
+ "space": 5,
+ "content": [
+ "§l示例§r: 5",
+ "§nMinecraft Formatting",
+ "§r§00 §11 §22 §33",
+ "§44 §55 §66 §77",
+ "§88 §99 §aa §bb",
+ "§cc §dd §ee §ff",
+ "§r§0k §kMinecraft",
+ "§rl §lMinecraft",
+ "§rm §mMinecraft",
+ "§rn §nMinecraft",
+ "§ro §oMinecraft",
+ "§rr §rMinecraft"
+ ]
+ },{
+ "type": "textbox",
+ "ref": "fontSize",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nfontSize§r (§6可选§r)",
+ "§l类型§r: Number",
+ "§l缺省值§r: 9",
+ "§l说明§r: 字体大小。(实际上是字体的高度)"
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "stroke": 4294901760,
+ "fontSize": 5,
+ "content": [
+ "§l示例§r: 5",
+ "§nMinecraft Formatting",
+ "§r§00 §11 §22 §33",
+ "§44 §55 §66 §77",
+ "§88 §99 §aa §bb",
+ "§cc §dd §ee §ff",
+ "§r§0k §kMinecraft",
+ "§rl §lMinecraft",
+ "§rm §mMinecraft",
+ "§rn §nMinecraft",
+ "§ro §oMinecraft",
+ "§rr §rMinecraft"
+ ]
+ },{
+ "type": "textbox",
+ "ref": "fontColor",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nfontColor§r (§6可选§r)",
+ "§l类型§r: Number",
+ "§l缺省值§r: 4278190080",
+ "§l说明§r: 文本的默认颜色。你也可以用特殊的符号设置颜色(Minecraft提供的)。但也许有时候你需要它。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "stroke": 4294901760,
+ "fontColor": 5,
+ "content": [
+ "§l示例§r: 4294901760 (0xFFFF0000)",
+ "§nMinecraft Formatting",
+ "§r§00 §11 §22 §33",
+ "§44 §55 §66 §77",
+ "§88 §99 §aa §bb",
+ "§cc §dd §ee §ff",
+ "§r§0k §kMinecraft",
+ "§rl §lMinecraft",
+ "§rm §mMinecraft",
+ "§rn §nMinecraft",
+ "§ro §oMinecraft",
+ "§rr §rMinecraft"
+ ]
+ },
+ {
+ "type": "textbox",
+ "ref": "isCenter",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nisCenter§r (§6可选§r)",
+ "§l类型§r: Boolean",
+ "§l缺省值§r: false",
+ "§l说明§r: 文本水平居中。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": false,
+ "stroke": 4294901760,
+ "content": [
+ "§l示例§r: false",
+ "§nMinecraft Formatting",
+ "§r§00 §11 §22 §33",
+ "§44 §55 §66 §77",
+ "§88 §99 §aa §bb",
+ "§cc §dd §ee §ff",
+ "§r§0k §kMinecraft",
+ "§rl §lMinecraft",
+ "§rm §mMinecraft",
+ "§rn §nMinecraft",
+ "§ro §oMinecraft",
+ "§rr §rMinecraft"
+ ]
+ },{
+ "type": "textbox",
+ "ref": "isShadow",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nisShadow§r (§6可选§r)",
+ "§l类型§r: Boolean",
+ "§l缺省值§r: false",
+ "§l说明§r: 渲染文本阴影。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "stroke": 4294901760,
+ "isShadow": true,
+ "content": [
+ "§l示例§r: true",
+ "§nMinecraft Formatting",
+ "§r§00 §11 §22 §33",
+ "§44 §55 §66 §77",
+ "§88 §99 §aa §bb",
+ "§cc §dd §ee §ff",
+ "§r§0k §kMinecraft",
+ "§rl §lMinecraft",
+ "§rm §mMinecraft",
+ "§rn §nMinecraft",
+ "§ro §oMinecraft",
+ "§rr §rMinecraft"
+ ]
+ }
+ ],
+ "fixed": []
+}
diff --git a/config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_3_image.json b/config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_3_image.json
new file mode 100644
index 0000000..9098438
--- /dev/null
+++ b/config/gregtech/terminal/guide/tutorials/zh_cn/guide_widget_api/api_3_image.json
@@ -0,0 +1,207 @@
+{
+ "section": "指南页控件API",
+ "title": "2. 图片控件",
+ "stream": [
+ {
+ "type": "textbox",
+ "content": [
+ "我们将学习实用的§4§l图片控件§r。这里支持三种不同形式的图像:§4Url§r, §4Item§r, and §4ResourceLocation§r。别担心,一切都很容易。",
+ "-------------------------------",
+ "§l控件类型标识§r: §nimage§r",
+ "-------------------------------",
+ "§lJSON§r:",
+ "{",
+ " \"type\": \"image\",",
+ " \"form\": \"Item\",",
+ " \"source\": \"minecraft:ender_pearl\",",
+ " \"width\": 100,",
+ " \"height\": 100",
+ "}",
+ "-------------------------------",
+ "§l目录§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "form",
+ "content": [
+ " 1.§nform§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "source",
+ "content": [
+ " 2.§nsource§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "link": "wh",
+ "content": [
+ " 3.§nwidth, height§r"
+ ]
+ },
+ {
+ "type": "textbox",
+ "ref": "form",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nform§r (§4必须§r)",
+ "§l类型§r: String",
+ "§l说明§r: 它只能是 §4Url§r, §4Item§r, 或 §4ResourceLocation§r中的一个。",
+ " \"url\" -- image url.",
+ " \"item\" -- The registered name of the Item in game.",
+ " \"resource\" -- The resource location."
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "content": [
+ "§l示例§r: \"url\""
+ ]
+ },
+ {
+ "type": "image",
+ "hover_text": ["https://z3.ax1x.com/2021/07/29/Wb4Djs.gif"],
+ "form": "url",
+ "source": "https://z3.ax1x.com/2021/07/29/Wb4Djs.gif",
+ "stroke": 4278190080,
+ "stroke_width": 2,
+ "width": 100,
+ "height": 100
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "content": [
+ "§l示例§r: \"item\""
+ ]
+ },
+ {
+ "type": "image",
+ "hover_text": ["minecraft:ender_pearl"],
+ "form": "item",
+ "source": "minecraft:ender_pearl",
+ "width": 100,
+ "height": 100
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "content": [
+ "§l示例§r: \"resource\""
+ ]
+ },
+ {
+ "type": "image",
+ "hover_text": ["gregtech:textures/gui/icon/coke_oven.png"],
+ "form": "resource",
+ "source": "gregtech:textures/gui/icon/coke_oven.png",
+ "width": 100,
+ "height": 100
+ },
+ {
+ "type": "textbox",
+ "ref": "source",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nsource§r (§4必须§r)",
+ "§l类型§r: String",
+ "§l说明§r: The source of the picture. The three images above correspond to the following sources:"
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "content": [
+ "§l示例§r: \"https://z3.ax1x.com/2021/07/29/Wb4Djs.gif\""
+ ]
+ },
+ {
+ "type": "image",
+ "hover_text": ["https://z3.ax1x.com/2021/07/29/Wb4Djs.gif"],
+ "form": "url",
+ "source": "https://z3.ax1x.com/2021/07/29/Wb4Djs.gif",
+ "stroke": 4278190080,
+ "stroke_width": 2,
+ "width": 100,
+ "height": 100
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "content": [
+ "§l示例§r: \"minecraft:ender_pearl\""
+ ]
+ },
+ {
+ "type": "image",
+ "hover_text": ["minecraft:ender_pearl"],
+ "form": "item",
+ "source": "minecraft:ender_pearl",
+ "width": 100,
+ "height": 100
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "content": [
+ "§l示例§r: \"gregtech:textures/gui/icon/coke_oven.png\""
+ ]
+ },
+ {
+ "type": "image",
+ "hover_text": ["gregtech:textures/gui/icon/coke_oven.png"],
+ "form": "resource",
+ "source": "gregtech:textures/gui/icon/coke_oven.png",
+ "width": 100,
+ "height": 100
+ },
+ {
+ "type": "textbox",
+ "ref": "wh",
+ "content": [
+ "-------------------------------",
+ "",
+ "§l属性§r: §nwidth, height§r (§4必须§r)",
+ "§l类型§r: Integer",
+ "§l说明§r: 图片尺寸。"
+ ]
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "content": [
+ "§l示例§r: \"50, 50\""
+ ]
+ },
+ {
+ "type": "image",
+ "hover_text": ["minecraft:ender_pearl"],
+ "form": "item",
+ "source": "minecraft:ender_pearl",
+ "width": 50,
+ "height": 50
+ },
+ {
+ "type": "textbox",
+ "isCenter": true,
+ "content": [
+ "§l示例§r: \"100, 50\""
+ ]
+ },
+ {
+ "type": "image",
+ "hover_text": ["minecraft:ender_pearl"],
+ "form": "item",
+ "source": "minecraft:ender_pearl",
+ "width": 100,
+ "height": 50
+ }
+ ],
+ "fixed": []
+}
diff --git a/config/gregtech/terminal/guide/tutorials/zh_cn/resource_pack/emissive_texture.json b/config/gregtech/terminal/guide/tutorials/zh_cn/resource_pack/emissive_texture.json
new file mode 100644
index 0000000..dfef1a0
--- /dev/null
+++ b/config/gregtech/terminal/guide/tutorials/zh_cn/resource_pack/emissive_texture.json
@@ -0,0 +1 @@
+{"section":"资源包","title":"自定义发光材质","stream":[{"type":"textbox","content":["开发人员和资源包作者可以很容易地有发光材质和设置泛光效果。\n\n§l目录:"]},{"type":"textbox","link":"emissive","content":["1. §1发光材质"]},{"type":"textbox","link":"bloom","content":["2.§1 泛光"]},{"type":"textbox","link":"demo","content":["3. §1示例"]},{"type":"textbox","ref":"emissive","content":["§l发光材质"]},{"type":"textbox","content":["* 对于常规模型: 与§4CTM§r相似,你只需要为你想要有发射效果的材质配置mcmeta文件即可。"]},{"type":"card","fill":-3745585,"width":190,"height":100,"isShadow":true},{"type":"textbox","content":["这里的§2light §r表示它发出的默认光级别(从0~15)。另外,你也可以像CTM一样把sky和block分开设置。"]},{"type":"textbox","content":["* 对于CEu机器: 他们材质大多数在 assets/textures/blocks/machines 和 assets/textures/overlay/machines下。 你不需要为他们设置mcmeta文件。只需为发光部分添加一个名为 \"XXX_emissive.png\"的材质即可。"]},{"type":"textbox","content":["§l泛光"],"ref":"bloom"},{"type":"textbox","content":["* 对于CEu机器: 你不需要修改任何东西,所有发光的材质都自带泛光。\n\n* 对于基本模型: 你只需要在mcmeta文件中添加额外的一行。 (§2\"layer\"§r: \"BLOOM\")"]},{"type":"card","fill":-3745585,"width":190,"height":110,"isShadow":true},{"type":"textbox","ref":"demo","content":["§l示例"]},{"type":"image","form":"url","source":"https://user-images.githubusercontent.com/18493855/138578815-d2d4e357-8080-4d57-b8ac-61235eac8c2a.png","width":190,"height":130},{"type":"image","form":"url","source":"https://user-images.githubusercontent.com/18493855/138578838-b9e6a16d-e348-4fea-8ab4-8a940e1ecd0f.png","width":190,"height":100},{"type":"image","form":"url","source":"https://user-images.githubusercontent.com/18493855/138578853-9a2497f4-e1f5-45e9-ab64-26b5eb859139.png","width":190,"height":110}],"fixed":[{"type":"textbox","x":8,"y":171,"width":181,"height":90,"content":["{\n §2\"ctm\"§r: {\n §2\"ctm_version\"§r: 1,\n §2\"gregtech:§r true,\n §2\"extra\"§r: {\n §2\"light\"§r: 15\n }\n }\n}"]},{"type":"textbox","x":7,"y":466,"width":181,"height":100,"content":["{\n §2\"ctm\"§r: {\n §2\"ctm_version\"§r: 1,\n §2\"layer\"§r: \"BLOOM\",\n §2\"gregtech\"§r true,\n §2\"extra\"§r: {\n §2\"light\"§r: 15\n }\n }\n}"]}]}
diff --git a/config/gregtech/terminal/guide/tutorials/zh_cn/terminal/terminal_hardware.json b/config/gregtech/terminal/guide/tutorials/zh_cn/terminal/terminal_hardware.json
new file mode 100644
index 0000000..ebfa564
--- /dev/null
+++ b/config/gregtech/terminal/guide/tutorials/zh_cn/terminal/terminal_hardware.json
@@ -0,0 +1 @@
+{"section":"终端","title":"Hardware","stream":[{"type":"textbox","content":["Current supported §4§lhardware§r:"]},{"type":"textbox","link":"battery","content":[" 1.§nBattery"]},{"type":"textbox","link":"device","content":[" 2.§nDevice"]},{"type":"textbox","isCenter":true,"isShadow":false,"content":["§lBattery"],"ref":"battery"},{"type":"card","fill":-2172721,"width":170,"height":90,"isShadow":true},{"type":"textbox","ref":"device","isCenter":true,"content":["\n\n§lDevice"]},{"type":"card","fill":-2172721,"width":170,"height":113,"isShadow":true}],"fixed":[{"type":"textbox","x":18,"y":92,"width":160,"height":30,"content":["All §4§lresuable§r batteries could be used as the §lBattery Hardware"]},{"type":"textbox","x":53,"y":229,"width":102,"height":10,"content":["Wireless transmitter"]},{"type":"slots","x":47,"y":136,"width":100,"height":18,"item_list":[{"id":"gregtech:meta_item_1","damage":732,"count":1},{"id":"gregtech:meta_item_1","damage":733,"count":1},{"id":"gregtech:meta_item_1","damage":742,"count":1},{"id":"gregtech:meta_item_1","damage":748,"count":1},{"id":"gregtech:meta_item_1","damage":753,"count":1}]},{"type":"slots","x":-16,"y":224,"width":100,"height":18,"item_list":[{"id":"gregtech:meta_item_1","damage":468,"count":1}]},{"type":"slots","x":-16,"y":250,"width":100,"height":18,"item_list":[{"id":"gregtech:meta_item_1","damage":465,"count":1}]},{"type":"textbox","x":52,"y":253,"width":100,"height":10,"content":["Scanner"]},{"type":"textbox","x":52,"y":279,"width":100,"height":10,"content":["Solar"]},{"type":"slots","x":12,"y":275,"width":45,"height":18,"item_list":[{"id":"gregtech:meta_item_1","damage":333,"count":1}]},{"type":"slots","x":22,"y":302,"width":25,"height":18,"item_list":[{"id":"gregtech:meta_item_1","damage":469,"count":1}]},{"type":"textbox","x":52,"y":306,"width":100,"height":10,"content":["Camera"]}]}