Equivalent of UnifiedYPosition in unstable animation API

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

cheshirekow
Just popping in
Just popping in
Posts: 8
Joined: Tue Apr 03, 2012 21:36

Equivalent of UnifiedYPosition in unstable animation API

Postby cheshirekow » 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:

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.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Equivalent of UnifiedYPosition in unstable animation API

Postby Kulik » Sun Apr 15, 2012 22:54

Version: 0.7.7 (Build: Apr 13 2012 Debug GNU/Linux g++ 4.6.1 64 bit) ----


Are you absolute sure you are on the "default" branch?

It seems {X,Y}Position was taken out, use Position instead.
http://crayzedsgui.hg.sourceforge.net/h ... t.cpp#l405

cheshirekow
Just popping in
Just popping in
Posts: 8
Joined: Tue Apr 03, 2012 21:36

Re: Equivalent of UnifiedYPosition in unstable animation API

Postby cheshirekow » Mon Apr 16, 2012 12:54

Oh yeah, I changed those version numbers in the CMake file because I didn't like haveing CEGUI-9999 installed in my development directory. I later discovered the CEGUI_SLOTTED_INSTALLATION cmake variable, and forgot to revert changes to my cmake file. I put 0.7.7 because, as far as I can tell, it doesn't exist. I only recently realized that 0.8 is the defacto name for the current branch.

Thanks for the tip on the Position property.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Equivalent of UnifiedYPosition in unstable animation API

Postby CrazyEddie » Mon Apr 30, 2012 07:33

I only recently realized that 0.8 is the defacto name for the current branch.

While that was what default became known as for a time, it's incorrect on so many fronts - and highly annoying to boot! The correct way to refer to that code is to say "default branch" or "current unstable" or something along those lines, and then it's good form to include the specific change set identifier too ;)

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 23 guests