• 0

    posted a message on Raid Member Combat Check
    No idea how I missed that one... thank you for pointing it out, that's exactly what I need.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Raid Member Combat Check
    Is there a way to check if a raid member is in combat, or did I miss an API when I looked through WoWWiki?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Resizable Frames
    Thank you very much, that's exactly what I was looking for :)
    Posted in: Lua Code Discussion
  • 0

    posted a message on Resizable Frames
    I've been looking around for a small addon that I can isolate how they make their frames re-sizable, but I haven't been able to find it.

    Addons like Recount and Omen2 have the small 3-diagonal bars image at the bottom edges of their frames that allow you to resize the frame. Everything else inside of the frame resizes as well. Anyone know what library enables that, and how to build a frame using it?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Dynamic Dewdrop Build
    ... No one? I'll see if I can get a hold of the author then and see what he/she says.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Dynamic Dewdrop Build
    I'm building a simplistic misdirect manager that tracks/monitors misdirects. Our guild has A LOT of hunters (5 per raid at least), and they tend to get confused with their misdirects.

    I'm building a function that creates a dynamic Dewdrop menu that gives the misdirect leader guy a list of options for each hunter. The menu is basic and small, but needs to be dynamic. For each main tank and off tank, there needs to be a row on the list, and for each main tank and off tank, there's a sub-menu for how many times the hunter should MD the tank.

    I built the logic, but I have no idea how to concatenate 2 tables together. I tried table.concat and table.insert, but it doesn't build the table properly.

    here's the code below:

    	for i,v in pairs(tblMainTankName) do
    		local strName = tblMainTankName[i];
    	
    		if strName then
    			table.insert(tblDewdropFeed, {
    					strName = {
    						text = strName,
    						hasArrow = true,
    						subMenu = {
    							FireOnce = {
    								text = "Misdirect Once",
    								func = function() DewdropScheduleMisdirect(1, strName) end,
    							},
    							FireTwice = {
    								text = "Misdirect Twice", 
    								func = function() DewdropScheduleMisdirect(2, strName) end,
    							},
    							FireThrice = {
    								text = "Misdirect Thrice", 
    								func = function() DewdropScheduleMisdirect(3, strName) end,
    							},
    							FireAlways = {
    								text = "Misdirect Always", 
    								func = function() DewdropScheduleMisdirect(0, strName) end,
    							},
    						},
    					},
    				});
    		end
    	end
    	Dewdrop:Register("MainMenu",'children', function() Dewdrop:FeedTable(tblDewdropFeed) end)
    end



    P.S. If there's a better way than Dewdrop, then please let me know. This is my first addon :)
    Posted in: Lua Code Discussion
  • 0

    posted a message on Execute secure button click via non-secure button
    I'm guessing secure buttons cascade to the frames as well, so I can't hide the frame without tainting the button?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Execute secure button click via non-secure button
    Is it possible to execute a click command on a secure button with a non-secure button while in combat?
    The addon I'm working on has to do with casting spells on raid members while in combat. Before the fight I make secure buttons for casting a specific spell on a specific player. Before a fight it generally creates 5-8 secure buttons that will be used when in combat.
    But I don't want to display all of those buttons to the user. I want it to work like Decursive, where the user clicks a single button to cast a spell on a person in the party/raid.
    The primary difference my addon and Decursive is that mine casts spells on people in combat. I need a non-secure button that I can modify the click command while in combat to execute secure buttons.
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.