• 0

    posted a message on Pitbull ? Maintank Frames
    Also many thanks, ckknight ... tested it the last few days in karazhan and ssc and everythings working fine!
    Posted in: Unit Frames
  • 0

    posted a message on Pitbull ? Maintank Frames
    Quote from Erebos »

    Well, I have no clue about coding and therefor cannot demand anything
    but I think many people using PitBull would really like to have ALL
    their unit frames displayed in one way: through PitBull. :)

    That is exactly what I'm dreaming of. :) ... and as far as I know oRA2 uses the same technique CTRA uses (at least for the "SET <num> <name>" message).
    Posted in: Unit Frames
  • 0

    posted a message on Pitbull ? Maintank Frames
    Quote from ckknight »

    Well, what's the API to get the current list of MTs, and what's the API to figure out when said list changes?


    Wasn't that hard to find the code in ora2 (oRA2\Participant\MainTank.lua:201) ... I think the list is broadcasted automatically and ora2 sends a "SET <num> <name>" for maintanks, just look in the code below. If you want to refresh the maintank list on your own, you could use the triggerevent "oRA_MainTankUpdate".
    local num, name = select(3, msg:find("^SET (%d+) (.+)$"))
    if not num or not name then return end
    
    self:RemoveTank(name)
    
    self.core.maintanktable[tonumber(num)] = name
    self.core.db.profile.maintanktable = self.core.maintanktable
    self:TriggerEvent("oRA_MainTankUpdate", self.core.maintanktable)
    Posted in: Unit Frames
  • To post a comment, please or register a new account.