Esempio n. 1
0
 public override Drawable clone()
 {
     TextureDrawable newInst = new TextureDrawable(image.clone(), depth);
     newInst.scale = scale;
     newInst.color = color;
     newInst.handle = handle;
     return newInst;
 }
Esempio n. 2
0
 /*
  *helpers
  */
 public void initAssets()
 {
     foreach (string str in PNGS_TO_LOAD)
     {
         textures.Add(str, FVImage.load(content, str));
         TextureDrawable tDbl = new TextureDrawable(textures[str], 0.5f);
         tDbl.centerHandle();
         dbls.Add(str, tDbl);
     }
 }