From 3d118739ecd2239244651041a5a60f4fb4fa5296 Mon Sep 17 00:00:00 2001 From: Cvolton Date: Sun, 7 Jul 2024 12:03:22 +0200 Subject: [PATCH] dont show commentcell ids on deleted comments --- changelog.md | 1 + src/hooks/CommentCell.cpp | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 3d4d38e..cdb25b6 100644 --- a/changelog.md +++ b/changelog.md @@ -9,6 +9,7 @@ * Added Coin Count and Folder filters to Filtered Search * Fixed issues caused by No Transition in mod menus * Fixed various stability issues +* Other bugfixes & improvements From previous alpha/beta releases: * Updated for Geode 3.0.0 and GD 2.206 diff --git a/src/hooks/CommentCell.cpp b/src/hooks/CommentCell.cpp index 1b8200a..3fe853c 100644 --- a/src/hooks/CommentCell.cpp +++ b/src/hooks/CommentCell.cpp @@ -51,15 +51,13 @@ class BI_DLL $modify(BICommentCell, CommentCell) { void loadFromComment(GJComment* b) { CommentCell::loadFromComment(b); - if(!Mod::get()->setSavedValue("comment-id-alert-shown", true)) showCommentIDsAlert(); - auto winSize = CCDirector::sharedDirector()->getWinSize(); bool smallCommentsMode = this->m_height == 36; //this is how robtop does the check /** * Add comment ID */ - if(Mod::get()->getSettingValue("show-comment-ids")) { + if(!b->m_commentDeleted && Mod::get()->getSettingValue("show-comment-ids")) { auto idText = CCLabelBMFont::create(fmt::format("#{}", b->m_commentID).c_str(), "chatFont.fnt"); idText->setPosition(smallCommentsMode ? CCPoint(332, 12.5) : CCPoint(329, 21.5)); idText->setAnchorPoint({1, .5f});