Broker: LootSpec

Display with tooltip

Broker: LootSpec

Simple loot specialisation display with specialisation selection in its
tooltip.

Requires a LibDataBroker Display Addon, like StatBlockCore or
ElvUI.

Also known as:

  • Broker_LootSpec
  • Broker: Loot Specialisation
  • Broker: Loot Specialization

Features

  • Displays the currently active loot specialisation
  • Adds an asterisk (*) when loot specialisation is in the default
    "current specialisation" mode
  • Mouse-over tooltip to change the loot specialisation
  • Left click toggles tooltip for loot specialisation changing as well,
    for those who have mouseover tooltips disabled in combat
  • Right click to toggle the Dungeon Journal
  • When clicked and the Dungeon Journal is opened, filters are set
    for the selected loot specialisation and dungeon you are in
  • When switching loot specialisation while the Dungeon Journal is
    open, filters and dungeon are set as well

Notes

  • There is no configuration (since there is nothing to configure)
  • Looks (icon display, font and the like) depend on the
    Display Addon you use

Localisation

You can help localise this addon. Fortunately there is really not a
lot to translate.

You must login to post a comment. Don't have an account? Register to get one!

  • 3 comments
  • Avatar of Timmeh Timmeh Nov 09, 2013 at 16:40 UTC - 0 likes

    @oscarucb: Go @oscarucb: Go

    Thanks oscarucb,

    Fixed the problem in version 1.4 of this addon, and version 1.7 of Broker: MicroClock.

    Also, didn't realise the ticket tracker was turned off for my addons, it's on now. :-)

  • Avatar of oscarucb oscarucb Nov 09, 2013 at 02:12 UTC - 0 likes

    Looks like Broker: MicroClock has the same bug.

  • Avatar of oscarucb oscarucb Nov 09, 2013 at 01:13 UTC - 0 likes

    There is a bug in Broker_LootSpec's usage of LibQTip that can cause it to corrupt the tooltips of other addons using the library.

    It currently acquires a tooltip, sets it to autohide and then blindly releases a stale handle (which no longer belongs to the addon) later after autohide has already released it.

    The one-line fix is below, marked with my name:

    function tooltip:Show(anchor)
            self:Hide()
    
            if self.enabledState then
                    self.tip = LibQTip:Acquire(name .. 'Tooltip', 3, 'LEFT', 'LEFT')
            print(name.."Tooltip", self.tip)
                    self.tip:Clear()
    
                    self:Populate()
    
                    self.tip:SetAutoHideDelay(0.1, anchor)
                    self.tip.OnRelease = function() self.tip = nil end -- oscarucb: update our variable on auto-release
                    self.tip:SmartAnchorTo(anchor)
                    self.tip:Show()
            end
    end
    
    function tooltip:Hide()
            if self.tip then
                    LibQTip:Release(self.tip)
                    self.tip = nil
            end
    end
    
  • 3 comments

Facts

Date created
May 23, 2013
Categories
Last update
Oct 15, 2014
Development stage
Release
Language
  • deDE
  • enUS
  • esES
  • esMX
  • frFR
  • itIT
  • koKR
  • ptBR
  • ruRU
  • zhCN
  • zhTW
License
MIT License
Curse link
Broker: LootSpec
Downloads
3,162
Recent files
  • R: 1.4.3 for 6.0.2 Oct 15, 2014
  • R: 1.4.2 for 5.4.2 Jan 21, 2014
  • R: 1.4.1 for 5.4.2 Jan 06, 2014
  • R: 1.4 for 5.4.1 Nov 09, 2013
  • R: 1.3 for 5.4.0 Sep 13, 2013

Authors