Pokemon3D.UI.LeftSideButton.LeftSideButton C# (CSharp) Method

LeftSideButton() public method

public LeftSideButton ( LocalizedValue text, Vector2 position, Action onClick ) : System
text LocalizedValue
position Vector2
onClick Action
return System
        public LeftSideButton(LocalizedValue text, Vector2 position, Action<LeftSideButton> onClick)
        {
            _font = GameProvider.GameInstance.Content.Load<SpriteFont>(ResourceNames.Fonts.NormalFont);
            _texture = GameProvider.GameInstance.Content.Load<Texture2D>(ResourceNames.Textures.UI.Common.Button_Blank);

            Text = text;
            var bounds = Bounds;
            bounds.X = (int) position.X;
            bounds.Y = (int) position.Y;
            bounds.Width = 200;
            bounds.Height = 38;
            Bounds = bounds;
            _onClick = onClick;

            FocusedAnimation = new UiMultiAnimation(new UiAnimation[]
            {
                new UiColorAnimation(0.3f, new Color(255, 255, 255), new Color(100, 193, 238)),
                new UiOffsetAnimation(0.3f, Vector2.Zero, new Vector2(50,0))
            });
        }