2008-05-22, 10:17 PM
Alright, so. StandardButtonOrigin is defined in a placement in baseskin.xml in both Blue and CommunitySkin3. It take it to mean this is the well, origin value of the standard button lists. Fair enough, I'm on board so far.
With this in mind, should I, in my plugin, be able to access it directly as if it were a placement in the plugin's xml file? That is, remove any mention of the button list from my xml, and just rely on StandardButtonOrigin, the idea being to pick up default values as defined by the skin, rather than my own.
And if I do, what risks am I taking? Is this a placement that all skins [/i]should[/i] have, or am I exchanging convenience in one place for inconvenience in another - namely, no button list at all for skins that don't have StandardButtonOrigin.
Also - I say 'should' be able to access, since attempting to use it as a placement without it being defined in my plugin's skin.xml gives me an error. (But one crises at a time...)
Aaaannnnddd...
I admit to being baffled by the values supplied in the location (loc=) defined for StandardButtonOrigin. Blue's loc is 12,12 - but that's not where it's being put. (Or it is and I just don't understand what is going on).
If I copy the line to my own skin, it is rendered as 12%,12%, as I would expect. But buttons are nowhere near 12% (for an x value anyway) in Video Library, for example.
So, do loc values have a different meaning when defined in baseskin.xml? Or is there something else going on that I'm not understanding?
I'll happily accept the latter (so much of my work with skins involved random fuddling with numbers), but am anxious to get a better feel for why I'm seeing what I am.
As always, thank you all.
With this in mind, should I, in my plugin, be able to access it directly as if it were a placement in the plugin's xml file? That is, remove any mention of the button list from my xml, and just rely on StandardButtonOrigin, the idea being to pick up default values as defined by the skin, rather than my own.
And if I do, what risks am I taking? Is this a placement that all skins [/i]should[/i] have, or am I exchanging convenience in one place for inconvenience in another - namely, no button list at all for skins that don't have StandardButtonOrigin.
Also - I say 'should' be able to access, since attempting to use it as a placement without it being defined in my plugin's skin.xml gives me an error. (But one crises at a time...)
Aaaannnnddd...
I admit to being baffled by the values supplied in the location (loc=) defined for StandardButtonOrigin. Blue's loc is 12,12 - but that's not where it's being put. (Or it is and I just don't understand what is going on).
If I copy the line to my own skin, it is rendered as 12%,12%, as I would expect. But buttons are nowhere near 12% (for an x value anyway) in Video Library, for example.
So, do loc values have a different meaning when defined in baseskin.xml? Or is there something else going on that I'm not understanding?
I'll happily accept the latter (so much of my work with skins involved random fuddling with numbers), but am anxious to get a better feel for why I'm seeing what I am.
As always, thank you all.