예제 #1
0
        private void LoadPressableImageStyleFromSource(JObject source, PressableImageStyle result)
        {
            LoadImageStyleFromSource(source, result);

            string name;

            if (source.GetStyle(PressedImageName, out name))
            {
                result.PressedImage = GetTextureRegion2D(name);
            }
        }
예제 #2
0
        private void LoadPressableImageStyleFromSource(Dictionary <string, object> source, PressableImageStyle result)
        {
            LoadImageStyleFromSource(source, result);

            string name;

            if (source.GetStyle(PressedImageName, out name))
            {
                result.PressedImage = GetDrawable(name);
            }
        }
예제 #3
0
 public PressableImageStyle(PressableImageStyle style) : base(style)
 {
     PressedImage = style.PressedImage;
 }