Skip to content

Commit 21f305c

Browse files
committed
更新了一点图像的-allureluoli
1 parent a0ec888 commit 21f305c

2 files changed

Lines changed: 114 additions & 2 deletions

File tree

rustedwarfareapicode/src/Unit/canbuild.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ canBuild_NAME = 组名 如果不填写此组名 将默认拥有一个命名为
5050
name应填写单位[core]内中 name属性的名称,
5151
它决定了需要建造哪个单位。
5252

53-
::: tip
53+
::: warning
5454
注意!
5555
如果你填了两个相同的name,建造栏会自动合并,建造栏中不会出现两个相同的单位。<br>
5656
其中根据代码自上而下的先后顺序判断优先级。
Lines changed: 113 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,113 @@
1-
xxxx
1+
---
2+
outline: deep
3+
---
4+
5+
# **[graphics]图像组**
6+
7+
### image
8+
#### image-代码简介
9+
代码:image 中文释义:图像 类型:字符型
10+
::: danger
11+
如果需要隐藏单位的图像请使用空白透明的图像替代。<br>
12+
请勿直接忽略此项,会直接报错导致此单位代码无法加载。
13+
:::
14+
::: warning
15+
铁锈战争支持多种图片格式,如:jpg,png,bmp...等,但也有一部分的格式并不支持,如webp这种的。<br>
16+
尽量使用png格式的图片也许不失为一个好的选择。
17+
:::
18+
19+
#### image-用法
20+
填写图片文件或图片文件的路径,图片文件将作为单位的主体图像。
21+
22+
::: tip
23+
路径可使用相对路径或绝对路径。<br>
24+
绝对路径中的根目录是以模组包内的首层目录为根目录的。<br>
25+
相对路径则是以ini代码文件的目录为起始目录。<br>
26+
图片和代码在同一目录下直接填写路径的用法相当于使用了相对路径。<br>
27+
此方法基本适用于[graphics]组内所以需要引用图像文件的地方。
28+
:::
29+
30+
#### image-示例
31+
```ini
32+
[graphics]
33+
image: ROOT:\124\255\tank.png # 绝对路径
34+
35+
[graphics]
36+
image: \124\255\tank.png # 相对路径
37+
38+
```
39+
40+
### image_back
41+
#### image_back-代码简介
42+
代码:image_back 中文释义:背景图像 类型:字符型
43+
44+
#### image_back-用法
45+
填写图片文件或图片文件的路径,图片文件将作为单位的背景图像。
46+
47+
::: tip
48+
在单位后面后面绘制的图像,不随单位转动。<br>
49+
如无需要可以选择不填,可以作为单位角标和工厂底图使用。
50+
:::
51+
52+
#### image_back-示例
53+
```ini
54+
[graphics]
55+
image_back: ROOT:\124\255\background.png # 绝对路径
56+
57+
[graphics]
58+
image_back: \124\255\background.png # 相对路径
59+
```
60+
61+
### image_wreak
62+
#### image_wreak-代码简介
63+
代码:image_wreak 中文释义:死亡图像 类型:字符型
64+
65+
#### image_wreak-用法
66+
填写图片文件或图片文件的路径,图片文件将作为单位的死亡图像。
67+
68+
::: tip
69+
作为在单位后面死亡后绘制的图像。<br>
70+
不填写此项不会影响代码的运行,同时可以使用NONE作为路径名将表示没有任何图像。
71+
:::
72+
73+
::: info
74+
如果不填死亡图像,默认将以单位的主体图像作为死亡图像使用。
75+
:::
76+
77+
#### image_wreak-示例
78+
```ini
79+
[graphics]
80+
image_wreak: ROOT:\124\255\image_wreak.png # 绝对路径
81+
82+
[graphics]
83+
image_wreak: \124\255\image_wreak.png # 相对路径
84+
85+
[graphics]
86+
image_wreak: NONE
87+
```
88+
89+
### image_shield
90+
#### image_shield-代码简介
91+
代码:image_shield 中文释义:护盾图像 类型:字符型
92+
93+
#### image_shield-用法
94+
填写图片文件或图片文件的路径,图片文件将作为单位的护盾图像。
95+
96+
::: tip
97+
作为在单位的护盾所绘制的图像。<br>
98+
本项仅作为自定义护盾图像使用,如设置护盾且未填此项时将使用默认护盾。<br>
99+
不填写此项不会影响代码的运行,同时可以使用NONE作为路径名将表示没有任何图像。
100+
:::
101+
102+
#### image_shield-示例
103+
```ini
104+
[graphics]
105+
image_shield: ROOT:\124\255\image_shield.png # 绝对路径
106+
107+
[graphics]
108+
image_shield: \124\255\image_shield.png # 相对路径
109+
110+
[graphics]
111+
image_shield: NONE
112+
```
113+

0 commit comments

Comments
 (0)