• 0

    posted a message on Dock (OPEN beta)
    here is the link to the clone repo
    http://www.wowace.com/addons/project-5416/repositories/silver/
    just take it from here for now.
    Posted in: General AddOns
  • 0

    posted a message on Dock (OPEN beta)
    Quote from Xinhuan
    No reason to start a new project at all. Just use the existing one.

    I had the same idea, but he asked me to start a fork...
    Posted in: General AddOns
  • 0

    posted a message on Dock (OPEN beta)
    Some news: Kameril answered, giving his approval for my "takeover". I'll start a new project called dock continued, look forward to it :)
    Posted in: General AddOns
  • 0

    posted a message on Dock (OPEN beta)
    Not registered memebers cannot see profile, so i cant see is email :(
    Now if you can only make the docked frames mouseover popup detect that the Dock is on the left side of the screen and make it adjust itself to popup on the right side of the dock instead of the left side of the Dock making it go off screen. (That was probably way confusing.)
    Change the anchoring, docked frame automatically expand the opposite way :D maybe ill try to see if it can be done automatically.
    Posted in: General AddOns
  • 0

    posted a message on Dock (OPEN beta)
    I'll try to look into it.
    Posted in: General AddOns
  • 0

    posted a message on Dock (OPEN beta)
    New version, tab with custom font and color working ;)

    Link Removed: http://www.mediafire.com/?sharekey=3992c9eed12c4b58dd8b33b5aa27078d

    Began some localization, tho far from finished.
    Posted in: General AddOns
  • 0

    posted a message on Text color on a button
    Thanks, unpacking it worked fine (didn't think about that). The reassignment is actually needed, and i dont know why exactly.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Text color on a button
    I'm having a similar problem, and on wowwiki i found this snippet of code:
    Note that button:SetTextColor was deleted in 3.0. To set the button text color, you need to set the button font object, then get a copy of it, then modify the color of the new object and then assign the copy back to the button. For example: button:SetNormalFontObject("GameFontHighlight"); local font = button:GetNormalFontObject(); font:SetTextColor(1, 0.5, 0.25, 1.0); button:SetNormalFontObject(font);
    I tried to do something similar, but i created the font instead of inheriting one.
    tab.TabFont = _G.CreateFont("DockTabFont")
    tab.TabFont:SetFont(MediaHandler:Fetch("font", db.TabFont), db.TabFontSize)
    tab.TabFont:SetTextColor(db.TabFontColor)
    tab:SetHighlightFontObject(tab.TabFont)
     tab:SetDisabledFontObject(tab.TabFont)
    tab:SetNormalFontObject(tab.TabFont)


    And it work, excep for the color part: the text is always black. I already checked and TabFontColor is the right value. Anyone got any idea why it doesn't work? :(

    ps. i'm an absolute beginner in both lua and addon coding... so pleas be a little kind :D
    Posted in: Lua Code Discussion
  • 0

    posted a message on Dock (OPEN beta)
    Quote from Gabriel
    I comment out setfont and settextcolor and all works properly, just no tab labels, so something is screwed there, I dont know enough either to fix this.

    mmh... a graphic button wouldn't be right...
    Maybe ill try asking in in the code forum.
    Has anyone any means to contact Kameril?

    Link Removed: http://www.mediafire.com/file/yj52mj2tmd1/Dock.zip

    it works now, but it wont change the font:
    --Old code
    tab:SetFont(MediaHandler:Fetch("font", db.TabFont), db.TabFontSize, nil)
    
    --New Code
    tab:SetDisabledFontObject(_G.GameFontDisable)
     tab:SetHighlightFontObject(_G.GameFontHighlight)
     tab:SetNormalFontObject(_G.GameFontNormal)

    When i have time i'll try to ask why is this happening
    Posted in: General AddOns
  • 0

    posted a message on Dock (OPEN beta)
    I've added a few option i needed for chatframe zoom, and started to look at the localization.

    I've also found something regarding the tab problem, but i could use some help (never done addon coding before, and dock doesn't strike me as simple...)
    function DockClass:UpdateTab()
            local tab = self.Tab
            if not tab then
                return
            end
            local db = self.db.profile
            if not db.AllowTabMode then
                return self:RestoreFromTab()
            end
            tab:SetFont(MediaHandler:Fetch("font", db.TabFont), db.TabFontSize)
            if db.TabOrientation == "Vertical" then
                local label = "" --not called often enough to worry about garbage
                for letter in self.Name:gmatch(".") do
                    label = label .. letter .. "\n"
                end
                tab:SetText(label)
                local fs = tab:GetFontString()
                tab:SetHeight(fs:GetHeight() + db.TabSize)
                tab:SetWidth(fs:GetWidth() + db.TabSize)
            else
                tab:SetText(self.Name)
                tab:SetHeight(30)
                local fs = tab:GetFontString()
                tab:SetWidth(fs:GetWidth() + db.TabSize)
                tab:SetHeight(fs:GetHeight() + db.TabSize)
            end
            
            tab:SetTextColor(unpack(db.TabFontColor))
            tab:ClearAllPoints()
            tab:SetPoint("CENTER", UIParent, "BOTTOMLEFT", db.TabX, db.TabY)
    
            do
                local backdrop = db.TabBackdrop
                local bg, edge = backdrop.bgFile, backdrop.edgeFile
    
                backdrop.bgFile, backdrop.edgeFile = MediaHandler:Fetch("background", bg), MediaHandler:Fetch("border", edge)
                tab:SetBackdrop(backdrop)
    
                backdrop.bgFile, backdrop.edgeFile = bg, edge
            end
    
            tab:SetBackdropColor(unpack(db.TabColor))
            tab:SetBackdropBorderColor(unpack(db.TabBorderColor))
    
            tab:SetMovable(not db.Locked)
        end
    The SetFont call always give error. Since tab is a button it should work...
    Posted in: General AddOns
  • 0

    posted a message on Dock (OPEN beta)
    This version SHOULD work with current version.

    Link Removed: http://www.mediafire.com/file/tmrkztwzjjr/Dock.zip

    i'll try to ask the author if i can put it up again somewhere in wowace or similar.
    Posted in: General AddOns
  • 0

    posted a message on Dock (OPEN beta)
    Quote from Kameril »

    Unfortunately I've had no offers so far.

    I dont have enough lua and addon coding experience (im a programmer tho) so i cant help....


    Hrm? 60+ hours on a side project I provide to the community for free isn't something I can feel shame about. Thanks for the support though.

    I wish you for the best. :)
    Trying to balance for his rudeness, even if i know it won't be enough.
    Posted in: General AddOns
  • 0

    posted a message on Dock (OPEN beta)
    It's a wonderful addon even now, it's a shame the original author won't go on with its development. Hope someone pick it up.
    Posted in: General AddOns
  • To post a comment, please or register a new account.