|
|
@@ -18,6 +18,26 @@ def desktop_applyConfigInit(p): |
|
|
|
value = desktop_aux_convertValue(val) |
|
|
|
p.ctrl.set(key, value) |
|
|
|
|
|
|
|
# Create static sprites |
|
|
|
# |
|
|
|
# Conditions: |
|
|
|
# 1. Config textures has just been loaded |
|
|
|
def desktop_createConfigStaticSprites(p): |
|
|
|
if ( |
|
|
|
p.c.recentField != "didLoadConfigTextures" |
|
|
|
): |
|
|
|
return |
|
|
|
|
|
|
|
for key in p.c.cfgTree: |
|
|
|
if ( |
|
|
|
cld_startswith(key, "static ") |
|
|
|
): |
|
|
|
name = cfg_aux_spriteName(key) |
|
|
|
sprite = desktop_aux_createSprite(p.c.cfgTree[key]) |
|
|
|
p.statics[name] = sprite |
|
|
|
# Report finish. |
|
|
|
p.ctrl.set("didCreateConfigStaticSprites", True) |
|
|
|
|
|
|
|
# Load textures |
|
|
|
# |
|
|
|
# Conditions: |
|
|
@@ -35,3 +55,5 @@ def desktop_loadConfigTextures(p): |
|
|
|
name = cfg_aux_textureName(key) |
|
|
|
tex = desktop_aux_loadTexture(p.c.cfgDir, p.c.cfgTree[key]) |
|
|
|
p.textures[name] = tex |
|
|
|
# Report finish. |
|
|
|
p.ctrl.set("didLoadConfigTextures", True) |