• 0

    posted a message on Localization Page Bugs when Assigning Namespaces

    Related problem when changing a phrase key or translation. In the image below I set the key key_SetThemePopup for one phrase and it shows for several phrases.

     

    Posted in: WoW Sites Feedback
  • 0

    posted a message on Localization export bug (multiline phrases)

    I'm also affected by this issue. Please let us know when it's fixed so we can repackage addons.

    Posted in: WoW Sites Feedback
  • 0

    posted a message on MinimapCluster positioning
    After looking into Jostle code I got a working solution. But I have no idea where did the 3/5 height ratio came from.

    local offset = _G.MinimapBorderTop:GetHeight() * 3/5
    local point, relativeTo, relativePoint, xOfs, yOfs = _G.MinimapCluster:GetPoint(1)
    
    if not _G.MinimapCluster:IsUserPlaced() then -- avoid conflict with other mods
    	if profileDB.show_minimap and not _G.MinimapBorderTop:IsShown() then
    		_G.MinimapBorderTop:Show()
    		_G.MinimapZoneTextButton:Show()
    		_G.MiniMapWorldMapButton:Show()
    		_G.MinimapCluster:SetPoint(point, relativeTo, relativePoint, xOfs, yOfs - offset)
    	elseif not profileDB.show_minimap and _G.MinimapBorderTop:IsShown() then
    		_G.MinimapBorderTop:Hide()
    		_G.MinimapZoneTextButton:Hide()
    		_G.MiniMapWorldMapButton:Hide()
    		_G.MinimapCluster:SetPoint(point, relativeTo, relativePoint, xOfs, yOfs + offset)
    	end
    end
    Posted in: Lua Code Discussion
  • 0

    posted a message on MinimapCluster positioning
    Is there a function to reposition MinimapCluster after hiding/showing the top button with the zone text?

    Basically I do this

    if profileDB.show_minimap then
    	_G.MinimapBorderTop:Show()
    	_G.MinimapZoneTextButton:Show()
    	_G.MiniMapWorldMapButton:Show()
    else
    	_G.MinimapBorderTop:Hide()
    	_G.MinimapZoneTextButton:Hide()
    	_G.MiniMapWorldMapButton:Hide()
    end


    and I need some way to reposition the remaining frames of MinimapCluster without impacting other map mods that might have moved the frame.

    The strange thing is that when I call this function at addon init the frame is auto positioned correctly. However I couldn't find the code doing this in Blizzard's FrameXML.

    P.S. It's actually LibJostle-3.0 from another addon that's moving the frames at login.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Events on actions bars
    Hello!

    I'm trying to execute some code when the user clicks on an action bar button; also when pressing the key bind to a button; but I'm stuck in the secure handlers. I tried with:

    SecureHandlerWrapScript(BonusActionButton1, "OnClick", BonusActionBarFrame, [[print("preBody")]], [[print("postBody")]])


    BonusActionButton1:SetAttribute("_onclick", [[print("got it")]])


    but nothing seems to work. Is there a way to wrap the event handlers for blizzard's default action bars?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Tooltip statusbar
    I have a problem with the tooltip hp bar. While modifying the tooltip text I need to call GameTooltip:ClearLines() which somehow also hides the hp bar. If I use GameTooltipStatusBar:Show() immediately after the hp bar will show, but will remain there for all tooltips (spells, mailbox etc). Any idea on how to fix this?
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.