• 0

    posted a message on FuBar 3.0
    Hmm, my fix fixes the bottom bar, but now the ui elements on the top shift themselves down with every zone in.
    Posted in: FuBar AddOns
  • 0

    posted a message on FuBar 3.0
    Here is how I fixed the bottom bar positioning:

    JostleFrame:RegisterEvent("PLAYER_ENTERING_WORLD")
    function Jostle:PLAYER_ENTERING_WORLD()
    start = GetTime()
    nextTime = 0
    fullyInitted = false

    JostleFrame:SetScript("OnUpdate", function(this, elapsed)
    local now = GetTime()
    if now - start >= 3 then
    fullyInitted = true
    for k,v in pairs(blizzardFramesData) do
    blizzardFramesData[k] = nil
    end
    this:SetScript("OnUpdate", function(this, elapsed)
    if GetTime() >= nextTime then
    Jostle:Refresh()
    this:Hide()
    end
    end)
    end
    end)
    end
    Posted in: FuBar AddOns
  • 0

    posted a message on Wardrobe: Delete outfit bugfix
    There is a bug in how wardrobe sets are deleted. The slot is set to nil, but the other functions don't check for it and so throw errors when trying to save or update. It also stops displaying all sets after the nil index

    Here is my fix: move all slots after the deleted set up one, filling in the nil hole and leaving all other functions as is
    function Wardrobe2:DeleteOutfit(args)
        local delIdx = table.getn(self.db.profile.Outfit)
        if (tonumber(args) == nil) then
            for i = 1, table.getn(self.db.profile.Outfit) do
                if (self.db.profile.Outfit[i].name ~= nil and self.db.profile.Outfit[i].name == args) then
                    delIdx = i
                    break
                end
            end
        else
            delIdx = args
        end
    
    --   self:Print("Delete outfit: %s (%s)", self.db.profile.Outfit[args].name, args)
        for i = delIdx, table.getn(self.db.profile.Outfit) - 1 do
    --       self:Print("Moving %s(%s) to slot %s", self.db.profile.Outfit[i+1].name, i+1 , i)
            self.db.profile.Outfit[i] = self.db.profile.Outfit[i+1]
        end
        self.db.profile.Outfit[table.getn(self.db.profile.Outfit)] = nil
    end
    Posted in: AddOn HELP!
  • To post a comment, please or register a new account.