-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CCFontSprite and CCSpriteExtra (#1194)
- Loading branch information
1 parent
8e3e882
commit 9c4ce80
Showing
3 changed files
with
60 additions
and
0 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
29 changes: 29 additions & 0 deletions
29
loader/include/Geode/cocos/robtop/sprite_nodes/CCFontSprite.h
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,29 @@ | ||
#ifndef __CCFONTSPRITE_H__ | ||
#define __CCFONTSPRITE_H__ | ||
|
||
#include "../../include/ccMacros.h" | ||
#include "CCSpriteExtra.h" | ||
|
||
NS_CC_BEGIN | ||
|
||
// @note RobTop Addition | ||
class CC_DLL CCFontSprite : public CCSpriteExtra { | ||
public: | ||
CCFontSprite() {} | ||
virtual ~CCFontSprite() {} | ||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCFontSprite, CCSpriteExtra); | ||
|
||
public: | ||
bool m_bUseInstant; | ||
float m_fInstantTime; | ||
float m_fDelay; | ||
float m_fShakesPerSecond; | ||
float m_fShakeIntensity; | ||
float m_fShakeElapsed; | ||
int m_nShakeIndex; | ||
CCPoint m_obShakePosition; | ||
}; | ||
|
||
NS_CC_END | ||
|
||
#endif // __CCFONTSPRITE_H__ |
28 changes: 28 additions & 0 deletions
28
loader/include/Geode/cocos/robtop/sprite_nodes/CCSpriteExtra.h
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,28 @@ | ||
#ifndef __CCSPRITEEXTRA_H__ | ||
#define __CCSPRITEEXTRA_H__ | ||
|
||
#include "../../include/ccMacros.h" | ||
#include "../../sprite_nodes/CCSprite.h" | ||
|
||
NS_CC_BEGIN | ||
|
||
// @note RobTop Addition | ||
class CC_DLL CCSpriteExtra : public CCSprite { | ||
public: | ||
CCSpriteExtra() {} | ||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCSpriteExtra, CCSprite); | ||
|
||
inline float getXOffset() const { return m_fXOffset; } | ||
inline float getYOffset() const { return m_fYOffset; } | ||
|
||
inline void setXOffset(float offset) { m_fXOffset = offset; } | ||
inline void setYOffset(float offset) { m_fYOffset = offset; } | ||
|
||
protected: | ||
float m_fXOffset; | ||
float m_fYOffset; | ||
}; | ||
|
||
NS_CC_END | ||
|
||
#endif // __CCSPRITEEXTRA_H__ |