Add part with multiple textures to example

This commit is contained in:
Epicalert 2021-03-19 23:38:53 +08:00
parent 10f36ef3fb
commit 89d77f724d
No known key found for this signature in database
GPG key ID: CAA46F858D0979BD

View file

@ -42,10 +42,16 @@ texture = "tex/head.png"
bind = "head"
[[part]]
texture = "tex/face.png"
bind = "head"
follow = "face"
factor = 0.75
[[textures]]
file = "tex/face-closedmouth.png"
[[textures]]
file = "tex/face-openmouth.png"
trigger = "mouth-open"
.EE
.
.PP
@ -117,3 +123,7 @@ is not present in the part.
trigger
A trigger that will cause the part to use this texture.
Possible values: null, mouth-open
.
.PP
When specifying multiple textures, the first one specified
will be used by default.