public GameHud() { Current = this; if (!IsClient) { return; } RootPanel.AddChild <ChatBox>(); }
private void confirmColor() { basePreview.Delete(); headPreview.Delete(); cannonPreview.Delete(); treadPreview.Delete(); Delete(true); TankGame.FinishPickingColor(customColor.ToColor().ToVector3()); // Sends chosen color to server and tells it to spawn us in GameHud.AddActualHud(); Cookie.Set("mtk_customcolor", cookieSaveColor); }