Author Topic: Gui 'canvas.pushDialog' Help  (Read 449 times)

I cant open my tool gui but when I say canvas.pushDialog("Tools"); it pops up so I don't know what to do.
Here is the code in teh Client.cs:
Code: [Select]
//Load the Gui
exec("./Tools.gui");

//Bind the Gui
if(!$ToolsBind)
{
$remapDivision[$remapCount] = "Tools";
$remapName[$remapCount] = "Tool Gui";
$remapCmd[$remapCount] = "toggleToolGui";
$remapCount++;
$ToolsBind = 1;
}

//Open / close the Gui
function toogleToolGui()
{
canvas.pushDialog(Tools);
}

So can someone help me? Please?
« Last Edit: January 31, 2011, 03:05:51 PM by thaky »

I cant open my tool gui but when I say canvas.pushDialog("Tools");
Are you sure you've keybinded it?

ya i did i made it into V

found the problem :
$remapCmd[$remapCount] = "toggleToolGui";
toogleToolGui()