Author Topic: How do i make it where it opens a GUI on brick activate  (Read 1059 times)

So basicly i want it to open my gui when you click a certain brick

So basicly

You go up to a brick click it and it opens SCBank GUI thanks

This is not suggestions and requests. You should be able to at least figure out how to make the output event on your own.

This is not suggestions and requests. You should be able to at least figure out how to make the output event on your own.
please help

Start here for the output event: http://forum.blockland.us/index.php?topic=40631.0

Then create your GUI. Clients will need to download this.

Create a client command that loads your GUI. The output event should trigger the client command.

Start here for the output event: http://forum.blockland.us/index.php?topic=40631.0

Then create your GUI. Clients will need to download this.

Create a client command that loads your GUI. The output event should trigger the client command.
thanks. You helped me with 2 things i was gona have telephone banking :D

Start here for the output event: http://forum.blockland.us/index.php?topic=40631.0

Then create your GUI. Clients will need to download this.

Create a client command that loads your GUI. The output event should trigger the client command.
ive worked more with weapons and not client cmds and stuff could you explain how to make a cmd that would open a gui

And also how woukd i edit my mods (and mine mod only) border and stuff like instead of having that blue header i want it to be black
« Last Edit: February 24, 2014, 11:14:32 PM by SuperFlaminninja² »


And also how woukd i edit my mods (and mine mod only) border and stuff like instead of having that blue header i want it to be black
You would need to make your own GUI profile and then set the window's to that. You .dump() or .save() on GuiWindowProfile to see some stuff you can do to it when you create your own.

Start here for the output event: http://forum.blockland.us/index.php?topic=40631.0

Then create your GUI. Clients will need to download this.

Create a client command that loads your GUI. The output event should trigger the client command.
will this work? And if not what will

Code: [Select]
function serverCmd975649276462(%client)//i made it random numbers so it would be hard to memorize
}
$remapDivison[$remapCount] = "SuperCity Bank GUI"; //The Category
$remapName[$remapCount]           = "Open"; //The Description
$remap[$remapCount]                = "Open_SCBank"; //The Function when keystroke is activated
$remapCount++;
};

No, absolutely nothing about that will work...


The keybind information is to put it in your controls, not to open the GUI. The keybind calls the function that you put there. You can't just stick that into a servercmd.

The keybind information is to put it in your controls, not to open the GUI. The keybind calls the function that you put there. You can't just stick that into a servercmd.
yea im not used to guo so i just saw open gui thing and slamed it in there so how would i?

yea im not used to guo so i just saw open gui thing and slamed it in there so how would i?

Well I think you can have a clientcmd that opens the GUI on your GUI client code. In the server command you want you can do something like this.
Code: [Select]
function servercmd975649276462(%client)
{
     commandToClient(%client, 'openGUI');
}
In the client code you could do something like
Code: [Select]
function ClientCmdopenGUI(%gui)
{
      canvas.pushdialog(yourGUINameHere');
}
« Last Edit: February 28, 2014, 05:27:09 PM by Crøwn »