Equivalent of UnifiedYPosition in unstable animation API
Posted: Sun Apr 15, 2012 20:42
I've been trying to upgrade my game to use the unstable (0.8ish) API. It seems I've got pretty much everything built and running correctly except that I can't find out how to update this animation definition:
In 0.7.6 this would lead to the main window "flying in" from off the screen. In 0.8 CEGUI crashes with the following:
I'd like to do the same in 0.8 but I can't figure out what property my animation should modify to get the same effect. Based on how some of the other properties have been renamed I've also tried "YPosition". In fact, none of these work:
Oh, and because it's in big red letters on the top of the forums:
Code: Select all
<AnimationDefinition name="FlyIn" duration="0.5" replayMode="once">
<Affector property="UnifiedYPosition" interpolator="UDim">
<KeyFrame position="0" value="{0,-480}" />
<KeyFrame position="0.5" value="{0,0}" progression="quadratic decelerating" />
</Affector>
</AnimationDefinition>
In 0.7.6 this would lead to the main window "flying in" from off the screen. In 0.8 CEGUI crashes with the following:
Code: Select all
CEGUI::UnknownObjectException in file /home/josh/Codes/cpp/cegui/hg_trunk/cegui/src/PropertySet.cpp(137) : There is no Property named 'UnifiedYPosition' available in the set.
terminate called after throwing an instance of 'CEGUI::UnknownObjectException'
what(): CEGUI::UnknownObjectException in file /home/josh/Codes/cpp/cegui/hg_trunk/cegui/src/PropertySet.cpp(137) : There is no Property named 'UnifiedYPosition' available in the set.
I'd like to do the same in 0.8 but I can't figure out what property my animation should modify to get the same effect. Based on how some of the other properties have been renamed I've also tried "YPosition". In fact, none of these work:
- UnifiedYPosition
- YPosition
- yPos
- DimYPosition
- Top
Oh, and because it's in big red letters on the top of the forums:
Code: Select all
15/04/2012 16:41:32 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
15/04/2012 16:41:32 (Std) + Crazy Eddie's GUI System - Event log +
15/04/2012 16:41:32 (Std) + (http://www.cegui.org.uk/) +
15/04/2012 16:41:32 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
15/04/2012 16:41:32 (Std) CEGUI::Logger singleton created. (0x7fbd3c00ec30)
15/04/2012 16:41:32 (Std)
15/04/2012 16:41:32 (Std) ********************************************************************************
15/04/2012 16:41:32 (Std) * Important: *
15/04/2012 16:41:32 (Std) * To get support at the CEGUI forums, you must post _at least_ the section *
15/04/2012 16:41:32 (Std) * of this log file indicated below. Failure to do this will result in no *
15/04/2012 16:41:32 (Std) * support being given; please do not waste our time. *
15/04/2012 16:41:32 (Std) ********************************************************************************
15/04/2012 16:41:32 (Std) ********************************************************************************
15/04/2012 16:41:32 (Std) * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
15/04/2012 16:41:32 (Std) ********************************************************************************
15/04/2012 16:41:32 (Std) ---- Version: 0.7.7 (Build: Apr 13 2012 Debug GNU/Linux g++ 4.6.1 64 bit) ----
15/04/2012 16:41:32 (Std) ---- Renderer module is: CEGUI::OgreRenderer - Official OGRE based 2nd generation renderer module. ----
15/04/2012 16:41:32 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
15/04/2012 16:41:32 (Std) ---- Image Codec module is: OgreImageCodec - Integrated ImageCodec using the Ogre engine. ----
15/04/2012 16:41:32 (Std) ---- Scripting module is: None ----
15/04/2012 16:41:32 (Std) ********************************************************************************
15/04/2012 16:41:32 (Std) * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
15/04/2012 16:41:32 (Std) ********************************************************************************
15/04/2012 16:41:32 (Std)
----
snip
----
15/04/2012 16:41:33 (Error) CEGUI::UnknownObjectException in file /home/josh/Codes/cpp/cegui/hg_trunk/cegui/src/PropertySet.cpp(137) : There is no Property named 'UnifiedYPosition' available in the set.