ajout des hp et des degats sur les cartes GRAND format

This commit is contained in:
mmarc471@gmail.com
2020-09-09 18:36:08 +02:00
parent 75df96126f
commit 307051bca2
4 changed files with 49 additions and 7 deletions
@@ -92,6 +92,8 @@ public class Drawable {
List<String> linesOfText = cutText(20,text);
Log.i("bitmap"," : h:" + 40*linesOfText.size() + " w: "+text.length()*textSize / linesOfText.size());
bitmap = Bitmap.createBitmap((int)(text.length()*textSize / linesOfText.size()), (int) 40*linesOfText.size(), Bitmap.Config.ARGB_8888);
checkPaint();
@@ -221,6 +223,7 @@ public class Drawable {
Log.e("TextRender","ERROR WORD TOO LONG :" + word);
}
}
if(!nextLine.equals(""))output.add(nextLine);
return output;
}
}