here is the link to the clone repo
just take it from here for now.
- Registered User
Member for 12 years, 9 months, and 19 days
Last active Thu, Dec, 28 2017 20:47:06
- 0 Followers
- 13 Total Posts
- 0 Thanks
Jul 25, 2009Not registered memebers cannot see profile, so i cant see is email :(Posted in: General AddOns
Change the anchoring, docked frame automatically expand the opposite way :D maybe ill try to see if it can be done automatically.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.)
Jul 22, 2009I'm having a similar problem, and on wowwiki i found this snippet of code:Posted in: Lua Code Discussion
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
Jul 22, 2009Posted in: General AddOnsQuote from GabrielI 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?
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
Jul 21, 2009I've added a few option i needed for chatframe zoom, and started to look at the localization.Posted in: General AddOns
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) endThe SetFont call always give error. Since tab is a button it should work...
Feb 29, 2008Posted in: General AddOnsQuote 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.
- To post a comment, please login or register a new account.