Skip to content

Commit

Permalink
Update UIModding.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous committed May 21, 2024
1 parent 84dc355 commit 1ab8db0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/UIModding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,8 @@ void UIModding::setSprite(CCNode* node, matjson::Object attributes){
else if(type == "sprite"){
CCSprite* spr = CCSprite::create(spriteName.c_str());
if(spr){
buttonNode->setSprite(spr);
buttonNode->setNormalImage(spr);
buttonNode->updateSprite();
}
}
}
Expand Down

0 comments on commit 1ab8db0

Please sign in to comment.