Exemplo n.º 1
0
        public void SetBothSideRelation(TextAnchor _positionAnchor, AnchorBounds _anchorBounds, Vector2 _relativePosition, Vector2 _relativeSize)
        {
            useRelativeData = true;

            relativeTo = SizeRelation.BothSidesOfScreen;
            positionAnchor = _positionAnchor;
            anchorBounds = _anchorBounds;
            relativePosition = _relativePosition;

            relativeSize = _relativeSize;

            SetRelativeData();
        }
Exemplo n.º 2
0
        public void SetBothSideRelation(TextAnchor _positionAnchor, AnchorBounds _anchorBounds, Vector2 _relativePosition, Vector2 _relativeSize)
        {
            useRelativeData = true;

            relativeTo       = SizeRelation.BothSidesOfScreen;
            positionAnchor   = _positionAnchor;
            anchorBounds     = _anchorBounds;
            relativePosition = _relativePosition;

            relativeSize = _relativeSize;

            SetRelativeData();
        }
Exemplo n.º 3
0
        public void SetOneSideRelation(TextAnchor _positionAnchor, AnchorBounds _anchorBounds, Vector2 _relativePosition, ScreenAxis _axis, float _relativeSize, Vector2 _customRatio)
        {
            useRelativeData = true;

            relativeTo = SizeRelation.OneSideOfScreen;
            positionAnchor = _positionAnchor;
            anchorBounds = _anchorBounds;
            relativePosition = _relativePosition;

            selectedAxis = _axis;
            relativeSingleSize = _relativeSize;
            customRatio = _customRatio;

            SetRelativeData();
        }
Exemplo n.º 4
0
        public void SetOneSideRelation(TextAnchor _positionAnchor, AnchorBounds _anchorBounds, Vector2 _relativePosition, ScreenAxis _axis, float _relativeSize, Vector2 _customRatio)
        {
            useRelativeData = true;

            relativeTo       = SizeRelation.OneSideOfScreen;
            positionAnchor   = _positionAnchor;
            anchorBounds     = _anchorBounds;
            relativePosition = _relativePosition;

            selectedAxis       = _axis;
            relativeSingleSize = _relativeSize;
            customRatio        = _customRatio;

            SetRelativeData();
        }