• 0

    posted a message on savedVariables ?
    Wouldn't " Saundo2DB = Saundo2DB + 1 " fix the saved variable problem?
    Posted in: AddOn HELP!
  • 0

    posted a message on Hunter pet growl
    Even with a macro?
    Posted in: Addon Ideas
  • 0

    posted a message on Hunter pet growl
    I can do it if you would like. I need more practice anyway.
    Posted in: Addon Ideas
  • 0

    posted a message on Need help creating a minimap button
    Thank you. I tried using the tooltip inside the OnLoad function lol.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Need help creating a minimap button
    I mean to take my minimap icon from xml to LDB.

    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.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Need help creating a minimap button
    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"
    Posted in: Lua Code Discussion
  • 0

    posted a message on Need help creating a minimap button
    Can i get some help
    Posted in: Lua Code Discussion
  • 0

    posted a message on Need help creating a minimap button
    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:

    <Button name="guildLoot_MinimapButton" parent="Minimap" enableMouse="true" movable="true" hidden="false">
    		<Size>
    			<AbsDimension x="26" y="26"/>
    		</Size>
    		<Anchors>
    			<Anchor point="TOPLEFT"/>
    		</Anchors>
    		<Layers>
    			<Layer level="BACKGROUND">
    				<Texture name="guildLoot_MinimapButton_Icon" file="Interface\AddOns\GuildLoot\MMimage\fixedMM.tga">
    					<Size>
    						<AbsDimension x="26" y="26"/>
    					</Size>
    					<Anchors>
    						<Anchor point="BOTTOM">
    							<Offset>
    								<AbsDimension x="0" y="0"/>
    							</Offset>
    						</Anchor>
    					</Anchors>
    				</Texture>
    			</Layer>
    			<Layer level="OVERLAY">
    				<Texture file="Interface\Minimap\MiniMap-TrackingBorder">
    					<Size>
    						<AbsDimension x="50" y="50"/>
    					</Size>
    					<Anchors>
    						<Anchor point="TOPLEFT"/>
    					</Anchors>
    				</Texture>
    			</Layer>
    		</Layers>
    		<Frames>
    			<Frame name="guildLoot_MinimapButton_DraggingFrame" hidden="true">
    				<Scripts>
    					<OnUpdate>
    						guildLoot_MinimapButton_DraggingFrame_OnUpdate()
    					</OnUpdate>
    				</Scripts>
    			</Frame>
    		</Frames>
    		<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
    		<Scripts>
    			<OnLoad>
    				self:RegisterForClicks("LeftButtonUp","RightButtonUp")
    				self:RegisterForDrag("LeftButton","RightButton")
    			</OnLoad>
    			<OnDragStart>
    				self:LockHighlight()
    				guildLoot_MinimapButton_DraggingFrame:Show()
    			</OnDragStart>
    			<OnDragStop>
    				self:UnlockHighlight()
    				guildLoot_MinimapButton_DraggingFrame:Hide()
    			</OnDragStop>
    			<OnClick>
    				guildLoot_MinimapButton_OnClick(button, self)
    			</OnClick>
    		</Scripts>
    	</Button>


    And the lua:

    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.
    Posted in: Lua Code Discussion
  • 0

    posted a message on CurseForge
    So what if i used an apostrophe in the wrong way? Is this grammar school?
    Posted in: General Chat
  • 0

    posted a message on Resetting AceDB/SavedVars from Level Data
    I have a question about saved variables... How would you get it to save something from all toon's on your account?

    Is it using the other type of savedvariable(forget the name) in the toc?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Starting UI Development - A table
    Won't work for me. I tried because i've been trying to do that same thing.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Xml
    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?
    Posted in: AddOn HELP!
  • 0

    posted a message on Starting UI Development - A table
    I don't know how your Reload Button is showing text. That shouldn't work.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Hide frames in combat?
    I didn't do that in my editor, i did it on chrome, in the quick reply. I used 4 spaces as a tab; i always use tab to indent.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Hide frames in combat?
    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
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.