Slothpala / RaidFrameSettings

GNU General Public License v2.0
4 stars 4 forks source link

Restore stack font to original font when disabling aura module #29

Open excorp opened 4 months ago

excorp commented 4 months ago

I looked up the original value of stack font.

The count font for the aura frame is inherited from NumberFontNormalSmall.

Interface\FrameXML\CompactUnitFrame.xml parentKey="count" inherits="NumberFontNormalSmall"

<Button name="CompactAuraTemplate" virtual="true" enableMouse="false" registerForClicks="AnyDown">
    <Size x="17" y="17"/>
    <Layers>
        <Layer level="ARTWORK">
            <Texture name="$parentIcon" parentKey="icon" setAllPoints="true"/>
        </Layer>
        <Layer level="OVERLAY">
            <FontString name="$parentCount" parentKey="count" inherits="NumberFontNormalSmall" justifyH="RIGHT">
                <Anchors>
                    <Anchor point="BOTTOMRIGHT" x="5" y="0"/>
                </Anchors>
            </FontString>
        </Layer>
    </Layers>
    <Frames>
        <Cooldown name="$parentCooldown" parentKey="cooldown" hideCountdownNumbers="true" inherits="CooldownFrameTemplate" reverse="true" hidden="true">
            <Anchors>
                <Anchor point="CENTER" x="0" y="-1"/>
            </Anchors>
        </Cooldown>
    </Frames>
    <Scripts>
        <OnClick function="PassClickToParent"/>
    </Scripts>
</Button>