Skip to content

Commit b9f3d5f

Browse files
committed
feat: add Max_line and Max_lineHeight
1 parent da11820 commit b9f3d5f

3 files changed

Lines changed: 39 additions & 33 deletions

File tree

src/config.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@
22

33
`game` 文件夹下,有一个名为 `config.txt` 的文件,你可以在这个文件中填写你游戏的相关信息(使用图形化编辑器可以直接编辑)。
44

5-
| 参数 | 描述 |
6-
| :------------ |:---------------------------|
7-
| Game_name | 游戏名称 |
8-
| Game_key | 游戏识别码,长度 6-10 字符,不要与别的游戏重复 |
9-
| Title_img | 标题图片,放在 `background` 文件夹 |
10-
| Title_bgm | 标题背景音乐,放在 `bgm` 文件夹 |
11-
| Game_Logo | 游戏 Logo,可以显示多个,用 \| 分割 |
12-
| Enable_Appreciation | 是否启用鉴赏功能,包括 CG 和背景音乐鉴赏。 |
13-
| Default_Language | 默认语言,可设置为 'zh_CN', 'zh_TW', 'en', 'ja', 'fr', 'de' |
14-
| Show_panic | 是否启用紧急回避功能,设置为 true 或 false |
15-
| Legacy_Expression_Blend_Mode | 是否启用 Live2D 的旧表情混合模式,设置为 true 或 false |
5+
| 参数 | 描述 |
6+
| :--------------------------- | :---------------------------------------------------------- |
7+
| Game_name | 游戏名称 |
8+
| Game_key | 游戏识别码,长度 6-10 字符,不要与别的游戏重复 |
9+
| Title_img | 标题图片,放在 `background` 文件夹 |
10+
| Title_bgm | 标题背景音乐,放在 `bgm` 文件夹 |
11+
| Game_Logo | 游戏 Logo,可以显示多个,用 \| 分割 |
12+
| Enable_Appreciation | 是否启用鉴赏功能,包括 CG 和背景音乐鉴赏。 |
13+
| Default_Language | 默认语言,可设置为 'zh_CN', 'zh_TW', 'en', 'ja', 'fr', 'de' |
14+
| Show_panic | 是否启用紧急回避功能,设置为 true 或 false |
15+
| Legacy_Expression_Blend_Mode | 是否启用 Live2D 的旧表情混合模式,设置为 true 或 false |
16+
| Max_line | textBox限制行数,如果没有设置则启用默认逻辑 (2em) |
17+
| Max_lineHeight | textBox行高,当开启Max_line时生效,单位:em |
1618

1719
以下是配置文件示例:
1820

src/en/config.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@
22

33
Under the `game` folder, there is a file named `config.txt`, you can fill in the relevant information of your game in this file (you can edit it directly using a graphical editor).
44

5-
| Parameter | Description |
6-
| :------------ | :----------------------------------------------- |
7-
| Game_name | Game name |
8-
| Game_key | Game identification code, 6-10 characters in length, do not repeat with other games |
9-
| Title_img | Title picture, put it in the `background` folder |
10-
| Title_bgm | Title background music, put it in the `bgm` folder |
11-
| Game_Logo | Game Logo, multiple can be displayed, separated by \| |
12-
| Enable_Appreciation | Whether to enable the Appreciation feature, including CG and background music appreciation. |
13-
| Default_Language | Default language, can be set to 'zh_CN', 'zh_TW', 'en', 'ja', 'fr', 'de' |
14-
| Show_panic | Whether to enable the panic button feature, set to true or false |
15-
| Legacy_Expression_Blend_Mode | Whether to enable legacy expression blend mode for Live2D, set to true or false |
5+
| Parameter | Description |
6+
| :--------------------------- | :------------------------------------------------------------------------------------------------------ |
7+
| Game_name | Game name |
8+
| Game_key | Game identification code, 6-10 characters in length, do not repeat with other games |
9+
| Title_img | Title picture, put it in the `background` folder |
10+
| Title_bgm | Title background music, put it in the `bgm` folder |
11+
| Game_Logo | Game Logo, multiple can be displayed, separated by \| |
12+
| Enable_Appreciation | Whether to enable the Appreciation feature, including CG and background music appreciation. |
13+
| Default_Language | Default language, can be set to 'zh_CN', 'zh_TW', 'en', 'ja', 'fr', 'de' |
14+
| Show_panic | Whether to enable the panic button feature, set to true or false |
15+
| Legacy_Expression_Blend_Mode | Whether to enable legacy expression blend mode for Live2D, set to true or false |
16+
| Max_line | The limit for the number of lines in the text box. If not set, the default logic (2em) will be enabled. |
17+
| Max_lineHeight | The height of each line in the text box. It takes effect when Max_line is enabled. Unit: em |
1618

1719
The following is a sample configuration file:
1820

src/ja/config.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@
22

33
`game` フォルダの下に `config.txt` というファイルがあり、このファイルにゲームの関連情報を記入することができます(グラフィカルなエディタを使って直接編集することもできます)。
44

5-
| パラメータ | 説明 |
6-
| :------------ | :----------------------------------------------- |
7-
| Game_name | ゲーム名 |
8-
| Game_key | ゲーム識別コード、長さ 6-10 文字、他のゲームと重複しないようにしてください |
9-
| Title_img | タイトル画像、`background` フォルダに入れてください |
10-
| Title_bgm | タイトルの BGM、`bgm` フォルダに入れてください |
11-
| Game_Logo | ゲームのロゴ、複数表示することができ、\| で区切ります |
12-
| Enable_Appreciation | 鑑賞機能(CGおよび背景音楽の鑑賞を含む)を有効にするかどうか。 |
13-
| Default_Language | デフォルト言語、「zh_CN」、「zh_TW」、「en」、「ja」、「fr」、「de」に設定可能。 |
14-
| Show_panic | パニックボタン機能を有効にするかどうか、true または false に設定 |
15-
| Legacy_Expression_Blend_Mode | Live2D の旧表情ブレンドモードを有効にするかどうか、true または false に設定 |
5+
| パラメータ | 説明 |
6+
| :--------------------------- | :------------------------------------------------------------------------------- |
7+
| Game_name | ゲーム名 |
8+
| Game_key | ゲーム識別コード、長さ 6-10 文字、他のゲームと重複しないようにしてください |
9+
| Title_img | タイトル画像、`background` フォルダに入れてください |
10+
| Title_bgm | タイトルの BGM、`bgm` フォルダに入れてください |
11+
| Game_Logo | ゲームのロゴ、複数表示することができ、\| で区切ります |
12+
| Enable_Appreciation | 鑑賞機能(CGおよび背景音楽の鑑賞を含む)を有効にするかどうか。 |
13+
| Default_Language | デフォルト言語、「zh_CN」、「zh_TW」、「en」、「ja」、「fr」、「de」に設定可能。 |
14+
| Show_panic | パニックボタン機能を有効にするかどうか、true または false に設定 |
15+
| Legacy_Expression_Blend_Mode | Live2D の旧表情ブレンドモードを有効にするかどうか、true または false に設定 |
16+
| Max_line | textbox行数を制限しなかったら起用の設置は黙認論理(2 em) |
17+
| Max_lineHeight | textbox行高、max_line開くとき発効し、単位はem |
1618

1719
以下は設定ファイルの例です。
1820

0 commit comments

Comments
 (0)