Skip to content

Commit 9b6035c

Browse files
committed
graphice_core_update
1 parent 24632b2 commit 9b6035c

1 file changed

Lines changed: 138 additions & 0 deletions

File tree

rustedwarfareapicode/src/Unit/graphics.md

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,5 +257,143 @@ teamColoringMode:pureGreen # 纯绿 默认就是这个
257257
[graphics]
258258
scaleImagesTo:12.5
259259

260+
```
261+
262+
### imageScale
263+
#### imageScale-代码简介
264+
代码:imageScale 中文释义:图像缩放比例 类型:浮点数
265+
266+
#### imageScale-用法
267+
填写需要缩放的百分比,缩放单位主体图像的大小。
268+
269+
::: tip
270+
效果基本与scaleImagesTo相同,但百分比更为直观。<br>
271+
默认值为1,也就是100%。
272+
:::
273+
274+
#### imageScale-示例
275+
```ini
276+
[graphics]
277+
imageScale:12.5
278+
279+
```
280+
281+
### drawLayer
282+
#### drawLayer-代码简介
283+
代码:drawLayer 中文释义:绘制图层 类型:字符串
284+
285+
#### drawLayer-用法
286+
填写希望图像所在的图层,以影响单位图像的绘制。
287+
288+
::: tip
289+
官方给出了8种可填写的图层样式,具体可见示例。<br>
290+
陆上单位默认图层便是ground或ground2,运输船这类便是ground2。
291+
:::
292+
293+
#### drawLayer-示例
294+
```ini
295+
[graphics]
296+
drawLayer:ground
297+
298+
[graphics]
299+
drawLayer:ground2
300+
301+
[graphics]
302+
drawLayer:wreaks
303+
304+
[graphics]
305+
drawLayer:underwater
306+
307+
[graphics]
308+
drawLayer:bottom
309+
310+
[graphics]
311+
drawLayer:experimentals
312+
313+
[graphics]
314+
drawLayer:air
315+
316+
[graphics]
317+
drawLayer:top
318+
319+
```
320+
321+
### whenBeingBuiltMakeTransparentTill
322+
#### whenBeingBuiltMakeTransparentTill-代码简介
323+
代码:whenBeingBuiltMakeTransparentTill 中文释义:建造时透明度 类型:浮点数
324+
325+
#### whenBeingBuiltMakeTransparentTill-用法
326+
填写0-1之间的小数,以影响建造时的透明度情况。
327+
328+
::: tip
329+
若设为0则表示透明度为0,建造一开始就不透明。<br>
330+
设为1则将完全建造时才会不透明。<br>
331+
所谓透明到不透明,也就是从虚影到实体的转变。
332+
:::
333+
334+
::: info
335+
0-1可以理解为0%和100%,取超过100%的数字不会报错但也并没有什么意义。
336+
:::
337+
338+
#### whenBeingBuiltMakeTransparentTill-示例
339+
```ini
340+
[graphics]
341+
whenBeingBuiltMakeTransparentTill:0
342+
343+
[graphics]
344+
whenBeingBuiltMakeTransparentTill:0.5
345+
346+
[graphics]
347+
whenBeingBuiltMakeTransparentTill:1
348+
349+
```
350+
351+
### icon_zoomed_out
352+
#### icon_zoomed_out-代码简介
353+
代码:icon_zoomed_out 中文释义:缩放图标 类型:字符串
354+
355+
#### icon_zoomed_out-用法
356+
填写缩放图标的文件路径,改变单位缩放时显示的图标。
357+
358+
::: tip
359+
路径引用规则和文件格式与image相同。<br>
360+
默认图标将根据运动类型或单位类型使用内置的图标。
361+
:::
362+
363+
::: info
364+
绘制图标时请注意图标的大小。<br>
365+
具体可以参考默认图标。<br>
366+
资源文件在游戏根目录\res\drawable\中,安卓安装包同理。
367+
:::
368+
369+
#### icon_zoomed_out-示例
370+
```ini
371+
[graphics]
372+
icon_zoomed_out:mytubiao.png
373+
374+
[graphics]
375+
icon_zoomed_out:tank_icon.png
260376

261377
```
378+
379+
380+
### icon_zoomed_out_neverShow
381+
#### icon_zoomed_out_neverShow-代码简介
382+
代码:icon_zoomed_out_neverShow 中文释义:缩放图标不显示 类型:布尔值
383+
384+
#### icon_zoomed_out_neverShow-用法
385+
填写布尔值决定缩放图标是否显示。
386+
387+
::: info
388+
默认为false。
389+
:::
390+
391+
#### icon_zoomed_out_neverShow-示例
392+
```ini
393+
[graphics]
394+
icon_zoomed_out_neverShow:false
395+
396+
[graphics]
397+
icon_zoomed_out_neverShow:true
398+
399+
```

0 commit comments

Comments
 (0)