Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

First thx for concerning newbie's stupid question.

I want to see a sliding box when I press select key , but failed. Following is what I have done. The box's initial x pos is indeed 20 that I assigned in my CreateNode.

In my trigML :

In my Actor:

int MyActorLoader_CreateNode( IActorLoader* po, IVfsContainer* parent,
VfsPathElement name, IVfsNode** pI,
IActorContext* context )
{
MyActorLoader* me = OBJECTFROMINTERFACE( MyActorLoader, po, IActorLoader );

IVfsNode *piMyNode = NULL;
int nValue = 20;
IVfsNodeModel *piNodeModel = NULL;

IACTORCONTEXT_CreateInteger(context, name, parent, 0, &piCircleNode);

IVFSNODE_SetData(piCircleNode, NULL, AEEIID_VFS_INTEGER_DATA, &nValue, sizeof(nValue));

IVFSCONTAINER_AddChild(parent, piMyNode);

*pI = piMyNode;

return SUCCESS;

use slide in trigml for sliding animatons

use slide in trigml for sliding animatons

The exactly what I want is how to use actor to show various animation.
So is there anyone who can tell me where I diid wrong?

The exactly what I want is how to use actor to show various animation.
So is there anyone who can tell me where I diid wrong?

:D I found the right way to use actor

:D I found the right way to use actor

hellobrew,
Can you please tell how are you sending array of integers from actor to trig?
What you did to slide it?
-Amod

hellobrew,
Can you please tell how are you sending array of integers from actor to trig?
What you did to slide it?
-Amod

Following is what I have done, hope it will make help.
In my trigML,
In my actor, I create a integer node and set a node model to it. Remember to call IVFSNODE_Nofify in your ***MODEL_SetData.
Doing so, I can write to change the image's x position. Also, I can send an event to myactor,like , when I receive the event in funcs **NodeModel_HandleNodeEvent, I wrote
...
switch(event)
{
case EVT_TRIGMLEVENT:
if( WSTRCMP( trigEvent->eventName, L"myslide" ) == 0 )
{
//IVFSNODEMODEL_SetNodeData
}

Following is what I have done, hope it will make help.
In my trigML,
In my actor, I create a integer node and set a node model to it. Remember to call IVFSNODE_Nofify in your ***MODEL_SetData.
Doing so, I can write to change the image's x position. Also, I can send an event to myactor,like , when I receive the event in funcs **NodeModel_HandleNodeEvent, I wrote
...
switch(event)
{
case EVT_TRIGMLEVENT:
if( WSTRCMP( trigEvent->eventName, L"myslide" ) == 0 )
{
//IVFSNODEMODEL_SetNodeData
}