• 0

    posted a message on Help with button textures

    Hey Seerah 

     

    I have tried a number of different things trying to resolve this issue.

     

    The myTestingFrame:SetScale(2) increases the scale of the button itself not the textures, if I comment out the line I still get the same display issues just at its default size.

    I have also tried just defining the size of the button with myTestingFrame:SetSize(40,40) with no luck.

     

    I just have not been able to find out why.

    Posted in: AddOn HELP!
  • 0

    posted a message on Help with button textures

    Hi all 

     

    I have an issue with the textures on a button.

    Both the highlight and pushed textures fit the button frame without issue, but the normal texture always displays much bigger than the other two thus exceeding the button size. 

     

    I have attached an image of what I am seeing.

    buttons

     

    Here is my code.

     

    local myTestingFrame = CreateFrame("Button","myTestingFrame",UIParent, "SecureActionButtonTemplate,ActionButtonTemplate")
    myTestingFrame:SetScale(2)
    myTestingFrame:SetPoint("CENTER")

    myTestingFrame:SetPushedTexture("Interface\\Icons\\Inv_misc_archaeology_amburfly")
    myTestingFrame:SetHighlightTexture("Interface\\Icons\\Spell_shadow_carrionswarm")
    myTestingFrame:SetNormalTexture("Interface\\Icons\\Spell_druid_swarm")

    myTestingFrame:SetMovable(true)
    myTestingFrame:SetClampedToScreen(true)
    myTestingFrame:RegisterForDrag("RightButton")
    myTestingFrame:SetScript("OnDragStart",myTestingFrame.StartMoving)
    myTestingFrame:SetScript("OnDragStop",myTestingFrame.StopMovingOrSizing)
    myTestingFrame:SetToplevel(true)
    myTestingFrame:SetScript("OnClick",function(self)
    print("Button Clicked")
    end)

     

     Any help would be great.

    Posted in: AddOn HELP!
  • 0

    posted a message on SendChatMessage - Icon

    Thanks for the reply.

    Unfortunately that does not seem to work on General.

    I have tried variations such as

    SendChatMessage({rt4},"chatString", "CHANNEL", nil, 1)

    SendChatMessage({rt4}.."chatString", "CHANNEL", nil, 1)

    SendChatMessage("({rt4})chatString", "CHANNEL", nil, 1)

    SendChatMessage("{rt4}chatString", "CHANNEL", nil, 1)

    SendChatMessage("{rt4},chatString", "CHANNEL", nil, 1)

    SendChatMessage("{rt4}..chatString", "CHANNEL", nil, 1)
    all without success.

    Posted in: AddOn HELP!
  • 0

    posted a message on SendChatMessage - Icon

    Thanks for the link, but it only deals with macros.

     

    I am looking for help in how to use the wow api SendChatMessage to insert a target marker icon into chat

    Posted in: AddOn HELP!
  • 0

    posted a message on SendChatMessage - Icon

    Hi All

    Is there a way to add a target icon to a chat message using SendChatMessage?

    Posted in: AddOn HELP!
  • 0

    posted a message on Question about images
    Hi all

    I hope I have posted this in the right forum, if not please move.

    Is there a way to reorder the screenshot images that I have uploaded to my addon page?
    Posted in: Need Help?
  • 0

    posted a message on Aardvark
    Hi all

    I have made some changes to Aardvark that allow global lists, protected list, scaling and an action bar.

    http://wow.curseforge.com/addons/aardvark/

    I would love some help with localizations.
    Posted in: General AddOns
  • 0

    posted a message on Aardvark
    Hello all

    I am brand new to coding and this is my very first addon.

    Aardvark

    Aardvark is a farming / bag management addon that will auto allow you to auto repair, sell and destroy each time you visit a vendor.

    I don't come from a background of coding at all, I was actually a construction worker, but when a workplace accident forced me to cease work WoW was one of the things that gave me joy.

    My code is undoubtedly very messy, overly verbose and more than likely very inefficient, but I will continue to read and learn more about coding and hopefully clean up and reduce the code more and more.

    :)



    Posted in: General AddOns
  • To post a comment, please or register a new account.