Search found 7 matches

by BRAINLESS
Tue Dec 12, 2006 16:57
Forum: Modifications / Integrations / Customisations
Topic: Window sizes
Replies: 2
Views: 2548

Alright, here we go: std::string label = "test"; m_Window->setSize(CEGUI::Absolute, CEGUI::Size(m_Window->getFont()->getTextExtent(label), m_Window->getFont()->getFontHeight())); getTextExtend returns 17, getFontHeight returns 13, so you've g...
by BRAINLESS
Tue Dec 12, 2006 16:50
Forum: Modifications / Integrations / Customisations
Topic: Window sizes
Replies: 2
Views: 2548

Don't you just love it that 10 seconds after you post a question, you come across something that could possibly answer it... float getTextExtent (const String &text, float x_scale=1.0f) Return the pixel width of the specified text if rendered with this Font. float getFormattedTextExtent ...
by BRAINLESS
Tue Dec 12, 2006 16:47
Forum: Modifications / Integrations / Customisations
Topic: Window sizes
Replies: 2
Views: 2548

Window sizes

I want to allow adding GUI widgets to a window by code, and I don't want it to take a lot of effort. So, I've written a simple wrapper called class: Label. It does exactly what you would expect, display a label :) The problem is, I can't figure out how wide the label has to be. I don't want it to be...
by BRAINLESS
Fri May 06, 2005 00:16
Forum: Modifications / Integrations / Customisations
Topic: Running the OGRE GUI sample error
Replies: 2
Views: 2354

Re: Running the OGRE GUI sample error

I've fixed the problem by building xerces-c from source, rather then using gentoos "emerge xerces-c". This fix was suggested on the Ogre forums (http://www.ogre3d.org/phpBB2/viewtopic. ... 8416#58416).
by BRAINLESS
Fri May 06, 2005 00:14
Forum: Modifications / Integrations / Customisations
Topic: Trouble loading a scheme
Replies: 5
Views: 4559

Re: Trouble loading a scheme

Spudder: I had the same problem, I fixed it by building xerces-c from source (I used gentoos "emerge xerces-c" before, which didn't work). This fix was suggested on the Ogre forums (http://www.ogre3d.org/phpBB2/viewtopic. ... 8416#58416).
by BRAINLESS
Wed May 04, 2005 23:27
Forum: Modifications / Integrations / Customisations
Topic: Running the OGRE GUI sample error
Replies: 2
Views: 2354

Re: Running the OGRE GUI sample error

I think this one's related to: http://www.cegui.org.uk/modules/newbb/viewtopic.php?topic_id=655&forum=2&post_id=3994#forumpost3994 I'm just posting this because I have the same problem :( Haven't found a workaround yet, but installing Ogres default files doesn't work as I'm using the Ogre de...
by BRAINLESS
Wed Mar 30, 2005 19:24
Forum: Offtopic Discussion
Topic: a little typo in CEGUI::System
Replies: 1
Views: 3009

a little typo in CEGUI::System

While I was scrolling through CEGUISystem.h I noticed a function called: int executeScriptGloabl(const String& function_name) const; which should of course be executeScriptGlobal(..) I'm not sure if I have an old version or if this has been mentioned before, but a quick search on this forum didn...

Go to advanced search