#ifndef __TEXTAREA_H__ #define __TEXTAREA_H__ #include namespace gd { #pragma runtime_checks("s", off) class GDH_DLL TextArea : public cocos2d::CCSprite { protected: PAD(0x58); public: static TextArea* create(const char* font, bool disableColor, std::string caption, float scale, float width, float height, cocos2d::CCPoint const& anchorPos) { __asm { movss xmm1, scale movss xmm2, width movss xmm3, height } auto pRet = reinterpret_cast( base + 0x33270 )(font, disableColor, caption, anchorPos); __asm add esp, 0x20 return pRet; } void colorAllCharactersTo(cocos2d::ccColor3B color) { reinterpret_cast(base + 0x33830)(this, color); } void setString(std::string const& str) { reinterpret_cast(base + 0x33480)(this, str); } }; #pragma runtime_checks("s", restore) } #endif