vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/"> 

<Button name="myModelFrame" movable="true" parent="UIParent" hidden="false" frameStrata="LOW">
        <Size>
                <AbsDimension x="233" y="224"/>
        </Size>
        <Anchors>
                <Anchor point="CENTER"/>
        </Anchors>
        <Frames>
                <PlayerModel name="$parent_Model" hidden="false">
                <Size>
                    <AbsDimension x="233" y="224"/>
                </Size>
                <Anchors>
                    <Anchor point="CENTER"/>
                </Anchors>
                <Scripts>
                    <OnLoad>
                                        this:SetUnit("player");
                                        this:RegisterEvent("DISPLAY_SIZE_CHANGED");
                                        this:RegisterEvent("UNIT_MODEL_CHANGED");
                    </OnLoad>
                                <OnEvent>
                                        if (event == "UNIT_MODEL_CHANGED") then
                                                this:SetUnit("player");
                                        else
                                                this:RefreshUnit();
                                        end
                                </OnEvent>
                        </Scripts>
            </PlayerModel>
        </Frames>
        <Scripts>
                <OnLoad>
                        this:RegisterForDrag("LeftButton", "RightButton");
                </OnLoad>
                <OnDragStart>
                        if( IsShiftKeyDown() ) then
                                this:StartMoving();
                        end
                </OnDragStart>
                <OnDragStop>
                        this:StopMovingOrSizing();
                </OnDragStop>
                <OnHide>
                        this:StopMovingOrSizing();
                </OnHide>
        </Scripts>
</Button>

</Ui>

Generated by GNU Enscript 1.6.5.90.