Inheritance: TextButtonStyle
コード例 #1
0
 public ImageTextButtonStyle(ImageTextButtonStyle style)
     : base(style)
 {
     ImageUp          = style.ImageUp;
     ImageDown        = style.ImageDown;
     ImageOver        = style.ImageOver;
     ImageChecked     = style.ImageChecked;
     ImageCheckedOver = style.ImageCheckedOver;
     ImageDisabled    = style.ImageDisabled;
 }
コード例 #2
0
        public ImageTextButton(string text, ImageTextButtonStyle style)
            : base(style)
        {
            _style = style;

            Defaults().Configure.Space(3);

            _image         = new Image();
            _image.Scaling = Scaling.Fit;
            Add(_image);

            _label = new Label(text, new LabelStyle(style.Font, style.FontColor));
            _label.SetAlignment(Alignment.Center);
            Add(_label);

            Width  = PrefWidth;
            Height = PrefHeight;
        }
コード例 #3
0
ファイル: ImageTextButton.cs プロジェクト: jaquadro/MonoGdx
        public ImageTextButton(string text, ImageTextButtonStyle style)
            : base(style)
        {
            _style = style;

            Defaults().Configure.Space(3);

            _image = new Image();
            _image.Scaling = Scaling.Fit;
            Add(_image);

            _label = new Label(text, new LabelStyle(style.Font, style.FontColor));
            _label.SetAlignment(Alignment.Center);
            Add(_label);

            Width = PrefWidth;
            Height = PrefHeight;
        }
コード例 #4
0
ファイル: ImageTextButton.cs プロジェクト: jaquadro/MonoGdx
 public ImageTextButtonStyle(ImageTextButtonStyle style)
     : base(style)
 {
     ImageUp = style.ImageUp;
     ImageDown = style.ImageDown;
     ImageOver = style.ImageOver;
     ImageChecked = style.ImageChecked;
     ImageCheckedOver = style.ImageCheckedOver;
     ImageDisabled = style.ImageDisabled;
 }