From 35c6d6ad9fa2338727fc7e4a1185b1c6fb433e5b Mon Sep 17 00:00:00 2001 From: Justin Pridgen Date: Sun, 27 Oct 2024 20:52:57 -0400 Subject: [PATCH] Oh my Lord --- CMakeLists.txt | 2 +- changelog.md | 3 +++ mod.json | 2 +- src/hooks/GJGarageLayer.cpp | 22 +++++++++++++++++++++- 4 files changed, 26 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef20c2e..9f27183 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64") set(CMAKE_CXX_VISIBILITY_PRESET hidden) -project(MoreIcons VERSION 1.4.0) +project(MoreIcons VERSION 1.4.1) add_library(${PROJECT_NAME} SHARED src/api/MoreIconsAPI.cpp diff --git a/changelog.md b/changelog.md index a7fc837..455208d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,7 @@ # More Icons Changelog +## v1.4.1 (2024-10-27) +- Tweaked the trail info display in the icon kit + ## v1.4.0 (2024-10-27) - Merged the More Icons API into the mod - Added support for events for other mods to use diff --git a/mod.json b/mod.json index 38ddd27..9b5d163 100644 --- a/mod.json +++ b/mod.json @@ -5,7 +5,7 @@ "win": "2.206", "mac": "2.206" }, - "version": "v1.4.0", + "version": "v1.4.1", "id": "hiimjustin000.more_icons", "name": "More Icons", "developer": "hiimjustin000", diff --git a/src/hooks/GJGarageLayer.cpp b/src/hooks/GJGarageLayer.cpp index 53c815b..f3e6923 100644 --- a/src/hooks/GJGarageLayer.cpp +++ b/src/hooks/GJGarageLayer.cpp @@ -411,7 +411,7 @@ class $modify(MIGarageLayer, GJGarageLayer) { auto selectedIconType = dual ? (IconType)sdi->getSavedValue("lasttype", 0) : m_selectedIconType; if (Mod::get()->setSavedValue(savedType, name) == name && selectedIconType == m_iconType) { auto trailInfo = MoreIcons::TRAIL_INFO[name]; - auto popup = ItemInfoPopup::create(!trailInfo.pack.id.empty() ? 447 : 1, !trailInfo.pack.id.empty() ? UnlockType::Cube : unlockType); + auto popup = ItemInfoPopup::create(!trailInfo.pack.id.empty() ? 128 : 1, UnlockType::Cube); if (auto nameLabel = getChildOfType(popup->m_mainLayer, 0)) nameLabel->setString(name.substr(name.find_first_of(':') + 1).c_str()); if (auto achLabel = getChildOfType(popup->m_mainLayer, 1)) achLabel->setString("Custom"); @@ -431,6 +431,8 @@ class $modify(MIGarageLayer, GJGarageLayer) { } if (auto descText = getChildOfType