|
|
@@ -18,6 +18,26 @@ def desktop_applyConfigInit(p): |
|
|
|
value = desktop_aux_convertValue(val) |
|
|
|
p.ctrl.set(key, value) |
|
|
|
|
|
|
|
# Create player sprites |
|
|
|
# |
|
|
|
# Conditions: |
|
|
|
# 1. Config textures has just been loaded |
|
|
|
def desktop_createConfigPlayerSprites(p): |
|
|
|
if ( |
|
|
|
p.c.recentField != "didLoadConfigTextures" |
|
|
|
): |
|
|
|
return |
|
|
|
|
|
|
|
for key in p.c.cfgTree: |
|
|
|
if ( |
|
|
|
key == "player" |
|
|
|
): |
|
|
|
sprite = desktop_aux_createPlayerSprite(p, key, p.c.cfgTree[key]) |
|
|
|
p.player = sprite |
|
|
|
p.playerSprites.append(sprite) |
|
|
|
# Report finish. |
|
|
|
p.ctrl.set("didCreateConfigPlayerSprites", True) |
|
|
|
|
|
|
|
# Create static sprites |
|
|
|
# |
|
|
|
# Conditions: |
|
|
|