Search found 29 matches

by Kevin
Sun Aug 03, 2008 06:37
Forum: Help
Topic: Destroying Custom Windows
Replies: 7
Views: 2825

Destroying Custom Windows

Hello, So I have created a few sub-classes of CEGUI::Window in the "proper" way (i.e. objects are created using the WindowManager::createWindow(...) function and a custom WindowFactory). This seems to work properly. However, the problem comes when I try to destroy it. The call to wmgr.dest...
by Kevin
Tue Jul 22, 2008 08:18
Forum: Help
Topic: MultiListSelectionBrush and WindowsLook
Replies: 2
Views: 1144

Hello,

Thanks for the help!

I'm not sure if the empty part of WindowsLook.tga that I tried is transparent or not, but it's very possible.

I tried using the "Background" image, and it works nicely! Thanks!

Kevin
by Kevin
Tue Jul 22, 2008 01:32
Forum: Help
Topic: MultiListSelectionBrush and WindowsLook
Replies: 2
Views: 1144

MultiListSelectionBrush and WindowsLook

Hello, I searched a bit and couldn't find anything related to this, so I figured I'd ask myself... I am trying to create a MultiColumnList. When using TaharezLook, the MultiListSelectionBrush works as expected, producing a solid colour equal to the selection colour assigned to that ListboxTextItem. ...
by Kevin
Wed Jun 04, 2008 17:38
Forum: Modifications / Integrations / Customisations
Topic: Text with different sizes
Replies: 6
Views: 2735

Hello, If you want fonts of different sizes at the same time, as far as I know, you will need that many different CEGUI::Font's registered with the system. Then, to scale them, try using Font::setProperty(...) with name="PointSize" and value a string holding the size you want. For example:...
by Kevin
Wed Jun 04, 2008 16:29
Forum: Help
Topic: Drawing custom text
Replies: 21
Views: 7565

Hello again, It seems that the problem was something with OpenGL's drawing and/or readPixels(...)... but I'm still not sure what exactly. Just to test it, I remembered I had some code from a while back that draws lines, circles, polygons, etc to memory using the "industry standard" algorit...
by Kevin
Sun Jun 01, 2008 21:16
Forum: Help
Topic: Drawing custom text
Replies: 21
Views: 7565

Hello, As I said, it's not that nothing was showing up - when I made the background a colour besides black it would draw a square of the appropriate size in the appropriate place of a slightly darker colour than the background. And I have since discovered (sort of) why it was doing that... I tried g...
by Kevin
Sun Jun 01, 2008 17:35
Forum: Help
Topic: Drawing custom text
Replies: 21
Views: 7565

Hello, I'm not exactly sure what you mean. If I use the same gl code that draws the square and line elsewhere (i.e. not saving it as a texture, etc) it shows up fine. I can also get it to display properly various gui elements (like a framewindow, a button and the scrollbars of a scrollablepane). In ...
by Kevin
Fri May 30, 2008 19:44
Forum: Help
Topic: Drawing custom text
Replies: 21
Views: 7565

Hello again, I'm not sure exactly if the image is the size of the whole texture or not since I can't find anywhere what units the Rect expects (i.e. The thing I'm trying to get it to draw is 100 x 100 pixels, so I'm not sure if it wants 0 ... 1, or 0 ... 100). Anyways, here is the relevant code that...
by Kevin
Thu May 29, 2008 19:48
Forum: Help
Topic: Drawing custom text
Replies: 21
Views: 7565

Hello, Thanks again! The problem was I was calling the constructors for OpenGLTexture and Imageset, which are, as you mentioned, protected, so it wouldn't even run. I have changed them to CEGUI::System::getSingleton().getRenderer()->createTexture(); and CEGUI::ImagesetManager::getSingleton().createI...
by Kevin
Wed May 28, 2008 21:46
Forum: Help
Topic: Drawing custom text
Replies: 21
Views: 7565

Hello again, Thanks to your help, I am a lot closer than I was! I have successfully got it to draw text in the way you have described! I guess I will be more specific as to what I am doing now: I have a CEGUI::ScrollablePane, and in this pane I want to draw some text and some other things that are w...
by Kevin
Tue May 27, 2008 19:21
Forum: Help
Topic: Drawing custom text
Replies: 21
Views: 7565

Thanks a lot! That makes a lot of sense! It's a nice touch that the creator / owner takes the time and effort to help people out!

Kevin
by Kevin
Tue May 27, 2008 17:06
Forum: Help
Topic: imagesets and pick an image
Replies: 10
Views: 2791

Hello, I'm not sure about the other problems, but the warning is accurate - it is a function that is supposed to return a bool, but it only returns anything if user_names is null. So you can either make it void, and replace "return true;" with "return;", or have it return somethi...
by Kevin
Tue May 27, 2008 16:54
Forum: Help
Topic: Drawing custom text
Replies: 21
Views: 7565

Thanks for the help! I have now tried (according to my understanding): CEGUI::WindowManager& wmgr = CEGUI::WindowManager::getSingleton(); MyWindow* wnd = (MyWindow*)wmgr.createWindow("DefaultWindow", "root"); CEGUI::System::getSingleton().setGU...
by Kevin
Mon May 26, 2008 16:27
Forum: Help
Topic: Drawing custom text
Replies: 21
Views: 7565

Drawing custom text

Hello, I am attempting to get the CEGUI system to draw custom text that is not necessarily "on" a CEGUI::Window object. I read about the preferred use of a RenderCache, so I have been trying to use that. I first tried: CEGUI::WindowManager& wmgr = CEGUI::WindowManager::getSingleton(...

Go to advanced search