同步官网文档8m_25d
This commit is contained in:
@@ -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属性"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user