• 0

    posted a message on Button Texture From .tga file

    I got it to work had to be power of 2

    Posted in: Lua Code Discussion
  • 0

    posted a message on Button Texture From .tga file

    I have a button and the button is working but the background is colored green.

     

            f.ArrowUpButton = CreateFrame('Button','$parentArrowUpButton',f, BackdropTemplateMixin and "BackdropTemplate")
            f.ArrowUpButton:SetSize(16,12)
            f.ArrowUpButton:SetBackdrop(nil)
            f.ArrowUpButton:SetBackdropBorderColor(255, 255, 255)
            f.ArrowUpButton:SetPoint('TOPRIGHT',-2,-2)
            f.ArrowUpButton.ArrowUpTexture = f.ArrowUpButton:CreateTexture('$parentArrowUpTexture', 'BACKGROUND')
            f.ArrowUpButton.ArrowUpTexture:SetSize(16,12)
            f.ArrowUpButton.ArrowUpTexture:SetAllPoints()
            f.ArrowUpButton.ArrowUpTexture:SetTexture('Interface\\AddOns\\MyAddonFolder\\Media\\Textures\\ArrowUp.tga',false)<br /><br />any help would be great thank you in advance.

     

    Posted in: Lua Code Discussion
  • 0

    posted a message on Collapsing Tree Frame

    OK i figured this out it was all due to setting heights its completely working now.

    Posted in: Lua Code Discussion
  • 0

    posted a message on Collapsing Tree Frame

    Maybe i am wrong calling it a frame but i am looking for it to be a list of buttons that have a hierarchy like:

     

    Button1 -- If clicked collapses all below

       Button1Child1 -- If clicked collapses all below

          Button1Child1Child1 -- Performs an Action

          Button1Child1Child2 -- Performs an Action

       Button1Child2 -- If clicked collapses all below

          Button1Child2Child1 -- Performs an Action

          Button1Child2Child1 -- Performs an Action

     

    Thank you in advance for any help here.

    Posted in: Lua Code Discussion
  • 0

    posted a message on How to create a Tree Frame

    Maybe i am wrong calling it a frame but i am looking for it to be a list of buttons that have a hierarchy like:

     

    Button1 -- If clicked collapses all below

       Button1Child1 -- If clicked collapses all below

          Button1Child1Child1 -- Performs an Action

          Button1Child1Child2 -- Performs an Action

       Button1Child2 -- If clicked collapses all below

          Button1Child2Child1 -- Performs an Action

          Button1Child2Child1 -- Performs an Action

     

     

    Thank you in advance for any help here.

     

    Posted in: Need Help?
  • To post a comment, please or register a new account.