Search found 149 matches

by gcarlton
Sat Aug 06, 2005 04:17
Forum: CEGUI Library Development Discussion
Topic: derive cegui::exception from std::exception?
Replies: 3
Views: 4479

derive cegui::exception from std::exception?

I've just noticed that the cegui exceptions don't derive from the std exception class, which I believe they should do. I can submit a small patch for this, as its essentially two lines of code. The std::exception's what() can return the message's c_str(). Thats unless it was a deliberate design deci...
by gcarlton
Sun Jul 31, 2005 06:10
Forum: Modifications / Integrations / Customisations
Topic: convert std::wstring to CEGUI::String?
Replies: 4
Views: 3877

Re: convert std::wstring to CEGUI::String?

Here is a group of C functions which apparently convert between utf-8, utf-16, and utf-32.
http://www.unicode.org/Public/PROGRAMS/CVTUTF

As far as I understand it, utf-16 is wchar_t, and so you should be able to convert between that and utf-8 using these functions.
by gcarlton
Fri Jul 29, 2005 09:01
Forum: Modifications / Integrations / Customisations
Topic: curved window
Replies: 14
Views: 7341

Re: curved window

Hi, Thanks, I didn't know that I got a mention. Nice! :) That movitates me to try to clean up my version to get a proper rotating-images patch. One of these days I'm going to get sick of merging my tangle of differences each update and just do it. (But not today). By clipping due you mean child wind...
by gcarlton
Thu Jul 28, 2005 02:03
Forum: Modifications / Integrations / Customisations
Topic: loading the same layout more than once
Replies: 2
Views: 1761

Re: loading the same layout more than once

It will throw an exception because it will try to create a new set of windows with the same names. You'll want to keep track of the windows anyway, because otherwise you'd leave lots of window hierarchies sitting around once you've finished with them. If you really need to load up multiple layouts a...
by gcarlton
Thu Jul 28, 2005 01:53
Forum: Modifications / Integrations / Customisations
Topic: curved window
Replies: 14
Views: 7341

Re: curved window

Isn't this fairly easy? If you already have a window with the appropriate alpha'd texture, you just need to decide when the clicks are inside the area. There may be a virtual function already to do this. Essentially you just need cegui to ask the window "am I clicked". If the click is with...
by gcarlton
Tue Jul 19, 2005 07:16
Forum: Offtopic Discussion
Topic: RenderCache double offset?
Replies: 5
Views: 3895

Re: RenderCache double offset?

Ok, thanks for making up that patch. Talking of bugs, I've noticed a couple of things with the tooltip - and again I'm just going to mention them rather than making up a patch, due to time. The comments on the setDisplayTime, setHoverTime are swapped! Also, if the app is injecting positions, the too...
by gcarlton
Mon Jul 18, 2005 10:14
Forum: Offtopic Discussion
Topic: RenderCache double offset?
Replies: 5
Views: 3895

Re: RenderCache double offset?

Its wierd, the menu text item seems to have the same problem. Surely all these different classes can't be wrong, so I wonder if I have some simple merge bug somewhere that is screwing it all up...
by gcarlton
Mon Jul 18, 2005 07:42
Forum: Offtopic Discussion
Topic: RenderCache double offset?
Replies: 5
Views: 3895

RenderCache double offset?

I've just got latest after a huge delay, and there were two little snags I came across. The static element seems to be double-offsetting its position. This is since it tells the cache its position as an abs rect, that then gets offset again when rendered. To fix it, I had to change the following lin...
by gcarlton
Mon Jul 18, 2005 07:06
Forum: Modifications / Integrations / Customisations
Topic: cvs compile, win32, vc++ 7.1
Replies: 7
Views: 4059

Re: cvs compile, win32, vc++ 7.1

I'd suggest adding the NOMINMAX define to CEGUIBase.h, right after it undefs min and max.

That way CEGUIBase clears out the macro crud, and NOMINMAX should ensure that the subsequent headers play nice.

Geoff
by gcarlton
Wed Jul 13, 2005 00:59
Forum: Offtopic Discussion
Topic: Looks good, but....
Replies: 3
Views: 3182

Re: Looks good, but....

Somebody will probably do it one day. I guess you'll have to wait until then, unless you want to get your hands dirty getting it to work yourself.

Might be a good (or bad) learning experience? :)
by gcarlton
Sat Jun 04, 2005 00:59
Forum: CEGUI Library Development Discussion
Topic: menusystem and listbox changes
Replies: 30
Views: 23685

Re: menusystem and listbox changes

It was a deliberate, as in "Cray Z Ed's Gui", which looks a bit silly now the name has settled down to CrazyEd's gui. Just one of those things. :)
by gcarlton
Thu Jun 02, 2005 01:33
Forum: CEGUI Library Development Discussion
Topic: Easing into falagard
Replies: 1
Views: 3446

Easing into falagard

I've just noticed that there is actually a fairly simple path to the holy grail of data driven widgets. It would also allow you to easily alias the widget set to something normal, like "MyLook", and not have to insert the specifics of TaharezLook or WindowsLook in all the data. Currently I...
by gcarlton
Thu May 12, 2005 05:22
Forum: Offtopic Discussion
Topic: Animated images.
Replies: 3
Views: 3743

Re: Animated images.

Wierd. You might have to step into the library code and have a look at what its doing with the abs_rect structures and the like. I'm not sure why it would squash it like that.
by gcarlton
Wed May 11, 2005 01:14
Forum: Offtopic Discussion
Topic: Animated images.
Replies: 3
Views: 3743

Re: Animated images.

There are widgets that do this, the ScrollablePane is a perfect example. Try this. Create a window of a small size and then put that long static image into it as child. The smaller parent's clipping size should mean that the child image gets cropped to a subset, and then by moving the child position...
by gcarlton
Wed May 11, 2005 01:07
Forum: Modifications / Integrations / Customisations
Topic: Simple static image - surely anyone could help!?
Replies: 2
Views: 2468

Re: Simple static image - surely anyone could help!?

That style of loading is good for any dynamic situation, for example loading thumbnail images, etc.

For purely static images, it may be better to combine them into a single texture and then create an xml imageset file that references them.

But whatever gets it working really! :)

Go to advanced search