Mercurial > hg > Members > tkaito > task_dandy
changeset 13:401cd8a186e9
bug fix . But title not done.
author | tkaito |
---|---|
date | Wed, 04 Aug 2010 03:36:10 +0900 |
parents | aecc2199251e |
children | e95c5c280f47 |
files | stage_init.cc |
diffstat | 1 files changed, 7 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/stage_init.cc Tue Jul 20 17:05:52 2010 +0900 +++ b/stage_init.cc Wed Aug 04 03:36:10 2010 +0900 @@ -9,8 +9,8 @@ back1 = (SceneGraphPtr)charactor[0].parent; title = (SceneGraphPtr)charactor[0].root; - //title->xyz[0] = charactor[0].x; - //title->xyz[1] = charactor[0].y; + title->xyz[0] = charactor[0].x; + title->xyz[1] = charactor[0].y; back1->addChild(title); @@ -30,14 +30,13 @@ sgroot->setSceneData(back); SceneGraphPtr title = (SceneGraphPtr)charactor[0].root; - ObjProperty titlep; - titlep.x = w/2; - titlep.y = h/2; - titlep.root = (void*)title; - titlep.parent = (void*)back; + charactor[0].x = w/2; + charactor[0].y = h/2; + charactor[0].root = (void*)title; + charactor[0].parent = (void*)back; int size = sizeof(ObjProperty); //printf("size = %d\n", size); - sgroot->set_move_task(title, TITLE_MOVE, (void*)&titlep, size, create_title); + sgroot->set_move_task(title, TITLE_MOVE, (void*)&charactor[0], size, create_title); }