Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Jul 16, 2024
1 parent 948d5af commit e0f5ca8
Show file tree
Hide file tree
Showing 78 changed files with 33 additions and 7 deletions.
Binary file added emojis/animated/bonk/bonk.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/bonk/bonk_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/hype/hype.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/hype/hype_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/hype/hype_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/hype/hype_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/hype/hype_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/hype/hype_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/hype/hype_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emojis/animated/hype/hype_6.png
Binary file added emojis/animated/hype/hype_7.png
Binary file added emojis/animated/hype/hype_8.png
Binary file added emojis/animated/hype/hype_9.png
Binary file added emojis/animated/ned_explosion/ned_explosion.gif
Binary file added emojis/animated/ned_explosion/ned_explosion_1.png
Binary file added emojis/animated/ned_explosion/ned_explosion_2.png
Binary file added emojis/animated/ned_explosion/ned_explosion_3.png
Binary file added emojis/animated/ned_explosion/ned_explosion_4.png
Binary file added emojis/animated/ned_explosion/ned_explosion_5.png
Binary file added emojis/animated/ned_explosion/ned_explosion_6.png
Binary file added emojis/animated/ned_explosion/ned_explosion_7.png
Binary file added emojis/animated/ned_explosion/ned_explosion_8.png
Binary file added emojis/animated/ned_explosion/ned_explosion_9.png
Binary file added emojis/animated/partying/partying.gif
Binary file added emojis/animated/partying/partying_1.png
Binary file added emojis/animated/partying/partying_10.png
Binary file added emojis/animated/partying/partying_11.png
Binary file added emojis/animated/partying/partying_12.png
Binary file added emojis/animated/partying/partying_2.png
Binary file added emojis/animated/partying/partying_3.png
Binary file added emojis/animated/partying/partying_4.png
Binary file added emojis/animated/partying/partying_5.png
Binary file added emojis/animated/partying/partying_6.png
Binary file added emojis/animated/partying/partying_7.png
Binary file added emojis/animated/partying/partying_8.png
Binary file added emojis/animated/partying/partying_9.png
Binary file added emojis/animated/petmaurice/petmaurice.gif
Binary file added emojis/animated/petmaurice/petmaurice_1.png
Binary file added emojis/animated/petmaurice/petmaurice_2.png
Binary file added emojis/animated/petmaurice/petmaurice_3.png
Binary file added emojis/animated/petmaurice/petmaurice_4.png
Binary file added emojis/animated/petmaurice/petmaurice_5.png
Binary file added emojis/animated/polarbear/polarbear.gif
Binary file added emojis/animated/polarbear/polarbear_1.png
Binary file added emojis/animated/polarbear/polarbear_10.png
Binary file added emojis/animated/polarbear/polarbear_11.png
Binary file added emojis/animated/polarbear/polarbear_12.png
Binary file added emojis/animated/polarbear/polarbear_13.png
Binary file added emojis/animated/polarbear/polarbear_2.png
Binary file added emojis/animated/polarbear/polarbear_3.png
Binary file added emojis/animated/polarbear/polarbear_4.png
Binary file added emojis/animated/polarbear/polarbear_5.png
Binary file added emojis/animated/polarbear/polarbear_6.png
Binary file added emojis/animated/polarbear/polarbear_7.png
Binary file added emojis/animated/polarbear/polarbear_8.png
Binary file added emojis/animated/polarbear/polarbear_9.png
8 changes: 7 additions & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@
"emojis/players/*.png"
],
"GJ_AnimatedEmojiSheet01": [
"emojis/animated/shiggy/*.png"
"emojis/animated/shiggy/*.png",
"emojis/animated/hype/*.png",
"emojis/animated/petmaurice/*.png",
"emojis/animated/bonk/*.png",
"emojis/animated/partying/*.png",
"emojis/animated/ned_explosion/*.png",
"emojis/animated/polarbear/*.png"
],
"GJ_EmojiUISheet": [
"resources/*.png"
Expand Down
7 changes: 7 additions & 0 deletions src/EmojiNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,14 @@ std::vector<std::pair<std::string, std::string>> emojis = {
};

std::vector<std::pair<std::string, float>> animated = {
std::pair("$$newline$$Animated", 42069),
std::pair("shiggy", 0.02f),
std::pair("hype", 0.07f),
std::pair("petmaurice", 0.05f),
std::pair("bonk", 0.06f),
std::pair("partying", 0.04f),
std::pair("ned_explosion", 0.02f),
std::pair("polarbear", 0.03f),
};

std::vector<std::pair<std::string, std::string>> EmojiNode::getEmojis()
Expand Down
25 changes: 19 additions & 6 deletions src/EmojiPickPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,32 @@ bool EmojiPickPopup::setup(CCTextInputNode* input, CCNode* node)
void EmojiPickPopup::populateScroll(CCContentLayer* content)
{
float height = 17.5f;
float spacer = content->getContentWidth() / (10);
float spacer = content->getContentWidth() / 11;
int x = -1;
float y = 0;

auto emojis = EmojiNode::getEmojis();
auto aemojis = EmojiNode::getEmojis();
auto bemojis = EmojiNode::getAnimatedEmojis();

std::vector<std::string> emojis;

for (auto em : aemojis)
{
emojis.push_back(em.first);
}

for (auto bm : bemojis)
{
emojis.push_back(bm.first);
}

for (auto emoji : emojis)
{
if (!emoji.first.starts_with("$$newline$$"))
if (!emoji.starts_with("$$newline$$"))
{
auto menu = CCMenu::create();

auto spr = EmojiNode::createWithKey(emoji.first);
auto spr = EmojiNode::createWithKey(emoji);

if (!spr)
return;
Expand All @@ -97,7 +110,7 @@ void EmojiPickPopup::populateScroll(CCContentLayer* content)
spr->setScale(height / spr->getContentHeight());

auto btn = CCMenuItemSpriteExtra::create(spr, this, menu_selector(EmojiPickPopup::onPickEmoji));
btn->setID(emoji.first);
btn->setID(emoji);

menu->addChild(btn);
content->addChild(menu);
Expand All @@ -106,7 +119,7 @@ void EmojiPickPopup::populateScroll(CCContentLayer* content)
{
//newline

auto text = CCLabelBMFont::create(emoji.first.substr(11).c_str(), "chatFont.fnt");
auto text = CCLabelBMFont::create(emoji.substr(11).c_str(), "chatFont.fnt");
text->setColor(ccc3(0, 0, 0));
text->setOpacity(50);
text->setAnchorPoint(ccp(0, 0.5f));
Expand Down

0 comments on commit e0f5ca8

Please sign in to comment.