File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -272,8 +272,18 @@ class $modify(CommentCell) {
272272 menu_selector (NewProfilePage::onRobTopBadgePressed)
273273 );
274274 } else {
275+ CCSprite* modSprite;
276+ if (comment->m_modBadge == 1 ) {
277+ modSprite = CCSprite::createWithSpriteFrameName (" modBadge_01_001.png" );
278+ } else if (comment->m_modBadge == 2 ) {
279+ modSprite = CCSprite::createWithSpriteFrameName (" modBadge_02_001.png" );
280+ } else if (comment->m_modBadge == 3 ) {
281+ modSprite = CCSprite::createWithSpriteFrameName (" modBadge_03_001.png" );
282+ }
283+ modSprite->setScale (0 .6f );
284+
275285 badgeBtn = CCMenuItemSpriteExtra::create (
276- modbadge ,
286+ modSprite ,
277287 this ,
278288 menu_selector (NewProfilePage::onBadgePressed)
279289 );
Original file line number Diff line number Diff line change @@ -493,8 +493,17 @@ class $modify(ProfilePage) {
493493 menu_selector (NewProfilePage::onRobTopBadgePressed)
494494 );
495495 } else {
496+ CCSprite* modSprite;
497+ if (a2->m_modBadge == 1 ) {
498+ modSprite = CCSprite::createWithSpriteFrameName (" modBadge_01_001.png" );
499+ } else if (a2->m_modBadge == 2 ) {
500+ modSprite = CCSprite::createWithSpriteFrameName (" modBadge_02_001.png" );
501+ } else if (a2->m_modBadge == 3 ) {
502+ modSprite = CCSprite::createWithSpriteFrameName (" modBadge_03_001.png" );
503+ }
504+
496505 badgeBtn = CCMenuItemSpriteExtra::create (
497- modbadge ,
506+ modSprite ,
498507 this ,
499508 menu_selector (NewProfilePage::onBadgePressed)
500509 );
You can’t perform that action at this time.
0 commit comments