CurseForge and Overwolf are joining forces!
Awesome More Information
  • 0

    posted a message on AutoBar by Toadkiller (official thread)
    Apparently you've switched to ldb instead of fubar (which is a good thing IMO) but checking autobar directory and toc I've found that:

    AutoBarFuBar.lua is still there but not referenced in the toc (should be removed from the directory I think)
    TabletLib and FuBarPlugin-2.0 are still embeded and referenced in X-embeds but not used anymore (except AutoBarFubar.lua which is not used anymore)
    TabletLib, FuBarPlugin-2.0 and FuBar are still referenced in OptionalDeps but should not I think
    Posted in: General AddOns
  • 0

    posted a message on Fortress (unofficial thread)
    Quote from Borlox
    I'll add this option.



    .texcoord is not in the official spec, but I'll look for some information about this. I'm not yet sure that this is added, as the LegoBlock lib (used for the blocks) does not support TexCoord, so some hacks may be needed.


    I modified Fortress on my local copy to test texcoord and it's working, in red what I've added.

    local uniqueUpdaters = {
        text = TextUpdater,
        
        icon = function(frame, value, name)
            if value and GetPluginSetting(name, "showIcon") then
                frame:SetIcon(value)
                frame:ShowIcon()
            else
                frame:HideIcon()
            end
        end,
    
    [COLOR=Red]    texcoord = function(frame, value, name)
            local object = dataObjects[name]
            if object.texcoord then
              frame.icon:SetTexCoord(unpack(object.texcoord))
            end
        end,
    [/COLOR]    
        -- tooltiptext is no longer in the data spec, but 
        -- I'll continue to support it, as some plugins seem to use it
        tooltiptext = function(frame, value, name)
            local object = dataObjects[name]
            local tt = object.tooltip or GameTooltip
            if tt:GetOwner() == frame then
                tt:SetText(object.tooltiptext)
            end
        end,
    }
    Posted in: Data Broker AddOns
  • 0

    posted a message on Fortress (unofficial thread)
    it seems that some ldb addon now use a texcoord argument to modify the texture used for the icon.
    picoButtons by tekkub is an example.

    Can you please use this texcoord argument to properly display the icon as intended by the author of the plugin?
    Posted in: Data Broker AddOns
  • 0

    posted a message on LibQTip
    I'm playing a bit with libQtip to do a clickable tooltip for a faction broker plugin but I still have some bugs with part of the text going out of the tooltip...

    I've attached the addon and the screenshot of the tooltip to show the problem

    tomFactions_tip1.jpg is ok all faction are displayed

    tomFactions_tip2.jpg is still ok some factions are collapsed

    tomFactions_tip3.jpg is ko I've collapsed all but one faction header and the content of this faction header is as you can see out of the tooltip.

    r43 of libQTip was used for my tests
    Posted in: Libraries
  • 0

    posted a message on LibQTip
    just tried the latest release of libQTip, it's now working properly thanks for the fix
    Posted in: Libraries
  • 0

    posted a message on LibQTip
    I got some strange behavior sometimes using colspan and justification

    As you can see in the attached screenshot the text is going out of the tooltip, and tooltip1 screenshot is displayed the first time my tooltip is shown, tooltip2 screenshot is displayed every other time

    the code used is quite simple :

    function dataobj.OnEnter(self)
      tip = LibQTip:Acquire("tomQuestToolTip", 3, "LEFT","RIGHT", "RIGHT")
      local templine
    
      tip:EnableMouse(true)
    
      local titleLine = tip:AddLine("")
      tip:SetCell(titleLine, 1, "tomQuest", nil, "CENTER", 3)
      tip:AddLine("  ") 
    
      local zoneHeader = tip:AddHeader("")
      local zone = string.format("%s |cff%02x%02x%02x%s (%s-%s)|r", plus, 0*255, 0.9*255, 0.1*255, "Ceci est un test de zone", 70, 80)
      tip:SetCell(zoneHeader, 1, zone,nil, "LEFT", 3)
    
      templine = tip:AddLine("")
      tip:SetCell(templine, 1, "|cffeda55fClick Gauche|r", nil, "LEFT", 1)
      tip:SetCell(templine, 2, "|cff19ff19Ouvrir le journal de quête.|r",nil,"RIGHT",2)
    
      templine = tip:AddLine("")
      tip:SetCell(templine, 1, "|cffeda55fCtrl + Click Gauche|r", nil, "LEFT", 1)
      tip:SetCell(templine, 2, "|cff19ff19Partager la quête.|r", nil, "RIGHT", 2)
    
      templine = tip:AddLine("")
      tip:SetCell(templine, 1, "|cffeda55fShift + Click Gauche|r", nil, "LEFT", 1)
      tip:SetCell(templine, 2, "|cff19ff19Mettre la quête au tracker.|r", nil, "RIGHT", 2)
    
      templine = tip:AddLine("")
      tip:SetCell(templine, 1, "|cffeda55fClick Droit|r", nil, "LEFT", 1)
      tip:SetCell(templine, 2, "|cff19ff19Afficher le tooltip de quête.|r", nil, "RIGHT", 2)
    
      templine = tip:AddLine("")
      tip:SetCell(templine, 1, "|cffeda55fShift + Click Droit|r", nil, "LEFT", 1)
      tip:SetCell(templine, 2, "|cff19ff19Linker la quête.|r", nil, "RIGHT", 2)
    
      templine = tip:AddLine("")
      tip:SetCell(templine, 1, "|cffeda55fCtrl + Click Droit|r", nil, "LEFT", 1)
      tip:SetCell(templine, 2, "|cff19ff19Envoyer le statut de la quête.|r", nil, "RIGHT", 2)
    
      tip:Show()
    
      tip:SmartAnchorTo(self)
    end
    Posted in: Libraries
  • 0

    posted a message on libQuixote-2.0
    it seems that there is an error in libQuixote-2.0 line 803:

    function lib:IsQuestWatchedByUid(uid)
        local quid = self.quests[uid] and self.quests[uid].id
        if qid then
            return IsQuestWatched(qid)
        end
    end


    I think that local quid = self.quests[uid] and self.quests[uid].id should be
    local qid = self.quests[uid] and self.quests[uid].id

    can someone correct it?
    Posted in: Libraries
  • 0

    posted a message on LibQTip
    Quote from Adirelle
    Firstly, you should at least do LibQTip:Release(tip) instead of simply :Hide(). I am a bit surprised the display addon hides the tooltip as soon as the mouse leave the block. Nevertheless, I think this could work, though it is a bit hacky:

    local function HideTooltip()
      tip:SetScript('OnLeave', nil)
      tooltipIsShown = false
      LibQTip:Release(tip)
    end
    function dataobj.OnLeave(self)
      if MouseIsOver(tip) then
        tip:SetScript('OnLeave', HideTooltip)
      else
        HideTooltip()
      end
    end


    It's working but I had to add
    if MouseIsOver(tip) then return end to the HideTooltip function

    so here is a summary to get everything working :

    I had to add self:EnableMouse(true) to the SetupCell to get the clickable cell working. I also had to add tip:EnableMouse(true) to get it respond to the OnLeave script.
    If I only set the EnableMouse(true) to the tip the clickable cell did not work, and if I set it to both then when I go over the clickable cell then the tooltip was hidden so I had to put the if MouseIsOver(tip) then return end to get everything working.

    so in the end thank you for all your help.
    Posted in: Libraries
  • 0

    posted a message on LibQTip
    thanks I'll try that tomorow. it's time for me to have some sleep :)
    Posted in: Libraries
  • 0

    posted a message on LibQTip
    to be able to click on my tooltip I've done the following to the OnLeave component of my datablock:

    function dataobj.OnLeave(self)
      if MouseIsOver(tip) then return end
      tooltipIsShown = false
      tip:Hide()
    end


    the problem is that when I leave the tooltip it stay open, do I have a way to show the tooltip when I mouseover the tooltip, but hide it when I leave it?
    Posted in: Libraries
  • 0

    posted a message on LibQTip
    it's perfect, I can now click on my tooltip and hide / show part of my tooltip :)
    Posted in: Libraries
  • 0

    posted a message on LibQTip
    ok I tried it it's almost perfect, I just need to adjust minimum value :)

    I tried to get the clickable cell working, but I guess i did something wrong :(

    here is what I did for my custom cell provider:

    local plus = [[|TInterface\Buttons\UI-PlusButton-Up:12|t]]
    local minus = [[|TInterface\Buttons\UI-MinusButton-Up:12|t]]
    
    local zoneDisplay = {}
    
    local zProvider, zPrototype, basezCellPrototype = LibQTip:CreateCellProvider(LibQTip.LabelProvider)
    
    function zPrototype:InitializeCell()
      basezCellPrototype.InitializeCell(self)
    end
    
    function zPrototype:SetupCell(tooltip, value, justification, font)
      local r, g, b = LibTourist:GetLevelColor(value)
      local levelMin, levelMax = LibTourist:GetLevel(value)
      local width, height = basezCellPrototype.SetupCell(self, tooltip,string.format("%s |cff%02x%02x%02x%s (%s-%s)|r", zoneDisplay[value].display and plus or minus, r*255, g*255, b*255, value, levelMin, levelMax),justification,font)
      self:SetScript('OnMouseDown', function() DEFAULT_CHATFRAME:AddMessage("test") end)
      return width, height
    end


    When I try to click on my cell, nothing happen, no error is thrown :(
    Posted in: Libraries
  • 0

    posted a message on LibQTip
    ok that's perfect, I'll try that tonight when I get home

    thanks for your help
    Posted in: Libraries
  • 0

    posted a message on LibQTip
    I've not yet had time to try what you propose.

    My problem was not to set the width of a cell, what you proposed was more or less what I had on my mind.

    So let me explain exactly what I want to do.

    I'm making a tooltip for quests, so for some quest I'll display the objectives, (like kill ten mobs, get 12 things...) but for some quest there is no objective like that so I'll display the small description of the quest.

    So I have two kind of content to put on my cell:
    small one that fit on one line
    big one that need to be split on multiple line.

    so for the big ones, I'll have to put a maximum width, but I don't want to put an arbitrary one so I want to retrieve the maximum width of the small content, and if it's greater than an arbitrary minimum width I'll give all my big cells the maximum width of small cells, otherwise I'll set it to the minimum width.

    Here my problem is to retrieve the maximum width of the small cells, do I have a way to do it without calling the SetupCell function that is already called by the SetCell function.

    Or am I completely wrong and the library can "automagically" set the width of my cell to the maximum width of small cells if it's greater that the arbitrary minimum size that I'll put to my big cell?

    P.S.: I tried to make it as clear as possible, but as english is not my native language I may not be clear :( ...
    Posted in: Libraries
  • 0

    posted a message on LibQTip
    Quote from Adirelle
    Not with the built-in CellProvider. An custom one may fit.


    Making a little bit research on the subject, I found that to do what I want I would need to put a SetWidth equal to the maximum width previously found.

    I've seen that the width is returned by SetupCell but not by SetCell.

    As SetupCell is called by SetCell I won't call SetupCell otherwise it will be called twice per cell which does not seems good.

    Do I have an easy way to retrieve the width of a Cell in order to pass it to my custom cell?
    Posted in: Libraries
  • To post a comment, please or register a new account.