HOPEFULLY this is the last post i'll have to make. So here's whats happening... I'm trying to make a GUI. It works. I want to bind a key to the console command instead of having to put in canvas.pushDialog(___); every single time i want to open the GUI. I named the script 'Kyjus' (for simplicity).
in the .gui file (the file that mission editor made), the bottom (which i added) looks like this:
_____________________________ ______________
//--- OBJECT WRITE END ---
function pushKyjus(%Gui)
{
%Gui = canvas.pushDialog(Kyjus);
}
_____________________________ ______________
My .cs file looks like this:
_____________________________ ___________
exec("./Kyjus.gui");
moveMap.bind(keyboard, "m", pushKyjus);
}
_____________________________ ______________
when I open Blockland, and press M, it doesn't open. Nor does it open when i push ctrl-m, alt-m, or shift-m. There must be one little mistake that I made, but i just can't figure out what! Am I leaving something out? Help is GREATLY appreciated. (keep in mind it works perfectly if you enter the console command directly)