同步官网文档8m_25d

This commit is contained in:
kwiilh
2025-08-25 18:36:29 +08:00
parent 4dc0ecf18d
commit 9e8855eeb4
5089 changed files with 8798 additions and 4799 deletions

View File

@@ -1,5 +1,5 @@
---
front:
front:
hard: 入门
time: 分钟
sidebarDepth: 4
@@ -57,8 +57,8 @@ sidebarDepth: 4
"titleArea":{
"offset": [-10,0],
"textSize1": 9,
"textSize2":8,
"padding": 1
"textSize2":8,
"padding": 1
},
"pageConfig": {
"subtitle":"默认的副标题"
@@ -100,20 +100,20 @@ sidebarDepth: 4
"titleArea":{
"offset": [-10,0],
"textSize1": 9,
"textSize2":8,
"padding": 1
"textSize2":8,
"padding": 1
},
"categoryConfig":{
"contentTextSize": 12
},
"pageConfig":{
"contentTextSize": 8
}
}
}
```
这些默认值我们称为配置默认值如果目录json文件章节json文件中均无对"**contentTextSize**"属性定义则取这里的默认值。而如果book.json中没有定义"categoryConfig""entryConfig""pageConfig",则它们的属性值取系统默认值。
2. 因为支持富文本,如果你想修改文字样式,可以通过[格式化代码](https://zh.minecraft.wiki/w/%E6%A0%BC%E5%BC%8F%E5%8C%96%E4%BB%A3%E7%A0%81)来修改。
3. 所有的文本都遵循UI控件中的Label控件规范具体见[UI说明文档-Label](../../../18-界面与交互/30-UI说明文档.md#label)。
@@ -197,7 +197,7 @@ sidebarDepth: 4
"content": "subtitle是内容页的标题image是图片的路径摆放到resource_pack的ui文件夹中即可",
"image": "textures/ui/myCustomBook/testImage_2",
"info": "图片说明对应info属性"
},
},
{
"type": "imagePage",
"subtitle": "内容页的标题3",
@@ -205,7 +205,7 @@ sidebarDepth: 4
"image": "textures/ui/myCustomBook/testImage_3",
"info": "图片说明对应info属性"
}
]
]
}
```