2019-05-08, 21:58
I was doing some testing to understand what the precedence order is for attributes in a control. In particular I was looking at <colordiffuse> and am wondering if my results are generalized?
1. Any attribute in a control will take precedence over the attribute set in the defaults.xml for that control type.
2. The first occurrence of an attribute will be used. For example, if there are 2 <colordiffuse> entries (either explicit in the control or via an "include") the first one in the control will be used and any subsequent ones ignored.
3. At least for the case of <colordiffuse>, a colordiffuse="x" entry on another attribute will override the "general" <colordiffuse>.
But maybe textures in controls are treated differently than other things (like position/size/align for example)?
scott s.
.
1. Any attribute in a control will take precedence over the attribute set in the defaults.xml for that control type.
2. The first occurrence of an attribute will be used. For example, if there are 2 <colordiffuse> entries (either explicit in the control or via an "include") the first one in the control will be used and any subsequent ones ignored.
3. At least for the case of <colordiffuse>, a colordiffuse="x" entry on another attribute will override the "general" <colordiffuse>.
But maybe textures in controls are treated differently than other things (like position/size/align for example)?
scott s.
.