Current location - Health Preservation Learning Network - Slimming men and women - How does Lua write the input box?
How does Lua write the input box?
Related interfaces are

cctextfield TTF:attachWithIME()return? Type:? Bending piece

cctextfield TTF:detachWithIME()return? Type:? Bending piece

cctextfield TTF:getCharCount()return? Type:? Internationalorganizations (same as international organizations)

cctextfield TTF:setColorSpaceHolder(ccColor3B? Val) return? Type:? empty

cctextfield TTF:getColorSpaceHolder()return? Type:? ccColor3B

CCTextFieldTTF:setString(const? char*? Text) return? Type:? empty

cctextfield TTF:getString()return? Type:? const? Character *

cctextfield TTF:setPlaceHolder(const? char*? Text) return? Type:? empty

cctextfield TTF:get placeholder()return? Type:? const? Character *

cctextfield TTF:textfield with placeholder(const? char*? Placeholder,? CCSize? Size? CCTextAlignment? Alignment? const? char*? Font name, floating? FontSize) return? Type:? CCTextFieldTTF

cctextfield TTF:textfield with placeholder(const? char*? Placeholder,? const? char*? Font name, floating? FontSize) return? Type:? To make an edit control, you must first create a textField with textFieldWithPlaceHolder.

Then set the set position.

Finally, the input method attachWithIME () should be associated.

I used cocos2d to do these things a while ago, but I found that there are still too few scripting interfaces provided by cc.

Some functions still need to be written under CPP.

For example, this editor can only provide input without a cursor.