-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
148 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"schemaVersion": 1, | ||
"label": "Game", | ||
"message": "16.6%", | ||
"message": "16.623%", | ||
"color": "blue" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"schemaVersion": 1, | ||
"label": "Screen", | ||
"message": "8.921%", | ||
"message": "9.224%", | ||
"color": "yellow" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
#include "Game/Screen/WipeLayoutBase.hpp" | ||
|
||
class WipeGameOver : public WipeLayoutBase { | ||
public: | ||
WipeGameOver(); | ||
|
||
virtual ~WipeGameOver(); | ||
virtual void init(const JMapInfoIter&); | ||
virtual void kill(); | ||
virtual void wipe(s32); | ||
virtual void forceClose(); | ||
virtual void forceOpen(); | ||
virtual bool isOpen() const; | ||
virtual bool isClose() const; | ||
virtual bool isWipeIn() const; | ||
virtual bool isWipeOut() const; | ||
virtual s32 getWipeType() const; | ||
|
||
inline void exeActive(); | ||
inline void exeWait(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
#include "Game/Screen/WipeGameOver.hpp" | ||
#include "Game/LiveActor/Nerve.hpp" | ||
#include "Game/Util.hpp" | ||
|
||
namespace NrvWipeGameOver { | ||
NERVE_DECL_EXE(WipeGameOverActive, WipeGameOver, Active); | ||
NERVE_DECL_EXE(WipeGameOverWait, WipeGameOver, Wait); | ||
|
||
INIT_NERVE(WipeGameOverWait); | ||
INIT_NERVE(WipeGameOverActive); | ||
}; // namespace NrvWipeGameOver | ||
|
||
WipeGameOver::WipeGameOver() : WipeLayoutBase("ゲームオーバー") {} | ||
|
||
void WipeGameOver::init(const JMapInfoIter& rIter) { | ||
initNerve(&NrvWipeGameOver::WipeGameOverWait::sInstance); | ||
initLayoutManager("GameOver", 1); | ||
} | ||
|
||
void WipeGameOver::kill() { | ||
LayoutActor::kill(); | ||
setNerve(&NrvWipeGameOver::WipeGameOverWait::sInstance); | ||
} | ||
|
||
void WipeGameOver::wipe(s32 a1) { | ||
if (!isNerve(&NrvWipeGameOver::WipeGameOverActive::sInstance)) { | ||
appear(); | ||
MR::hideLayout(this); | ||
setNerve(&NrvWipeGameOver::WipeGameOverActive::sInstance); | ||
} | ||
} | ||
|
||
void WipeGameOver::forceClose() { | ||
wipe(-1); | ||
} | ||
|
||
void WipeGameOver::forceOpen() { | ||
MR::hideLayout(this); | ||
kill(); | ||
} | ||
|
||
bool WipeGameOver::isOpen() const { | ||
bool ret = false; | ||
if (MR::isDead(this) || isNerve(&NrvWipeGameOver::WipeGameOverWait::sInstance)) { | ||
ret = true; | ||
} | ||
|
||
return ret; | ||
} | ||
|
||
bool WipeGameOver::isClose() const { | ||
bool ret = false; | ||
if (isNerve(&NrvWipeGameOver::WipeGameOverActive::sInstance) && MR::isAnimStopped(this, 0)) { | ||
ret = true; | ||
} | ||
return ret; | ||
} | ||
|
||
bool WipeGameOver::isWipeIn() const { | ||
return false; | ||
} | ||
|
||
bool WipeGameOver::isWipeOut() const { | ||
bool ret = false; | ||
if (isNerve(&NrvWipeGameOver::WipeGameOverActive::sInstance) && !MR::isAnimStopped(this, 0)) { | ||
ret = true; | ||
} | ||
return ret; | ||
} | ||
|
||
WipeGameOver::~WipeGameOver() {} | ||
|
||
void WipeGameOver::exeActive() { | ||
if (MR::isFirstStep(this)) { | ||
MR::showLayout(this); | ||
MR::startAnim(this, "GameOver", 0); | ||
} | ||
} | ||
|
||
void WipeGameOver::exeWait() {} | ||
|
||
s32 WipeGameOver::getWipeType() const { | ||
return 2; | ||
} |