Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Dec 29, 2024
1 parent 1320fdb commit d4096fd
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions mod.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"geode": "3.7.1",
"geode": "4.1.0",
"version": "v1.1.1",
"gd": {
"win": "2.206",
"mac": "2.206",
"android": "2.206",
"ios": "2.206"
"win": "2.2074",
"mac": "2.2074",
"android": "2.2074",
"ios": "2.2074"
},
"id": "thesillydoggo.comment_emojis",
"name": "Emojis in Comments",
Expand Down
2 changes: 1 addition & 1 deletion src/EmojiPickPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void EmojiPickPopup::onPickEmoji(CCObject* sender)
EmojiPickPopup* EmojiPickPopup::create(CCTextInputNode* input, CCNode* node)
{
auto ret = new EmojiPickPopup();
if (ret && ret->init(360, 200, input, node))
if (ret && ret->initAnchored(360, 200, input, node))
{
ret->autorelease();
return ret;
Expand Down
2 changes: 1 addition & 1 deletion src/Hooks/CommentCell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class $modify (CommentCell) {
{
CommentCell::loadFromComment(comment);

if (auto panel = getChildOfType<CCLayer>(this, 1))
if (auto panel = this->getChildByType<CCLayer>(1))
{
if (auto txt = panel->getChildByID("comment-text-label"))
{
Expand Down
4 changes: 2 additions & 2 deletions src/Hooks/GlobedChatListPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class $modify (GlobedChatListPopupExt, FLAlertLayer)

if (auto popup = typeinfo_cast<GlobedChatListPopup*>(this))
{
if (auto menu = getChildOfType<CCMenu>(popup->m_mainLayer, -1))
if (auto menu = popup->m_mainLayer->getChildByType<CCMenu>(-1))
{
as<AxisLayout*>(menu->getLayout())->setAutoScale(false);
m_fields->input = getChildOfType<TextInput>(menu, 0);
m_fields->input = menu->getChildByType<TextInput>(0);

auto spr = CCSprite::createWithSpriteFrameName("emoji-icon-thicker.png"_spr);
spr->setOpacity(100);
Expand Down
4 changes: 2 additions & 2 deletions src/Hooks/OWCommentPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class $modify (CommentPopupExt, FLAlertLayer)
FLAlertLayer::show();
if (typeinfo_cast<CommentPopup*>(this) && this->getID() == "firee.object-workshop/CommentPopup")
{
if (auto menu = getChildOfType<CCMenu>(m_mainLayer, 0))
if (auto menu = m_mainLayer->getChildByType<CCMenu>(0))
{
m_fields->inp = getChildOfType<CCTextInputNode>(menu, 0);
m_fields->inp = menu->getChildByType<CCTextInputNode>(0);
auto spr = CCSprite::createWithSpriteFrameName("emoji-icon-thicker.png"_spr);
spr->setScale(0.8f);
spr->setOpacity(100);
Expand Down
4 changes: 2 additions & 2 deletions src/Hooks/ShareCommentLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ class $modify (ShareCommentLayerExt, ShareCommentLayer)
if (type == CommentType::FriendRequest)
return true;

m_fields->inp = getChildOfType<CCTextInputNode>(m_mainLayer, 0);
m_fields->inp = m_mainLayer->getChildByType<CCTextInputNode>(0);

if (auto menu = getChildOfType<CCMenu>(m_mainLayer, 0))
if (auto menu = m_mainLayer->getChildByType<CCMenu>(0))
{
auto spr = CCSprite::createWithSpriteFrameName("emoji-icon-thicker.png"_spr);
spr->setScale(0.8f);
Expand Down

0 comments on commit d4096fd

Please sign in to comment.