GameTooltip:AddLine("GuildLoot v2.9.1") and GameTooltip:AddLine("GuildLoot v2.9.1"):Show(), but honestly, i have not the slightest clue where to use it.
They use LDB. If i use LDB i have to do a MASSIVE change with my code because the xml. I also cant find anywhere how i would go about using "GameToolTip"
The AddOn i have been working on is in need of a cosmetic update.
1) When using lua and xml, how would i create a mouseover tooltip on the minimap button.
2) How would i create a frame like a tooltip, that opened wherever the minimap icon is on the mini map. For example:
If the minimap icon is in the top right hand corner of the screen, how can i make the top right corner of the new tooltip type frame show at the bottom left of the minimap icon. But if the icon is more to the bottom left hand, still make the top left hand corner of the new tooltip type frame show at the bottom of the minimap icon.
3) How can you get the minimap icon to save the user indicated spot of the icon using xml. As of right now it will return to its default position(top left of minimap) after the UI reloads (Entering instances, BGs, hearthing, riding a boat, etc..) Here is my xml code of the minmap icon:
guildLoot_Settings = {
MinimapPos = 0 -- default position of the minimap icon in degrees
}
function guildLoot_MinimapButton_Reposition()
guildLoot_MinimapButton:SetPoint("TOPLEFT","Minimap","TOPLEFT",52-(80*cos(guildLoot_Settings.MinimapPos)),(80*sin(guildLoot_Settings.MinimapPos))-52)
end
function guildLoot_MinimapButton_DraggingFrame_OnUpdate()
local xpos,ypos = GetCursorPosition()
local xmin,ymin = Minimap:GetLeft(), Minimap:GetBottom()
xpos = xmin-xpos/UIParent:GetScale()+70
ypos = ypos/UIParent:GetScale()-ymin-70
guildLoot_Settings.MinimapPos = math.deg(math.atan2(ypos,xpos))
guildLoot_MinimapButton_Reposition() -- move the button
end
function guildLoot_MinimapButton_OnClick(button, self)
if button == "LeftButton" then
guildLoot:Show()
else
if guildLoot and guildLoot:IsShown() then
guildLoot:Hide()
elseif button == "LeftButton" and guildLoot:IsShown() then
guildLoot:Hide()
end
end
end
Also, after opening the guildloot frame by left clicking the minimap icon, left click does nothing but move the icon until the frame is closed. Right clicking and pressing my exit button are the only ways to close it.
How can you make a frame border color more.... unique? I don't to only be able to mix red, green, and blue, what if i wanted silver, or gold, or pink... Is that possible?
function blah_OnLoad(self)
self:RegisterEvent(
"PLAYER_REGEN_DISABLED",
"PLAYER_REGEN_ENABLED"
)
end
function blah(self, event)
if event == "PLAYER_REGEN_DISABLED" then -- When in combat
self:Hide()
end
if event == "PLAYER_REGEN_ENABLED" then -- When out of combat
self:Show()
end
end
0
0
0
0
0
And i've tried:
GameTooltip:AddLine("GuildLoot v2.9.1") and GameTooltip:AddLine("GuildLoot v2.9.1"):Show(), but honestly, i have not the slightest clue where to use it.
0
0
0
1) When using lua and xml, how would i create a mouseover tooltip on the minimap button.
2) How would i create a frame like a tooltip, that opened wherever the minimap icon is on the mini map. For example:
If the minimap icon is in the top right hand corner of the screen, how can i make the top right corner of the new tooltip type frame show at the bottom left of the minimap icon. But if the icon is more to the bottom left hand, still make the top left hand corner of the new tooltip type frame show at the bottom of the minimap icon.
3) How can you get the minimap icon to save the user indicated spot of the icon using xml. As of right now it will return to its default position(top left of minimap) after the UI reloads (Entering instances, BGs, hearthing, riding a boat, etc..) Here is my xml code of the minmap icon:
And the lua:
Also, after opening the guildloot frame by left clicking the minimap icon, left click does nothing but move the icon until the frame is closed. Right clicking and pressing my exit button are the only ways to close it.
0
0
Is it using the other type of savedvariable(forget the name) in the toc?
0
0
0
0
0