-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
d1720aa
commit 17dab27
Showing
19 changed files
with
593 additions
and
141 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
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,58 +1,90 @@ | ||
#include "FakeRate.hpp" | ||
|
||
typedef MiniFunction<void(int, int, int, int, bool, bool)> UpdateFakeRateCallback; | ||
typedef MiniFunction<void(int, int)> SetDifficultyCallback; | ||
typedef MiniFunction<void(FakeRateSaveData, bool)> UpdateFakeRateCallback; | ||
typedef MiniFunction<void(int, int, int, int)> SetDifficultyCallback; | ||
typedef MiniFunction<void(int)> SetFeatureCallback; | ||
typedef MiniFunction<void(int)> SetGRDCallback; | ||
typedef MiniFunction<void(int, int)> SetDIBCallback; | ||
|
||
class FREditPopup : public Popup<GJGameLevel*, int, int, int, int, UpdateFakeRateCallback>, SetIDPopupDelegate { | ||
class FREditPopup : public Popup<GJGameLevel*, FakeRateSaveData, UpdateFakeRateCallback>, SetIDPopupDelegate { | ||
protected: | ||
GJGameLevel* m_level; | ||
int m_stars; | ||
int m_feature; | ||
int m_difficulty; | ||
int m_moreDifficultiesOverride; | ||
int m_grandpaDemonOverride; | ||
int m_demonsInBetweenOverride; | ||
bool m_coins; | ||
bool m_legacy; | ||
GJDifficultySprite* m_difficultySprite; | ||
CCSprite* m_casualSprite; | ||
CCSprite* m_toughSprite; | ||
CCSprite* m_cruelSprite; | ||
CCSprite* m_mdSprite; | ||
CCSprite* m_grdSprite; | ||
CCSprite* m_dibSprite; | ||
CCSprite* m_starSprite; | ||
CCLabelBMFont* m_starsLabel; | ||
CCArray* m_coins; | ||
CCArray* m_coinSprites; | ||
|
||
bool setup(GJGameLevel*, int, int, int, int, UpdateFakeRateCallback) override; | ||
bool setup(GJGameLevel*, FakeRateSaveData, UpdateFakeRateCallback) override; | ||
void updateLabels(); | ||
public: | ||
static FREditPopup* create(GJGameLevel*, int, int, int, int, UpdateFakeRateCallback); | ||
static FREditPopup* create(GJGameLevel*, FakeRateSaveData, UpdateFakeRateCallback); | ||
|
||
void setIDPopupClosed(SetIDPopup*, int) override; | ||
|
||
~FREditPopup() override; | ||
}; | ||
|
||
class FRSetDifficultyPopup : public Popup<int, int, bool, SetDifficultyCallback> { | ||
class FRSetDifficultyPopup : public Popup<int, int, int, int, bool, SetDifficultyCallback> { | ||
protected: | ||
int m_difficulty; | ||
int m_moreDifficultiesOverride; | ||
int m_grandpaDemonOverride; | ||
int m_demonsInBetweenOverride; | ||
bool m_legacy; | ||
CCMenuItemSpriteExtra* m_selected; | ||
|
||
bool setup(int, int, bool, SetDifficultyCallback) override; | ||
bool setup(int, int, int, int, bool, SetDifficultyCallback) override; | ||
void createDifficultyToggle(CCMenu*, int, int); | ||
public: | ||
static FRSetDifficultyPopup* create(int, int, bool, SetDifficultyCallback); | ||
static FRSetDifficultyPopup* create(int, int, int, int, bool, SetDifficultyCallback); | ||
}; | ||
|
||
class FRSetFeaturePopup : public Popup<int, int, int, bool, SetFeatureCallback> { | ||
class FRSetFeaturePopup : public Popup<int, int, int, int, int, bool, SetFeatureCallback> { | ||
protected: | ||
GJFeatureState m_feature; | ||
int m_difficulty; | ||
int m_moreDifficultiesOverride; | ||
int m_grandpaDemonOverride; | ||
int m_demonsInBetweenOverride; | ||
bool m_legacy; | ||
CCMenuItemSpriteExtra* m_selected; | ||
|
||
bool setup(int, int, int, bool, SetFeatureCallback) override; | ||
bool setup(int, int, int, int, int, bool, SetFeatureCallback) override; | ||
void createFeatureToggle(CCMenu*, GJFeatureState); | ||
public: | ||
static FRSetFeaturePopup* create(int, int, int, bool, SetFeatureCallback); | ||
static FRSetFeaturePopup* create(int, int, int, int, int, bool, SetFeatureCallback); | ||
}; | ||
|
||
class FRGRDPopup : public Popup<int, SetGRDCallback> { | ||
protected: | ||
int m_grandpaDemonOverride; | ||
CCMenuItemSpriteExtra* m_selected; | ||
|
||
bool setup(int, SetGRDCallback) override; | ||
void createGRDToggle(CCMenu*, int); | ||
public: | ||
static FRGRDPopup* create(int, SetGRDCallback); | ||
}; | ||
|
||
class FRDIBPopup : public Popup<int, int, SetDIBCallback> { | ||
protected: | ||
int m_difficulty; | ||
int m_demonsInBetweenOverride; | ||
CCMenuItemSpriteExtra* m_selected; | ||
|
||
bool setup(int, int, SetDIBCallback) override; | ||
void createDIBToggle(CCMenu*, int, int); | ||
public: | ||
static FRDIBPopup* create(int, int, SetDIBCallback); | ||
}; |
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
Oops, something went wrong.