按键切换贴图

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
global $active = 0
;新建变量
global persis $key = 0

[Key key]
;切换条件,可以是别的条件,也可以不加
;condition = global $active = 1
key = NO_CTRL NO_ALT VK_UP
type = cycle
;更多的切换和模型切换同理
$key = 0,1

[ResourceTextureX]
filename = Textures/Components-2 t=xxx.dds

[ResourceTextureX-1]
filename = Textures/xxx.dds
;这里的xxx.dds是你自己新建的贴图放在Textures文件夹里的

[TextureOverrideTextureX]
hash = 225aad5a
match_priority = 0
if $key == 0
this = ResourceTextureX
;我知道你想说什么,没有打错,就是elif
elif $key == 1
this = ResourceTextureX-1
endif