if(!isObject(StatsGui))
exec("add-ons/client/StatsGui.gui");
function updateStatsGui(%client){
PL_ID.setText(%client.BL_ID);
BLP_MENU.setText(%client.name @ "-BLP Menu");
PL_Score.setText(%client.score);
SV_INFO.setText($Pref::Server::WelcomeMessage);
SV_MLL.setText($Pref::Server::MaxLights_PerPlayer);
SV_ME.setText($Pref::Server::MaxEmitters_PerPlayer);
SV_MaxPlayers.setText($Pref::Server::MaxPlayers);
SV_BRL.setText($Pref::Server::BrickLimit);
SV_N.setText($Pref::Server::Name);
PL_BrickCount.setText(%client.brickGroup.getCount());
view1.setObject("BLPBack", "add-ons/shapes/sword.dts", "base/data/shapes/brickTOP", 0);
view2.setObject("BLPBack", "add-ons/shapes/jeep.dts", "base/data/shapes/brickTOP", 0);
360.setcameraZRot(%360_Val.value);
}
function serverCmdOpenStatsGui(%client){
canvas.pushDialog(StatsGui);
updateStatsGui(%client);
}
(everything else works)
you open the gui by typing "/openstatsgui" and that updates it.
A slider's values controls what the rotation of a player view is in a gui, this wont work
360_val is the slider
360 is the player view
a pictures is attached to help.