Ejemplo n.º 1
0
 public void AddElementoAnimado(string img, int prof, float _w, float _h, float i, float j, bool s, Rectangle r, Animacion _Ani)
 {
     Elemento_Ani temp = new Elemento_Ani((int)(x + j * k), (int)(y + i * k), _w, _h, k, prof, s);
     temp.AddImg(img);
     temp.DefinePortion(r.X, r.Y, r.Width, r.Height);
     temp.AddAnimation(_Ani, F_H);
     Ele.Add(temp);
 }
Ejemplo n.º 2
0
 public void UpDate()
 {
     Data_Render DR = update(this);
     i = DR.i;
     a = DR.a;
     Prof = DR.Prof;
     rExt = DR.rExt;
     rInt = DR.rInt;
 }
Ejemplo n.º 3
0
 public Data_Render(string _i, RectangleF [] _r, int _p,Animacion _a, _Update up)
 {
     i = _i;
     rExt = _r[0];
     rInt = _r[1];
     Prof = _p;
     a = _a;
     update = up;
 }
Ejemplo n.º 4
0
 public List<Animacion> CargarAnimacion(XmlElement a, string img)
 {
     XmlNodeList _Animacion = a.GetElementsByTagName("Animacion");
     List<Animacion> ani = new List<Animacion>();
     foreach (XmlElement nodo in _Animacion)
     {
         int F_C = int.Parse(nodo.GetAttribute("frame_c"));
         int F_F = int.Parse(nodo.GetAttribute("frame_f"));
         int F_S = int.Parse(nodo.GetAttribute("frame_seg"));
         int F_I = int.Parse(nodo.GetAttribute("frame_ini"));
         int F_Fin = int.Parse(nodo.GetAttribute("frame_fin"));
         string nombre = nodo.GetAttribute("name");
         bool play = bool.Parse(nodo.GetAttribute("play"));
         Animacion an = new Animacion(F_C, F_F, F_S, F_I, F_Fin);
         an.F_actual = F_I;
         an.AddNombre(nombre);
         an.CrearFrames((Bitmap)GetImg(img));
         an.Play = play;
         ani.Add(an);
     }
     return ani;
 }
 public void AddData(string i, RectangleF [] r, Animacion a, int p, _Update up)
 {
     Render_List.Add(new Data_Render(i, r, p, a, up));
 }
Ejemplo n.º 6
0
 public void AddAccion(Animacion a, string n, FileHandler F_H)
 {
     a.CrearFrames(im, F_H);
     a.AddNombre(n);
     acciones.Add(a);
 }
Ejemplo n.º 7
0
 //----------------Animacion-----------------------------//
 public void AddAccion(Animacion a, string n, FileHandler F_H,string i)
 {
     this.AddImg(i);
     AddAccion(a, n, F_H);
 }
Ejemplo n.º 8
0
 public void AddAnimation(Animacion a, FileHandler F_H)
 {
     ani = a;
     ani.CrearFrames(im, F_H);
 }
Ejemplo n.º 9
0
 public void AddAnimation(Animacion a, FileHandler F_H, string n)
 {
     AddImg(n);
     ani = a;
     ani.CrearFrames(n,F_H);
 }