View Single Post
11-02-10, 01:06 PM   #27
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
Originally Posted by ChaosInc View Post
I'm pretty sure it's your slash handler. I should be home in about an hour with real comp access to show you what the issue is extensively (again, if someone doesn't get to it before then)
Yea, it looks like the problem has to do with it not picking up the 2nd argument in the function and passing it along to the table entry as a proper string. It enters the name variable right but then for the 2nd variable it just does {} and populates it with some crazy nonsense it got from who knows where... this is where im at right now. Oh also note that the slashcommand was done so i could test the add removing of frames before i jump into the GUI for it all.. since i already know i have a problem with listing the table in the options panel and then getting it to update once you add or remove a frame... one step at a time lol
Code:
function addon:AddMoveableFrame(name, parvar)
	if parvar then
		if type(parvar) == 'string' then
			parvar = _G[parvar]
		end
		GMoveableFrames[name] = parvar
		HookFrame(name, parvar)
	elseif not parvar then 
		parvar = false
		GMoveableFrames[name] = parvar
	end
end

function addon:RemMoveableFrame(name, arg1)
	
end

SlashCmdList["GMOVE_SHORTHAND"] = function(name, parvar)
	addon:AddMoveableFrame(name, parvar)
end
SLASH_GMOVE_SHORTHAND1 = "/gmove"
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]

Last edited by Grimsin : 11-02-10 at 01:09 PM.
  Reply With Quote