5956
Modification Help / Re: GUI Help.
« on: June 02, 2007, 02:15:35 PM »
As far as I know, the GUI is broken and will not work for anyone but the host.
If you are trying to set the text on a GUI remotely:
Add-Ons/Client/GUIHello_client.cs
Add-Ons/Hello.cs
... Where guiHello is created by you with one control, "txtHello" as a MLTextCtrl.
If you are trying to set the text on a GUI remotely:
Add-Ons/Client/GUIHello_client.cs
Code: [Select]
function clientcmdGUIset(%obj,%text)
{
%obj.setText(%text);
}
function guiHello::onWake(%this)
{
commandtoserver('updateHelloGUI');
}Add-Ons/Hello.cs
Code: [Select]
function servercmdupdatehelloGUI(%client)
{
commandtoclient(%client,'GUIset',txtHello,"Hello " @ %client.name);
}... Where guiHello is created by you with one control, "txtHello" as a MLTextCtrl.