Skip to content

Commit

Permalink
dont show commentcell ids on deleted comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Jul 7, 2024
1 parent e010c68 commit 3d11873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* <cg>Added</c> <cl>Coin Count</c> and <cl>Folder</c> filters to <cj>Filtered Search</c>
* <cg>Fixed</c> issues caused by <cl>No Transition</c> in mod menus
* <cg>Fixed</c> various <cr>stability issues</c>
* Other bugfixes & improvements

From previous alpha/beta releases:
* <cg>Updated</c> for Geode 3.0.0 and GD 2.206
Expand Down
4 changes: 1 addition & 3 deletions src/hooks/CommentCell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool>("show-comment-ids")) {
if(!b->m_commentDeleted && Mod::get()->getSettingValue<bool>("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});
Expand Down

0 comments on commit 3d11873

Please sign in to comment.