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

            string name;

            if (source.GetStyle(ImageName, out name))
            {
                result.Image = GetTextureRegion2D(name);
            }

            if (source.GetStyle(ThicknessName, out name))
            {
                result.Thickness = int.Parse(name);
            }
        }
示例#2
0
 public MenuSeparatorStyle(MenuSeparatorStyle style) : base(style)
 {
     Image     = style.Image;
     Thickness = style.Thickness;
 }