Пример #1
0
        public DrawPrimitivesRoundRectTest()
        {
            TouchMode    = CCTouchMode.OneByOne;
            TouchEnabled = true;
            RoundRectPrimitive r = new RoundRectPrimitive(new CCSize(180f, 180f), 5);

            r.Color       = CCColor3B.Yellow;
            r.Position    = CCDirector.SharedDirector.WinSize.Center;
            r.AnchorPoint = CCPoint.AnchorMiddle;
            AddChild(r, 0, kTagRoundRect);
        }
Пример #2
0
 public RoundRectSprite(CCSize size, int radius, int cornerSegments)
 {
     _Rect = new RoundRectPrimitive(size, radius, cornerSegments);
 }
Пример #3
0
 public RoundRectSprite(CCSize size, int radius)
 {
     _Rect = new RoundRectPrimitive(size, radius);
 }
Пример #4
0
 public RoundRectSprite(CCSize size, int radius, int cornerSegments)
 {
     _Rect = new RoundRectPrimitive(size, radius, cornerSegments);
 }
Пример #5
0
 public RoundRectSprite(CCSize size, int radius)
 {
     _Rect = new RoundRectPrimitive(size, radius);
 }
Пример #6
0
 public DrawPrimitivesRoundRectTest()
 {
     TouchMode = CCTouchMode.OneByOne;
     TouchEnabled = true;
     RoundRectPrimitive r = new RoundRectPrimitive(new CCSize(180f, 180f), 5);
     r.Color = CCColor3B.Yellow;
     r.Position = CCDirector.SharedDirector.WinSize.Center;
     r.AnchorPoint = CCPoint.AnchorMiddle;
     AddChild(r, 0, kTagRoundRect);
 }