Change mouse Image
Posted: Sat Feb 09, 2008 22:26
I am working on a program...
I want to change the MouseCursor, i can change it, but i also need to change it with a value from a .txt message so the user can customise.
string fromtxtfile;
CEGUI::String valuefromtxtfile = fromtxtfile;
CEGUI::MouseCursor::getSingleton().setImage("LevelLook", valuefromtxtfile);
I have mad al the value's in the txt file available in the levellook.schem and levellook.imageset. If i use hard code like .setImage("LevelLook", "MouseEnemy"); it works fine.
Can anyone tell me what i am doing wrong..
I want to change the MouseCursor, i can change it, but i also need to change it with a value from a .txt message so the user can customise.
string fromtxtfile;
CEGUI::String valuefromtxtfile = fromtxtfile;
CEGUI::MouseCursor::getSingleton().setImage("LevelLook", valuefromtxtfile);
I have mad al the value's in the txt file available in the levellook.schem and levellook.imageset. If i use hard code like .setImage("LevelLook", "MouseEnemy"); it works fine.
Can anyone tell me what i am doing wrong..