add info level to notification

This commit is contained in:
Cvolton 2024-06-23 21:46:52 +02:00
parent 89ed81ac62
commit 5ca4b571c7
No known key found for this signature in database
2 changed files with 5 additions and 0 deletions

View file

@ -16,6 +16,7 @@ namespace geode {
Success,
Warning,
Error,
Info,
};
class GEODE_DLL Notification : public cocos2d::CCNodeRGBA {

View file

@ -92,6 +92,10 @@ CCSprite* Notification::createIcon(NotificationIcon icon) {
case NotificationIcon::Error: {
return CCSprite::createWithSpriteFrameName("GJ_deleteIcon_001.png");
} break;
case NotificationIcon::Info: {
return CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png");
} break;
}
}