hello
Lets consider following layout:
Code:
Layout "Extended Mixer" "ex"
; some commands requiring images
set mcp.volume [31 95 21 182 0 0 0 1]
Layout "Extended Mixer Red" "exred"
set mcp.volume [31 95 21 182 0 0 0 1]
EndLayout
EndLayout
As you can see there is:
1. "Extended Mixer" layout loading resources from "ex", and from root if not found
2. "Extended Mixer Red" layout, being sub-layout to "Extended Mixer", inheriting elements definitions except of mcp.volume, loading its texture from "exred".
I was expecting, that all images for "Extented Mixer Red" except for mcp.volume will be loaded from "ex" location.
But it's not.
In this particular case, walter is commanded to change appearance of mcp.volume only, loading specific bitmap from "exred" directory. But in fact "exred" must contain copy of all resources from "ex" (otherwise resources from root directory are being loaded).
It seems to me very inefficient. IMO in case of nesting layouts, resources should be inherited from parent layout(s), until overwritten by current one.
Am I missing something?