57thEnryu
Member
soo, Ive noticed in pause.gui there is this code here:
so I removed the /* from the above code and added this to the pause.cs:
Yet when I start legions it crashes. How on earth do I add a button that allows me to join observer so I don't have to type the code into the console?
Also it would be nice if someone made a observer hud that allowed you to switch from following players, to following the flag, to free-fly (or whateve its called)
PLZ&TY
Code:
};
/*
new GuiBitmapButtonCtrl(BecomeObserverButton) {
profile = "MenuTextButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "180 3";
extent = "160 35";
minExtent = "8 8";
visible = "1";
accelerator = "";
helpTag = "0";
text = "Spectate";
bitmap = "client/gui/images/menus/menuButton";
};
so I removed the /* from the above code and added this to the pause.cs:
Code:
function BecomeObserverButton::onWake( %this )
{
%this.setActive(0 != $CurrentTeam);
%this.setActive(1 != $CurrentTeam);
}
...
function BecomeObserverButton::onClick(%this)
{
commandToServer('SetPlayerObserving', true);
Canvas.popDialog(PauseGui);
}
Yet when I start legions it crashes. How on earth do I add a button that allows me to join observer so I don't have to type the code into the console?
Also it would be nice if someone made a observer hud that allowed you to switch from following players, to following the flag, to free-fly (or whateve its called)
PLZ&TY
