From bdbcec2f05597e25ce9cde026e8873ca771d9102 Mon Sep 17 00:00:00 2001 From: shishanyue <62888460+shishanyue@users.noreply.github.com> Date: Tue, 18 Jul 2023 12:11:53 +0800 Subject: [PATCH] =?UTF-8?q?RW-Engine=20LineTextView=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rustedwarfareapicode/.vitepress/config.ts | 1 + rustedwarfareapicode/index.md | 3 ++ .../src/RW-Engine/quick-start.md | 44 +++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 rustedwarfareapicode/src/RW-Engine/quick-start.md diff --git a/rustedwarfareapicode/.vitepress/config.ts b/rustedwarfareapicode/.vitepress/config.ts index 457263d..691e644 100644 --- a/rustedwarfareapicode/.vitepress/config.ts +++ b/rustedwarfareapicode/.vitepress/config.ts @@ -13,6 +13,7 @@ export default defineConfig({ { text: '地图API', link: '/src/Map/teada' }, { text: '调试API', link: '/src/Debug/test' }, { text: '编写指南', link: '/api-dev' }, + { text: 'RW-Engine指南', link: '/quick-start' } ], docFooter: { diff --git a/rustedwarfareapicode/index.md b/rustedwarfareapicode/index.md index b6c0881..cf1672c 100644 --- a/rustedwarfareapicode/index.md +++ b/rustedwarfareapicode/index.md @@ -34,5 +34,8 @@ features: - title: 调试代码表 details: 学习铁锈的高级调试代码表(仅Android) linkText: 让我们立刻开始吧![开发中] + - title: RW-Engine指南 + details: 学习铁锈Mod RW-Engine的使用(仅Android) + linkText: 让我们立刻开始吧![开发中] --- diff --git a/rustedwarfareapicode/src/RW-Engine/quick-start.md b/rustedwarfareapicode/src/RW-Engine/quick-start.md new file mode 100644 index 0000000..c3052eb --- /dev/null +++ b/rustedwarfareapicode/src/RW-Engine/quick-start.md @@ -0,0 +1,44 @@ +--- +outline: deep +--- + +# **QuickStart** + +## 一.安装RW-Engine + +### 下载RW-Engine + 蓝奏云: + +### 安装RW-Engine + 解压下载的ZIP,将里面的RW_Engine这个文件夹整个复制到你的mod的目录下。 + + 文件结构: + ---units + ---你的mod1 + ---RW_Engine + ---mod-info.txt + ---......... + ---你的mod2 + +## 二.使用RW-Engine + +::: tip +如没特殊注明,函数均支持commonCallBack +::: + +### LineTextView +::: info +函数列表:\ +1.setText \ +Data: ("text",type="string") \ +设置显示的文本 \ +2.setTextMax \ +Data: ("textMax",type="number") \ +设置一行所能显示的最大文本数量 \ +3.setTextColor \ +Data: ("commonHeadLength",type="number") ("indexStart",type="number") ("indexEnd",type="number") ("color",type="number") \ +设置文本的颜色 \ +4.setTextScale \ +Data: ("textScale",type="number") \ +设置文本的缩放 \ +::: \ No newline at end of file