Thread Tools Display Modes
06-22-08, 01:16 PM   #1
Hatty
A Kobold Labourer
Join Date: Jun 2008
Posts: 1
ActionButtonTemplate

I've made a button template based on ActionButtonTemplate and SecureActionButtonTemplate. It is as follows:

Code:
    <Button name="HMB_btn_base" inherits="ActionButtonTemplate,SecureActionButtonTemplate" virtual="true">
        <Size>
            <AbsDimension x="28" y="28" />
        </Size>
        <Scripts>
            <OnLoad>
                local icon = getglobal(this:GetName() .. "Icon")
                icon:SetTexture("Interface\\TargetingFrame\\UI-RaidTargetingIcon_" .. this:GetID())
            </OnLoad>
            <OnClick>
                hmb_mark(this:GetID());
            </OnClick>
        </Scripts>
    </Button>
The only thing wrong with it is the NormalTexture size. The NormalTexture size stays at the default and does not change. I've tried playing around with it and adding a NormalTexture tag and editing size but it doesn't work. Can anyone help me with this?

Thanks.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » ActionButtonTemplate


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off