随笔 - 132  文章 - 51  trackbacks - 0
<2011年4月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

常用链接

留言簿(7)

随笔分类

随笔档案

文章分类

文章档案

cocos2d-x

OGRE

OPenGL

搜索

  •  

最新评论

阅读排行榜

评论排行榜

m_pID_PROGRESS_Hp->SetValue( (float)(pPlayer->GetHp()*1000)/pPlayer->GetHpMax() );
                        m_pID_PROGRESS_Mp
->SetValue( (float)(pPlayer->GetMp()*1000)/pPlayer->GetMpMax() );

                        
int nHp = m_pID_PROGRESS_Hp->GetValue();
                        
int nHpTail = m_pID_PROGRESS_HpTail->GetValue();
                        
int nMp = m_pID_PROGRESS_Mp->GetValue();
                        
int nMpTail = m_pID_PROGRESS_MpTail->GetValue();

                        
if( nHpTail > nHp )
                        
{
                            
static DWORD dwStep = 0;
                            dwStep 
= g_fHpTailSpeed * g_dwLastFrameCostTime;
                            
if( dwStep < 1 )
                            
{
                                dwStep 
= 1;
                            }

                            nHpTail 
-= dwStep;
                        }

                        
else
                        
{
                            nHpTail 
= nHp;
                        }

                        m_pID_PROGRESS_HpTail
->SetValue( nHpTail );

                        
if ( nMpTail > nMp )
                        
{
                            
static DWORD dwStep = 0;
                            dwStep 
= g_fMpTailSpeed * g_dwLastFrameCostTime;
                            
if ( dwStep < 1 )
                                dwStep 
= 1;
                            nMpTail 
-= dwStep;
                        }

                        
if ( nMpTail < nMp )
                            nMpTail 
= nMp;
                        m_pID_PROGRESS_MpTail
->SetValue( nMpTail );
                    }
posted on 2011-04-27 13:56 风轻云淡 阅读(676) 评论(0)  编辑 收藏 引用 所属分类: UI

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理