6391
Modification Help / Re: Server functions in client.cs?
« on: November 17, 2008, 02:25:22 AM »Code: [Select]function GuiControl::onWake(%this)
{
ListCtrl.clear();
for(%i = 0; %i < DataBlockGroup.getCount(); %i++)
{
%obj = DataBlockGroup.getObject(%i);
if(%obj.getClassName() $= "ItemData" && %obj.uiName !$= "")
GuiTextListCtrl.addRow(%i, %obj.uiName);
}
}
This would only work for the host of the server. If a client wanted to populate the list they'd need to be interating through ServerConnection.