Author Topic: GUI Help.  (Read 617 times)

Becouse I am expert at Bind keying!

I want to make a GUI that if I do bind key, it opens.

Please help (No newbies post please)


-Darren


Look at existing Add-Ons that open GUIs such as the Macro Saver by Ephialtes.

This bit?

Code: [Select]
if(!isObject(macroGui))
exec("./macroGui.gui");

function toggleMacroWindow(%val)
{
if(%val)
if(macroGui.isAwake())
canvas.popdialog(macrogui);
else
canvas.pushdialog(macrogui);
}

Partially. That function toggles the window, but doesn't add the keybind. Use the same method you used for adding the keybind in your other Add-On, except make it do the function to toggle your window instead of the auto reload bricks one.

Putting in the last bit


exec("./macroGui.gui");



?

...............
Didn't you already get told in your other topic?
... are you an idiot?
You got told how clearly here: http://forum.blockland.us/index.php?topic=58782.0
« Last Edit: February 09, 2009, 04:31:48 PM by Destiny/Zack0Wack0 »

...............
Didn't you already get told in your other topic?
... are you an idiot?
You got told how clearly here: http://forum.blockland.us/index.php?topic=58782.0

Sozzard :|