Blockland Forums > Modification Help
Gui 'canvas.pushDialog' Help
(1/1)
thaky:
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: ---//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);
}
--- End code ---

So can someone help me? Please?
Bloxxed:

--- Quote from: thaky on January 31, 2011, 02:54:22 PM ---I cant open my tool gui but when I say canvas.pushDialog("Tools");

--- End quote ---
Are you sure you've keybinded it?
thaky:
ya i did i made it into V
thaky:
found the problem :
$remapCmd[$remapCount] = "toggleToolGui";
toogleToolGui()
Navigation
Message Index

Go to full version