mirror of https://github.com/axmolengine/axmol.git
commit
e8853583df
|
@ -22,6 +22,11 @@ public class Cocos2dxBitmap{
|
|||
|
||||
public static void createTextBitmap(String content, String fontName,
|
||||
int fontSize, int alignment){
|
||||
// avoid error when content is ""
|
||||
if (content.compareTo("") == 0){
|
||||
content = " ";
|
||||
}
|
||||
|
||||
Paint paint = newPaint(fontName, fontSize, alignment);
|
||||
|
||||
TextProperty textProperty = getTextWidthAndHeight(content, paint);
|
||||
|
|
|
@ -22,6 +22,11 @@ public class Cocos2dxBitmap{
|
|||
|
||||
public static void createTextBitmap(String content, String fontName,
|
||||
int fontSize, int alignment){
|
||||
// avoid error when content is ""
|
||||
if (content.compareTo("") == 0){
|
||||
content = " ";
|
||||
}
|
||||
|
||||
Paint paint = newPaint(fontName, fontSize, alignment);
|
||||
|
||||
TextProperty textProperty = getTextWidthAndHeight(content, paint);
|
||||
|
|
|
@ -22,6 +22,11 @@ public class Cocos2dxBitmap{
|
|||
|
||||
public static void createTextBitmap(String content, String fontName,
|
||||
int fontSize, int alignment){
|
||||
// avoid error when content is ""
|
||||
if (content.compareTo("") == 0){
|
||||
content = " ";
|
||||
}
|
||||
|
||||
Paint paint = newPaint(fontName, fontSize, alignment);
|
||||
|
||||
TextProperty textProperty = getTextWidthAndHeight(content, paint);
|
||||
|
|
|
@ -72,7 +72,7 @@ Parallax1::Parallax1()
|
|||
|
||||
std::string Parallax1::title()
|
||||
{
|
||||
return "MotionStreak test (tap screen)";
|
||||
return "Parallax: parent and 3 children";
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue