From 01c6665bc824f2f06690ffcd774a7b3d4322a842 Mon Sep 17 00:00:00 2001 From: Jouca Date: Wed, 21 Aug 2024 02:19:11 +0200 Subject: [PATCH] Upgraded CommentCell for level comments (#104) * Upgraded CommentCell for level comments * Remove useless winSize * Fixed for a profile comments * Tweaked position Y * Fixed issue with green users for big comments * Nevermind, concerning all big comments --- src/CommentCell.cpp | 73 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 69 insertions(+), 4 deletions(-) diff --git a/src/CommentCell.cpp b/src/CommentCell.cpp index 20caff3..453cc89 100644 --- a/src/CommentCell.cpp +++ b/src/CommentCell.cpp @@ -16,9 +16,9 @@ using namespace geode::node_ids; if(!smallCommentsMode) getChildOfType(m_mainLayer, 0)->setID("background"); int bmfontOffset = 0; - /*if(m_comment->m_modBadge > 0) { + if(m_comment->m_modBadge > 0) { getChildOfType(m_mainLayer, 0)->setID("mod-badge"); - }*/ + } if(m_comment->m_percentage > 0) { getChildOfType(m_mainLayer, 0 + bmfontOffset)->setID("percentage-label"); bmfontOffset += 1; @@ -35,11 +35,16 @@ using namespace geode::node_ids; if(!m_comment->m_isSpam) { getChildOfType(m_mainLayer, 0 + bmfontOffset)->setID("likes-label"); - if(!(m_comment->m_uploadDate).empty()) getChildOfType(m_mainLayer, 1 + bmfontOffset)->setID("date-label"); + bmfontOffset += 1; + if(!(m_comment->m_uploadDate).empty()) getChildOfType(m_mainLayer, 0 + bmfontOffset)->setID("date-label"); + bmfontOffset += 1; + } + + if (!m_accountComment && usernameNotInMenu) { + getChildOfType(m_mainLayer, 0)->setID("player-icon"); } if(!smallCommentsMode) getChildOfType