This commit is contained in:
parent
ae3e0482ea
commit
48a884f3f0
12 changed files with 174 additions and 27 deletions
|
@ -17,6 +17,10 @@
|
|||
|
||||
#include "player\pmcoral.h"
|
||||
|
||||
#ifndef __GFX_SPRBANK_H__
|
||||
#include "gfx\sprbank.h"
|
||||
#endif
|
||||
|
||||
|
||||
/* Std Lib
|
||||
------- */
|
||||
|
@ -28,6 +32,10 @@
|
|||
#include <ACTOR_SPONGEBOB_ANIM.h>
|
||||
#endif
|
||||
|
||||
#ifndef __SPR_INGAMEFX_H__
|
||||
#include <ingamefx.h>
|
||||
#endif
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Tyepdefs && Defines
|
||||
|
@ -103,9 +111,9 @@ void CPlayerModeCoralBlower::think()
|
|||
}
|
||||
break;
|
||||
case BLOWER_STATE__AIMING:
|
||||
if(getState()==STATE_IDLE)
|
||||
if(getState()!=STATE_IDLE)
|
||||
{
|
||||
m_blowerState=BLOWER_STATE__EMPTY;
|
||||
m_blowerState=BLOWER_STATE__FULL;
|
||||
}
|
||||
if(!getPadInputHeld()&PI_ACTION)
|
||||
{
|
||||
|
@ -117,6 +125,30 @@ void CPlayerModeCoralBlower::think()
|
|||
cbstate=m_blowerState;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
Params:
|
||||
Returns:
|
||||
---------------------------------------------------------------------- */
|
||||
void CPlayerModeCoralBlower::renderModeUi()
|
||||
{
|
||||
SpriteBank *sb;
|
||||
sFrameHdr *fh;
|
||||
|
||||
sb=m_player->getSpriteBank();
|
||||
fh=sb->getFrameHeader(FRM__BLOWER);
|
||||
if(m_blowerState==BLOWER_STATE__FULL||m_blowerState==BLOWER_STATE__AIMING)
|
||||
{
|
||||
// Blower has a creature/object inside
|
||||
sb->printFT4Scaled(FRM__BLOWER,CPlayer::POWERUPUI_ICONX-(fh->W/2),CPlayer::POWERUPUI_ICONY-(fh->H/2),0,0,CPlayer::POWERUPUI_OT,256+128);
|
||||
}
|
||||
else
|
||||
{
|
||||
sb->printFT4(fh,CPlayer::POWERUPUI_ICONX-(fh->W/2),CPlayer::POWERUPUI_ICONY-(fh->H/2),0,0,CPlayer::POWERUPUI_OT);
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue