Search found 34 matches

by spracle
Mon Nov 26, 2012 03:29
Forum: Modifications / Integrations / Customisations
Topic: sos - resolution problem
Replies: 1
Views: 2285

sos - resolution problem

Hi,CE. Long time no see :-) A resolution problem has puzzled me for a few days: Our game need 4 kinds of resolution-- 1280 * 720, 1366 * 768, 1600 * 900, 1920 * 1080. We made our layout in coordinate(0,x). You see the scale factor is always 0 and we edited it at 1280 * 720 mode .When resolution chan...
by spracle
Mon Mar 28, 2011 15:24
Forum: Modifications / Integrations / Customisations
Topic: How to apply the animation of gif pic in the MouseCursor?
Replies: 6
Views: 1609

Re: How to apply the animation of gif pic in the MouseCursor

if I use the window's cursor, I can't get the events when the window's cursor goes through
the cegui's window or other conditions. That is to say the cegui's window wil be disabled.


No,You just hide CEGUI's cursor(don't render it),so you can still get events, :D
by spracle
Mon Mar 28, 2011 03:34
Forum: Modifications / Integrations / Customisations
Topic: How to apply the animation of gif pic in the MouseCursor?
Replies: 6
Views: 1609

Re: How to apply the animation of gif pic in the MouseCursor

You can use window's cursor instead of CEGUI' cursor.
A picture of .ani (or .cur) can be animated
by spracle
Sat Mar 26, 2011 10:09
Forum: Modifications / Integrations / Customisations
Topic: MultilineEditbox and '\n'
Replies: 0
Views: 948

MultilineEditbox and '\n'

//----------------------------------------------------------------------------// void MultiLineEditboxWindowRenderer::onLookNFeelAssigned() { assert(d_window != 0); // ensure window's text has a terminating \n String text(d_window->getText()); if (text.empty() || text[text.length() - 1] != '\n') { t...
by spracle
Thu Mar 17, 2011 06:00
Forum: Modifications / Integrations / Customisations
Topic: About Animation System
Replies: 6
Views: 1648

Re: About Animation System

Ok,I got it.
Actully, you guys have done this and I can use the API:instantiation->setSpeed() :D
by spracle
Wed Mar 16, 2011 07:51
Forum: Modifications / Integrations / Customisations
Topic: About Animation System
Replies: 6
Views: 1648

About Animation System

Requirement: A point moves from Place.1 to Place.2 with uniform speed. case 1: duration of time is 1s case 2: duration of time is 5s case 3: duraiton of time is 10s case 4: .... .... If there are 1,000 situations,we need 1,000 configurations.Kind of unacceptable :? So,is there any convenient way to ...
by spracle
Fri Jan 14, 2011 06:52
Forum: Modifications / Integrations / Customisations
Topic: [solved]VerticalLayoutContainer:getUnclippedOuterRect()
Replies: 7
Views: 1523

Re: VerticalLayoutContainer:getUnclippedOuterRect(), a bug?

layoutIfNecessary instead of layout is pretty cool .
My point is that ,if you don't call the function layoutIfNecessary() manually between removeChild() and getUnclippedOuterRect(),you will not get the right rect ten to one
kind of weird..

Anyway,thanks kulik,you are very helpful~
by spracle
Fri Jan 14, 2011 02:34
Forum: Modifications / Integrations / Customisations
Topic: [solved]VerticalLayoutContainer:getUnclippedOuterRect()
Replies: 7
Views: 1523

Re: VerticalLayoutContainer:getUnclippedOuterRect(), a bug?

By the way , i called the function "layout()" between "romove(or add)ChildWindow" and "getUnclippedOuterRect()",and it 's not working all the same. --Sorry about this,it works, so outer rect isn't broken My Problem was that VerticalLayoutContainer had one chlid whose t...
by spracle
Thu Jan 13, 2011 01:46
Forum: Modifications / Integrations / Customisations
Topic: [solved]VerticalLayoutContainer:getUnclippedOuterRect()
Replies: 7
Views: 1523

Re: VerticalLayoutContainer:getUnclippedOuterRect(), a bug?

layoutContainer: A ----------- B | (child_1) | C----------- D | (child_2) | -------------- | (child_3) | E------------F When getUnclippedOuterRect(),the result should be ABEF; when removeChildWindow(child_1),then result should be CDEF; Hope I figured it out clearly
by spracle
Wed Jan 12, 2011 11:40
Forum: Modifications / Integrations / Customisations
Topic: [solved]VerticalLayoutContainer:getUnclippedOuterRect()
Replies: 7
Views: 1523

Re: VerticalLayoutContainer:getUnclippedOuterRect(), a bug?

By the way , i called the function "layout()" between "romove(or add)ChildWindow" and "getUnclippedOuterRect()",and it 's not working all the same.
by spracle
Wed Jan 12, 2011 11:33
Forum: Modifications / Integrations / Customisations
Topic: [solved]VerticalLayoutContainer:getUnclippedOuterRect()
Replies: 7
Views: 1523

[solved]VerticalLayoutContainer:getUnclippedOuterRect()

For VerticalLayoutContainer,if you do something like this: (VerticalLayoutContainer *)vcPtr->removeChildAtPosition(2); rect = vcPtr->getUnclippedOuterRect(); you'll get wrong answer.The size of rect is previous,before removeChildWindow. Later,I did something like this: (vcPtr->setPosition(pos); rect...
by spracle
Tue Dec 28, 2010 09:32
Forum: Modifications / Integrations / Customisations
Topic: [solved]How to realize color palette ?
Replies: 5
Views: 1163

Re: How to realize color palette ?

CrazyEddie wrote:The technique is described more fully here: http://www.cegui.org.uk/wiki/index.php/ ... EGUI_0.7.x where I discuss using the technique for non-rectangular hit-testing of windows.


Got it in this way :)
by spracle
Thu Dec 23, 2010 07:52
Forum: Help
Topic: what's the update frequency in cegui?
Replies: 3
Views: 574

Re: what's the update frequency in cegui?

I don't know where to call the function "Window::update()"
by spracle
Wed Dec 22, 2010 08:37
Forum: Help
Topic: what's the update frequency in cegui?
Replies: 3
Views: 574

what's the update frequency in cegui?

better if anyone can talk about more information about this :D
by spracle
Thu Nov 25, 2010 07:35
Forum: Modifications / Integrations / Customisations
Topic: [solved] lua binding new c++ function
Replies: 4
Views: 1761

Re: lua binding new c++ function

It appears that 0.7.2 lacked some pkg files,and now problems were solved :D

Go to advanced search