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; } }
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); }
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); } }
public TouchablePart(Rect localBounds, Pivot parentPivot, float x = 0, float y = 0) : base(parentPivot, x, y) { this.localBounds = localBounds; }
public DrawablePart(Pivot parentPivot, float x = 0, float y = 0) { pivot = new Pivot(x, y, parentPivot); pivot.Changed += OnAppearanceChanged; }
public RectContent(Rect rect, Pivot parentPivot = null, float x = 0, float y = 0) : base(parentPivot, x, y) { this.rect = rect; }
public GameView(Context context, IAttributeSet attrs) : base(context, attrs, 0) { Instance = this; rootPivot = new Pivot(xCenter, yCenter); }
public Button(DrawablePart face, Rect localBounds, Pivot parentPivot, float x = 0, float y = 0) : base(localBounds, parentPivot, x, y) { CurrentDiveTime = 0; this.face = face; }
public Pivot(float x = 0, float y = 0, Pivot parent = null) { X = x; Y = y; Parent = parent; }
public ComplexContent(Pivot parentPivot, float x = 0, float y = 0) : base(parentPivot, x, y) { }