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); } }
public MenuSeparatorStyle(MenuSeparatorStyle style) : base(style) { Image = style.Image; Thickness = style.Thickness; }