Search found 10 matches

by haihuojiming
Fri Feb 13, 2009 08:18
Forum: Modifications / Integrations / Customisations
Topic: About the Multibyte language use Lua in CEGUI
Replies: 3
Views: 4588

Re: About the Multibyte language use Lua in CEGUI

http://www.cegui.org.uk/phpBB2/viewtopic.php?t=3770 you can read this post. if u can write the codes in demo8.lue " function addItemHandler(args) local winMgr = CEGUI.WindowManager:getSingleton() local text = winMgr:getWindow("Demo8/Window1/Controls/Editbox"):getText() local cols = C...
by haihuojiming
Tue Dec 30, 2008 16:13
Forum: Modifications / Integrations / Customisations
Topic: How can I use LUA to set chinese string in CEGUI
Replies: 4
Views: 5227

the function works for Chinese too . i add a a method setTextA to base class CEGUI::Window, it use a virtual interface to tanslate the code. but... ... scriptkid do you forget to use a transform funtion for ascToUTF8 ? -------------------------------------------------------------------------------- ...
by haihuojiming
Mon Dec 29, 2008 14:35
Forum: Modifications / Integrations / Customisations
Topic: How can I use LUA to set chinese string in CEGUI
Replies: 4
Views: 5227

hi. i know the problem you have.

lua support the asc code, so when you translate the string to unicode, you won't have the right result.

I'm Chinese too, add me msn

haihuogeming#163.com .. maybe i can help you
by haihuojiming
Sun Dec 07, 2008 15:40
Forum: Modifications / Integrations / Customisations
Topic: MultiLineEditbox::formatText question
Replies: 17
Views: 11366

I read the code again , if i use setWordWrapping(false), the new line only do;t create until a '\n' is given. in fact if i edit the TextUtils::DefaultWrapDelimiters(" \n\t\r") to TextUtils::DefaultWrapDelimiters("") , my problem is over. but the important thing i wanted to know i...
by haihuojiming
Fri Dec 05, 2008 16:19
Forum: Modifications / Integrations / Customisations
Topic: MultiLineEditbox::formatText question
Replies: 17
Views: 11366

Then, for correct word-wrapping, the system needs to know every Chinese word, or is there some trick to see where one can wrap text in Chinese ? in our text, the words are arounded one by one, blank is not nessery for two words, it's defference from English, for example: "我喜Ē...
by haihuojiming
Fri Dec 05, 2008 13:01
Forum: Modifications / Integrations / Customisations
Topic: MultiLineEditbox::formatText question
Replies: 17
Views: 11366

I think i know why the WrapWords are used to wrap the string. It's the result i really want to know because i think there must be a correct reason for using the wrapwords omt the textformat function. thanks. I use the Chinese in MultiLineEditbox and our language need no blank word between words. so ...
by haihuojiming
Sun Nov 30, 2008 13:23
Forum: Modifications / Integrations / Customisations
Topic: MultiLineEditbox::formatText question
Replies: 17
Views: 11366

:D

the feeling of report the bug to help cegui project is cool,
and

because i use cegui to a project, i'll reprot bugs i find .
by haihuojiming
Sun Nov 30, 2008 10:53
Forum: Modifications / Integrations / Customisations
Topic: MultiLineEditbox::formatText question
Replies: 17
Views: 11366

Glad to see your reply, CE eg. i put the text " i-should-be-the-first-line" to MultiLineEditbox(there is a space word value befor "i should") , int the MultiLineEditbox::formatText function size_t nextTokenSize = getNextTokenLength(paraText, lineIndex + lineLen); float tokenExten...
by haihuojiming
Fri Nov 28, 2008 07:25
Forum: Modifications / Integrations / Customisations
Topic: MultiLineEditbox::formatText question
Replies: 17
Views: 11366

MultiLineEditbox::formatText question

hi all , it's my first question topic. ^^ cegui is very cool and i like it very much. those days i have a problem about the function [bMultiLineEditbox::formatText if the key ' '(space)is the first word , there must be a new line like the effect '\n' and the codes i fond is " // get cp / char c...
by haihuojiming
Thu Nov 20, 2008 12:18
Forum: Offtopic Discussion
Topic: UI animation engine
Replies: 22
Views: 25082

thanks for sharing this code. it's very useful

Go to advanced search