Esempio n. 1
0
 public LoadingIndicator(int radius, Pivot parentPivot, float x, float y)
     : base(parentPivot, x, y)
 {
     this.radius = radius;
     sizes[0]    = radius * FirstCircleProportion;
     for (int i = 1; i < CirclesCnt; ++i)
     {
         sizes[i] = sizes[i - 1] * SizeMultiplier;
     }
 }
Esempio n. 2
0
 public HLineSwitch(int width, int segmentWidth, int states, int currentState,
                    Pivot parentPivot, float x, float y) : base(parentPivot, x, y)
 {
     this.width        = width;
     this.segmentWidth = segmentWidth;
     this.states       = states;
     this.currentState = currentState;
     indent            = (width / states - segmentWidth) / 2;
     curX = CountStateX(currentState);
 }
Esempio n. 3
0
 public GameField(FieldData fieldData, Pivot parentPivot, float x, float y)
     : base(bounds, parentPivot, x, y)
 {
     this.fieldData = fieldData;
     points         = new GamePoint[fieldData.pointsCnt];
     for (int i = 0; i < fieldData.pointsCnt; ++i)
     {
         int xc = (int)(fieldData.points[i].x * GameView.scaleFactor);
         int yc = (int)(fieldData.points[i].y * GameView.scaleFactor);
         points[i] = new GamePoint(pivot, xc, yc);
         pointsAlive.Add(i);
     }
     for (int i = 0; i < fieldData.segmentsCnt; ++i)
     {
         availableSegments.Add(i);
     }
 }
Esempio n. 4
0
 public TouchablePart(Rect localBounds, Pivot parentPivot, float x = 0, float y = 0)
     : base(parentPivot, x, y)
 {
     this.localBounds = localBounds;
 }
Esempio n. 5
0
 public DrawablePart(Pivot parentPivot, float x = 0, float y = 0)
 {
     pivot          = new Pivot(x, y, parentPivot);
     pivot.Changed += OnAppearanceChanged;
 }
Esempio n. 6
0
 public RectContent(Rect rect, Pivot parentPivot = null,
                    float x = 0, float y = 0) : base(parentPivot, x, y)
 {
     this.rect = rect;
 }
Esempio n. 7
0
 public GameView(Context context, IAttributeSet attrs) : base(context, attrs, 0)
 {
     Instance  = this;
     rootPivot = new Pivot(xCenter, yCenter);
 }
Esempio n. 8
0
 public Button(DrawablePart face, Rect localBounds, Pivot parentPivot,
               float x = 0, float y = 0) : base(localBounds, parentPivot, x, y)
 {
     CurrentDiveTime = 0;
     this.face       = face;
 }
Esempio n. 9
0
 public Pivot(float x = 0, float y = 0, Pivot parent = null)
 {
     X      = x;
     Y      = y;
     Parent = parent;
 }
Esempio n. 10
0
 public ComplexContent(Pivot parentPivot, float x = 0, float y = 0) :
     base(parentPivot, x, y)
 {
 }