mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 16:24:45 +02:00
AnimationBlocks now support SeasonTextures
This commit is contained in:
parent
dba1e721d6
commit
4785492836
@ -69,7 +69,12 @@
|
|||||||
If BlockTexturesTemp.ContainsKey(AnimationNames(n) & "_0") = False Then
|
If BlockTexturesTemp.ContainsKey(AnimationNames(n) & "_0") = False Then
|
||||||
For i = 0 To Me.rows(n) - 1
|
For i = 0 To Me.rows(n) - 1
|
||||||
For j = 0 To Me.columns(n) - 1
|
For j = 0 To Me.columns(n) - 1
|
||||||
BlockTexturesTemp.Add(AnimationNames(n) & "_" & (j + columns(n) * i).ToString, TextureManager.GetTexture(AdditionalValue, New Rectangle(r.X + r.Width * j, r.Y + r.Height * i, r.Width, r.Height)))
|
If SeasonColorTexture <> "" Then
|
||||||
|
BlockTexturesTemp.Add(AnimationNames(n) & "_" & (j + columns(n) * i).ToString, P3D.World.GetSeasonTexture(TextureManager.GetTexture("Textures\Seasons\" & Me.SeasonColorTexture), TextureManager.GetTexture(AdditionalValue, New Rectangle(r.X + r.Width * j, r.Y + r.Height * i, r.Width, r.Height))))
|
||||||
|
Else
|
||||||
|
BlockTexturesTemp.Add(AnimationNames(n) & "_" & (j + columns(n) * i).ToString, TextureManager.GetTexture(AdditionalValue, New Rectangle(r.X + r.Width * j, r.Y + r.Height * i, r.Width, r.Height)))
|
||||||
|
End If
|
||||||
|
|
||||||
Next
|
Next
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
|
Loading…
x
Reference in New Issue
Block a user