Author Topic: Basic in-game GUI help?  (Read 775 times)

I need a basic GUI window setup, just the basics like the option to set a key blinding in the Controls. I can do the rest but I'm stuck on the first part.

Look at the Macro Saver.

Sweet thanks.

Ok I'm stuck again but with a different problem, I'm trying to make a button that would turn this script off and off like type /santahat does.
Code: [Select]
datablock ShapeBaseImageData(SantaHatImage)
{
shapeFile = "./Shapes/Santahat.dts";
emap = true;
mountPoint = $HeadSlot;
offset = "0 0 0.2";
eyeOffset = "0 0 0.4";
rotation = eulerToMatrix("0 0 0");
scale = "1 1 1";
doColorShift = true;
colorShiftColor = "1.000 0.000 0.000 1.000";
};

function serverCmdSantaHat(%client)
{
%player = %client.player;

if(isObject(%player))
{
if(%player.getMountedImage(2) $= nametoID(SantaHatImage))
{
%player.unmountImage(2);
%client.applyBodyParts();
%client.applyBodyColors();
}
else
{
%player.unmountImage(2);
%player.mountImage(SantaHatImage,2);

for(%i = 0;$hat[%i] !$= "";%i++)
{
%player.hideNode($hat[%i]);
%player.hideNode($accent[%i]);
}
}
}
}
I don't know what I need to add to be able to do that.
« Last Edit: January 11, 2008, 07:20:56 PM by Packer »

commandtoserver(\'santaHat\');?

commandtoserver(\'santaHat\');?
luv joo! If I need any more help I'll ask again.