public UserCircle(Vector2 pos, int radius, uint color, float borderSize, string name) :base(pos, radius, color.ToColor(), borderSize) { Name = name; TextLabel = new CozyLabel(name, Color.WhiteSmoke); TextLabel.Position = ContentSize / 2; this.AddChind(TextLabel); }
public BallGameSceneLayer() { InitKeyboard(); RegisterEvent(); ScoreShow = new CozyLabel("Score : 0", Color.Red); ScoreShow.AnchorPoint = Vector2.Zero; this.AddChind(ScoreShow, 1000); client.Connect("127.0.0.1", 48360); }