示例#1
0
        private void LoadButtonBaseStyleFromSource(JObject source, ButtonBaseStyle result)
        {
            LoadWidgetStyleFromSource(source, result);

            string name;

            if (source.GetStyle(PressedBackgroundName, out name))
            {
                result.PressedBackground = GetTextureRegion2D(name);
            }
        }
示例#2
0
        private void LoadButtonBaseStyleFromSource(Dictionary <string, object> source, ButtonBaseStyle result)
        {
            LoadWidgetStyleFromSource(source, result);

            string name;

            if (source.GetStyle(PressedBackgroundName, out name))
            {
                result.PressedBackground = GetDrawable(name);
            }
        }
示例#3
0
 public ButtonBaseStyle(ButtonBaseStyle style) : base(style)
 {
     PressedBackground = style.PressedBackground;
 }