So as patch 5.4 broke Table2.0 and LibQTip is the only Lib I could find for doing Tooltips:
In Tablet you could do something like
tooltip:AddLine('text', "ReloadUI",
'func', function() print("UI Reload!") ReloadUI() end,
'justify',
"CENTER")
and when you clicked on it it would reload the UI.
How do I do this in LibQTip :confused:
With
tooltip:SetCell(lineNum, 2, "ReloadUI", nil, 1)
tooltip:SetCellScript(lineNum, 2, "OnMouseDown", ReloadUI(), "ReloadUI")
lineNum = tooltip:AddLine()
and a click all I get is "Interface action failed because of an addon." ....
So i found this Addon called Broker_AltGuild on Curse and Im trying out how to set it up so that the text in the Tooltip is BIGGER...
-- Broker_AltGuild by yess, yessica@fantasymail.de
local guildname = nil
local ldb = LibStub:GetLibrary("LibDataBroker-1.1",true)
local wholib = LibStub:GetLibrary('LibWho-2.0'):Library()
local libQTip = LibStub('LibQTip-1.0')
local players, dataobj, tooltip
local update = false
local delay = 60
local counter = 0
local optionPanel
local function RGBToHex(r, g, b)
return ("%02x%02x%02x"):format(r*255, g*255, b*255)
end
local function UpdateText(event, results, a2)
players = {} --results
count = 0
for k,v in pairs(results) do
if strupper(v.Guild) == strupper(guildname) then
count = count +1
table.insert(players, v)
end
end
dataobj.text = guildname.." - "..count
end
local function updateList()
if guildname then
wholib:Who('g-' .. guildname, {queue = wholib.WHOLIB_QUERY_QUIET, timeout = 0, callback = UpdateText})
else
dataobj.text = "no guild set"
end
end
local function setGuild(guild)
guildname = guild
AltGuildDB = guild
updateList()
DEFAULT_CHAT_FRAME:AddMessage("Broker_AltGuild: Guild set to "..guild)
end
dataobj = ldb:NewDataObject("Broker_AltGuild", {
type = "data source",
icon = "Interface\\AddOns\\Broker_AltGuild\\icon",
label = "Broker_AltGuild",
text = "Updating...",
OnClick = function(self, button)
if button == "RightButton" then
InterfaceOptionsFrame_OpenToCategory(optionPanel);
else
updateList()
end
end
})
local function MouseHandler(event, name, button, ...)
if button == "RightButton" then
InviteUnit(name)
else
SetItemRef("player:"..name, "|Hplayer:"..name.."|h["..name.."|h", "LeftButton")
end
libQTip:Release(tooltip)
tooltip = nil
end
function dataobj:OnEnter()
tooltip = libQTip:Acquire("AltGuildTooltip", 3, "LEFT", "LEFT","RIGHT")
tooltip:Clear()
self.tooltip = tooltip
>> tooltip:SetFont("Fonts\\FRIZQT__.ttf", 11, "OUTLINE, MONOCHROME") <<
tooltip:AddLine("")
tooltip:AddLine("Level", "Name","Zone")
tooltip:AddSeparator(1,1,1,1,0.5)
if players then
for k,v in pairs(players) do
local classcolor = RAID_CLASS_COLORS[v.NoLocaleClass:upper()] or {r=0.77, g=0.12 ,b=0.23 }
--local y, x = tooltip:AddLine("|cff"..RGBToHex(classcolor.r, classcolor.g, classcolor.b)..v.Name,v.Level,v.Zone)
local y, x = tooltip:AddLine(v.Level,"|cff"..RGBToHex(classcolor.r, classcolor.g, classcolor.b)..v.Name,v.Zone)
tooltip:SetLineScript(y, "OnMouseUp", MouseHandler, v.Name)
end
end
tooltip:AddLine(" ")
local y, x = tooltip:AddLine()
y, x = tooltip:SetCell(y, x, "|cff"..RGBToHex(0.8, 0.8, 0.8).."Click on a name to whisper that player.",3)
local y, x = tooltip:AddLine()
y, x = tooltip:SetCell(y, x, "|cff"..RGBToHex(0.8, 0.8, 0.8).."Right click on a name to invite that player.",3)
tooltip:SmartAnchorTo(self)
tooltip.anchor = self
tooltip:SetAutoHideDelay(0.01, self)
tooltip:Show()
end
local function slashHandler(msg)
setGuild(msg)
end
local function createOptionPanel()
optionPanel = CreateFrame( "Frame", "Broker_AltGuildPanel", UIParent );
local title = optionPanel:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
title:SetPoint("TOPLEFT", 16, -16)
local version = GetAddOnMetadata("Broker AltGuild","Version") or ""
title:SetText("Broker AltGuild "..version)
local subtitle = optionPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlightLarge")
subtitle:SetHeight(35)
subtitle:SetPoint("TOPLEFT", title, "BOTTOMLEFT", 0, -8)
subtitle:SetPoint("RIGHT", optionPanel, -32, 0)
subtitle:SetNonSpaceWrap(true)
subtitle:SetJustifyH("LEFT")
subtitle:SetJustifyV("TOP")
subtitle:SetText("Enter the name of the guild to watch.")
editbox = CreateFrame("EditBox",nil,optionPanel,"InputBoxTemplate")
editbox:SetHeight(35)
editbox:SetPoint("TOPLEFT", title, "BOTTOMLEFT", 5, -15)
editbox:SetPoint("RIGHT", optionPanel, -132, 0)
editbox:SetAutoFocus(false)
editbox:SetScript("OnEscapePressed",function(self)
self:ClearFocus()
end)
editbox:SetFontObject(GameTooltipTextLarge)
editbox:SetText("test")
optionPanel.name = "Broker AltGuild";
optionPanel.okay = function(self)
if editbox:GetText() ~= AltGuildDB then
setGuild(editbox:GetText())
end
end
optionPanel.refresh = function(self)
if AltGuildDB then
editbox:SetText(AltGuildDB)
end
end
InterfaceOptions_AddCategory(optionPanel);
end
SlashCmdList["Broker_AltGuild"] = slashHandler;
SLASH_Broker_AltGuild2 = "/bag";
createOptionPanel()
local function OnUpdate(self, elapsed)
counter = counter + elapsed
if counter >= delay then
if update then
updateList()
end
counter = 0
end
end
local function OnEvent(self, event, addon)
if event == "PLAYER_ENTERING_WORLD" then
guildname = AltGuildDB
update = true
updateList()
else
update = flase
end
end
local frame = CreateFrame("Frame")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:RegisterEvent("PLAYER_LEAVING_WORLD")
frame:SetScript("OnEvent", OnEvent)
frame:SetScript("OnUpdate", OnUpdate)
Any help to show me how to set font size to 16 would be appreciated.
TIA!
Okay after hours of testing I found the Mod wich kills BankItem's Tooltips:
Book of Crafts (http://wow.curse.com/downloads/details/1014/) anyone knows a replacement for BoC that works together with BI ?
Thanks in Advance!
i can run the JWowUpdater-1.5-(Java 5.0 compiled).zip Version but its completly useless :(
after telling him that my wow lies in "e:\world of warcraft" he pretends to update and does
for a long time nothing till he says done...
Sorry i relally like to try it outr but it doesnt work?
1.90 when started first time creates JWowUpdater.conf and then nothing anymore
if i do a "java -jar JWowUpdater.jar" all i get is some crappy error msgs...
Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/layout/G
roupLayout$Group
at jwowupdater.SelfUpdater.updateSelf(SelfUpdater.java:32)
at jwowupdater.Main.main(Main.java:73)
Caused by: java.lang.ClassNotFoundException: org.jdesktop.layout.GroupLayout$Gro
up
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 2 more
my Java Version is "1.6.0_06"
cant you pls do a c++ version of that ?
atm when you click the FuBar_BanktItem-Icon Bankitem is opened and shows the Bank-Window (/bi).
Is it possible to include that when you alt/shoft or ctrl-click the Icon it open the GuildBank-Window (/bigb)
as you seem pretty busy here is a changed Lua
for you BankItemFu so it supports calling the
GuildBankItems function: http://rapidshare.com/files/97234791/BankItemsFu.lua
use it as you like and keep up the good work!
(if you see any error pls dont complain as it was my first Lua-hack :))
No. The design of this addon is based on the original default UI design, and primarily meant for people that do not use bag addons that display bags in 1 bag.
Thank you for that! I hate all these all-in-one-bag addons :)
And Thank You for this GREAT Addon and the adding of GBanks to it :)
0
Yes it looks like Tablet2.0 created a bunch of buttons for the tooltip lines.
0
local tooltip = LibQTip:Acquire("LDBDrudatzTip")
tooltip:Clear()
tooltip:SetColumnLayout(3, "LEFT", "CENTER", "RIGHT")
lineNum = tooltip:AddLine()
tooltip:SetCell(lineNum, 1, "ReloadUI (?)", "CENTER", 3)
tooltip:SetCellScript(lineNum, "OnMouseDown", ReloadUI)
clicking that still gives AfboaA-Error :(
0
In Tablet you could do something like
tooltip:AddLine('text', "ReloadUI",
'func', function() print("UI Reload!") ReloadUI() end,
'justify',
"CENTER")
and when you clicked on it it would reload the UI.
How do I do this in LibQTip :confused:
With
tooltip:SetCell(lineNum, 2, "ReloadUI", nil, 1)
tooltip:SetCellScript(lineNum, 2, "OnMouseDown", ReloadUI(), "ReloadUI")
lineNum = tooltip:AddLine()
and a click all I get is "Interface action failed because of an addon." ....
0
man your awsome! Im sorry that I didnt saw that myself
but thats exactly what i was looking for! ;)
0
Any help to show me how to set font size to 16 would be appreciated.
TIA!
0
0
And who please puts WoW into the Program Files folder?
the most important question is the Curse-Updater portable like the WoWAce-One is/was ???
0
Thanks for that fix!!! :D
0
Book of Crafts (http://wow.curse.com/downloads/details/1014/) anyone knows a replacement for BoC that works together with BI ?
Thanks in Advance!
0
Anyone else having the same problem ?
0
after telling him that my wow lies in "e:\world of warcraft" he pretends to update and does
for a long time nothing till he says done...
0
1.90 when started first time creates JWowUpdater.conf and then nothing anymore
if i do a "java -jar JWowUpdater.jar" all i get is some crappy error msgs...
Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/layout/G
roupLayout$Group
at jwowupdater.SelfUpdater.updateSelf(SelfUpdater.java:32)
at jwowupdater.Main.main(Main.java:73)
Caused by: java.lang.ClassNotFoundException: org.jdesktop.layout.GroupLayout$Gro
up
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 2 more
my Java Version is "1.6.0_06"
cant you pls do a c++ version of that ?
0
Is it possible to include that when you alt/shoft or ctrl-click the Icon it open the GuildBank-Window (/bigb)
Thanks in advance!
0
as you seem pretty busy here is a changed Lua
for you BankItemFu so it supports calling the
GuildBankItems function: http://rapidshare.com/files/97234791/BankItemsFu.lua
use it as you like and keep up the good work!
(if you see any error pls dont complain as it was my first Lua-hack :))
0
Thank you for that! I hate all these all-in-one-bag addons :)
And Thank You for this GREAT Addon and the adding of GBanks to it :)