Ejemplo n.º 1
0
 public RenderComponent(AtlasFrame frame)
 {
     Frames = new List <AtlasFrame>()
     {
         frame
     };
 }
Ejemplo n.º 2
0
        private void showAtlas(FileInfo file, FileRecord rec)
        {
            if (file.Extension != ".atlas")
            {
                return;
            }
            rec.FileIcon = new BitmapImage(new Uri(CONST_STRING.MaterialIcon, UriKind.Relative));
            Dictionary <string, AtlasFrame> atlasList = AtlasTools.Instance.GetAtlasFrameList(file.FullName);

            foreach (KeyValuePair <string, AtlasFrame> kv in atlasList)
            {
                AtlasFrame atlas = kv.Value;
                atlas.ShowText     = atlas.frameName;
                atlas.DragText     = atlas.frameName;
                atlas.FileFullName = file.FullName;
                rec.SubRecords.Add(atlas);
            }
        }