Blockland Forums > Modification Help

GUIPopupMenuProfile Help

Pages: << < (2/3) > >>

soba:

for(%i=0;%i<datablockGroup.getCount();%i++)
{
%obj = datablockGroup.getObject(%i);
if(%obj.getClassName() $= "fxDTSBrickData")
{
GUINAME.add(%obj.uiName);
}
}

creates a dropdown menu of all the brick UI names

mp7964:


--- Quote from: soba on November 15, 2011, 04:16:14 AM ---for(%i=0;%i<datablockGroup.getCount();%i++)
{
%obj = datablockGroup.getObject(%i);
if(%obj.getClassName() $= "fxDTSBrickData")
{
GUINAME.add(%obj.uiName);
}
}

creates a dropdown menu of all the brick UI names

--- End quote ---

Is that the code I gave you? B)

soba:


--- Quote from: mp7964 on November 16, 2011, 07:13:34 PM ---Is that the code I gave you? B)

--- End quote ---
Plornt provided it actually

Ephialtes:


--- Quote from: soba on November 15, 2011, 04:16:14 AM ---for(%i=0;%i<datablockGroup.getCount();%i++)
{
%obj = datablockGroup.getObject(%i);
if(%obj.getClassName() $= "fxDTSBrickData")
{
GUINAME.add(%obj.uiName);
}
}

creates a dropdown menu of all the brick UI names

--- End quote ---

FYI that'll only work for the server host. Try it on a dedicated server and you'll see what I mean.

soba:


--- Quote from: Ephialtes on November 18, 2011, 12:12:41 PM ---FYI that'll only work for the server host. Try it on a dedicated server and you'll see what I mean.

--- End quote ---
I see, funny, thats what I needed it to work for in the first place :P, how would a client sided one look?

Pages: << < (2/3) > >>

Go to full version