|
@@ -122,10 +122,13 @@ def update_truck_tex():
|
122
|
122
|
#deck graphic testing
|
123
|
123
|
#pass
|
124
|
124
|
import glob
|
|
125
|
+ import platform
|
125
|
126
|
scene = bge.logic.getCurrentScene()
|
126
|
127
|
deck = scene.objects["deck"]
|
127
|
128
|
mainDir = bge.logic.expandPath("//")
|
128
|
|
- fileName = mainDir + "textures\\decks\\*.png"
|
|
129
|
+ fileName = mainDir + "textures\\decks\\*.png"
|
|
130
|
+ if platform.system() == 'Linux':
|
|
131
|
+ fileName = mainDir + 'textures//decks//*.png'
|
129
|
132
|
deckList = glob.glob(fileName)
|
130
|
133
|
dict['deckList'] = deckList
|
131
|
134
|
ID = texture.materialID(deck, 'MAdeck')
|
|
@@ -146,13 +149,17 @@ def update_shirt_tex():
|
146
|
149
|
#pass
|
147
|
150
|
#deck graphic testing
|
148
|
151
|
import glob
|
|
152
|
+ import platform
|
149
|
153
|
scene = bge.logic.getCurrentScene()
|
150
|
154
|
#deck = scene.objects["deck"]
|
151
|
155
|
shirt = scene.objects["Char4:Zshirtt1"]
|
152
|
156
|
mainDir = bge.logic.expandPath("//")
|
153
|
|
- fileName2 = mainDir + "textures\\shirt\\*.png"
|
|
157
|
+ fileName2 = mainDir + "textures\\shirt\\*.png"
|
|
158
|
+ if platform.system() == 'Linux':
|
|
159
|
+ fileName2 = mainDir + 'textures//shirt//*.png'
|
154
|
160
|
shirtList = glob.glob(fileName2)
|
155
|
161
|
dict['shirtList'] = shirtList
|
|
162
|
+ print(shirtList, 'shirtList')
|
156
|
163
|
ID = texture.materialID(shirt, 'MAshirt')
|
157
|
164
|
shirt_texture = texture.Texture(shirt, ID)
|
158
|
165
|
new_source2 = texture.ImageFFmpeg(shirtList[dict["shirt_logo"]])
|