1. #1
    Blademaster
    10+ Year Old Account
    Join Date
    Nov 2013
    Location
    Australia
    Posts
    34

    Few UI Questions (Need help with LUA)

    Hi,

    Just finished working on my UI which is based off Lorti's default UI addon and a few scripts I put into an addon. http://i.imgur.com/AY3dM09.jpg



    I need help with the following stuff;



    Hide Artifact Power Bar unless mouseovered

    I have this code to hide the microbar buttons but can't figure out the name for the artifact power bar.
    Code:
    -- Hide microbar unless mouseovered
    
        local function showFoo(self)
            for _, v in ipairs(MICRO_BUTTONS) do
                _G[v]:SetAlpha(1)
            end
        end
    
        local function hideFoo(self)
            for _, v in ipairs(MICRO_BUTTONS) do
                _G[v]:SetAlpha(0)
            end
        end
    
        for _, v in ipairs(MICRO_BUTTONS) do
            v = _G[v]
            v:SetScript("OnEnter", showFoo)
            v:SetScript("OnLeave", hideFoo)
            v:SetAlpha(0)
        end

    Change the border colour of this minimap button to match the rest of the UI




    Add a black outline to unit frame names to match the hp/mana text


    I changed the colour like this, but no idea how to make it match the status text.
    Code:
    -- Change player/target/focus name font colour
        PlayerName:SetTextColor(1, 1, 1)
        TargetFrameTextureFrameName:SetTextColor(1, 1, 1)
        FocusFrameTextureFrameName:SetTextColor(1, 1, 1)
        TargetFrameToTTextureFrameName:SetTextColor(1, 1, 1)


    I appreciate any replies!

    Thanks
    Last edited by Sugarwolf; 2017-02-19 at 11:32 PM.

  2. #2
    For the first one, use /fstack and put your mouse on the bar. You can also cycle through frames your mouse is over with the alt key to highlight them and ensure you get the right name.
    Originally Posted by Zarhym (Blue Tracker)
    this thread is a waste of internet

  3. #3
    Deleted
    "PlayerFrameHealthBar:SetStatusBarColor(0,1,0)" sets your health bar to green, so you probably don't want that line in there.

  4. #4
    Blademaster
    10+ Year Old Account
    Join Date
    Nov 2013
    Location
    Australia
    Posts
    34
    Quote Originally Posted by Kanegasi View Post
    For the first one, use /fstack and put your mouse on the bar. You can also cycle through frames your mouse is over with the alt key to highlight them and ensure you get the right name.
    I'll try that, thanks.

    Quote Originally Posted by Constie View Post
    "PlayerFrameHealthBar:SetStatusBarColor(0,1,0)" sets your health bar to green, so you probably don't want that line in there.
    Worked, thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •