<Button name="HealthColor_Button">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SkinMenu" relativeFrom="TOPLEFT">
<Offset>
<AbsDimension x="35" y="-40" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="HealthColorBackTexture">
<Size>
<AbsDimension x="14" y="14"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Color r="1.0" g="1.0" b="1.0"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnClick>
HealthColorClick();
</OnClick>
<OnEnter>
HealthColorBackTexture:SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
</OnEnter>
<OnLeave>
HealthColorBackTexture:SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
</OnLeave>
</Scripts>
<NormalTexture name="HealthColorTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
|
The problem is that the name is different from the normal texture of the button.
I would like to
button: SetNormalTexture (name, file)
But it makes me put an error.