Narendrabrsoft / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

CCLabel.makeLabel not working with dimensions #64

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,
I am not get proper result while using below option.
CCLabel.makeLabel(String string, CGSize dimensions, TextAlignment alignment, 
String fontname, float fontsize)

What steps will reproduce the problem?
1. Try to use above label.
2.
3.

What is the expected output? What do you see instead?
It should display given text within given rectangle.
Instead its only clipping it with given rect width and not showing text in 
multiple line.

What version of the product are you using? On what operating system?
Latest one 0.82.

Please provide any additional information below.

Original issue reported on code.google.com by rajnimge...@gmail.com on 28 Apr 2011 at 11:25

GoogleCodeExporter commented 8 years ago
http://www.cocos2d-iphone.org/forum/topic/13292

Original comment by thomashi...@gmail.com on 6 May 2011 at 3:39

GoogleCodeExporter commented 8 years ago
Hi,
Thanks for the help,
I went thru that code and added it to latest source of cocos2d-android. But 
when I add it to my source code(instead of using cocos2d-android.jar I am 
compiling with direct source) CCLabel works fine but menuitem callbacks are not 
called.
I dont know why this is happenning. 
Can you please let me know how to generate cocos2d-android.jar after changing 
code mentioned in this link http://www.cocos2d-iphone.org/forum/topic/13292
.
Thank you.

Original comment by rajnimge...@gmail.com on 6 May 2011 at 8:47

GoogleCodeExporter commented 8 years ago
Make sure for menuitem's your callback functions are formated as:
public void FUNCTION_NAME(Object sender) {
}

And for turning the cocos2d android-1 source that you altered back into a jar 
just use eclipse.
File -> Export -> Java -> Jar

Original comment by thomashi...@gmail.com on 9 May 2011 at 1:41

GoogleCodeExporter commented 8 years ago
Hi,
Thanks for help.
I finally got it solved.
What I did is changed the cocos2d-iphone source file using
http://www.cocos2d-iphone.org/forum/topic/13292
Then I included it in my scr folder instead of using lib.
Its working fine now.
Thanks again

Original comment by rajnimge...@gmail.com on 11 May 2011 at 4:53