private void LoadButtonBaseStyleFromSource(JObject source, ButtonBaseStyle result) { LoadWidgetStyleFromSource(source, result); string name; if (source.GetStyle(PressedBackgroundName, out name)) { result.PressedBackground = GetTextureRegion2D(name); } }
private void LoadButtonBaseStyleFromSource(Dictionary <string, object> source, ButtonBaseStyle result) { LoadWidgetStyleFromSource(source, result); string name; if (source.GetStyle(PressedBackgroundName, out name)) { result.PressedBackground = GetDrawable(name); } }
public ButtonBaseStyle(ButtonBaseStyle style) : base(style) { PressedBackground = style.PressedBackground; }