aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2025-07-06 23:50:08 +0200
committerGitHub <noreply@github.com>2025-07-06 23:50:08 +0200
commit7ca5edc8e7155a9b00f967d7ca9142002d8f8ebc (patch)
treee38956b9e4da72f929951595c35be32ca2da2293
parentd92a326fe39493e7405927df13de94dafc6e6cef (diff)
downloadFirmament-7ca5edc8e7155a9b00f967d7ca9142002d8f8ebc.tar.gz
Firmament-7ca5edc8e7155a9b00f967d7ca9142002d8f8ebc.tar.bz2
Firmament-7ca5edc8e7155a9b00f967d7ca9142002d8f8ebc.zip
feat: Option to disable Missing Items highlight for items with a semicolon (#212)
-rw-r--r--src/main/kotlin/features/debug/PowerUserTools.kt1
-rw-r--r--src/main/kotlin/features/debug/itemeditor/ItemExporter.kt2
-rw-r--r--translations/en_us.json5
3 files changed, 7 insertions, 1 deletions
diff --git a/src/main/kotlin/features/debug/PowerUserTools.kt b/src/main/kotlin/features/debug/PowerUserTools.kt
index b90fefe..0800a4f 100644
--- a/src/main/kotlin/features/debug/PowerUserTools.kt
+++ b/src/main/kotlin/features/debug/PowerUserTools.kt
@@ -61,6 +61,7 @@ object PowerUserTools : FirmamentFeature {
val exportUIRecipes by keyBindingWithDefaultUnbound("export-recipe")
val exportNpcLocation by keyBindingWithDefaultUnbound("export-npc-location")
val highlightNonOverlayItems by toggle("highlight-non-overlay") { false }
+ val dontHighlightSemicolonItems by toggle("dont-highlight-semicolon-items") { false }
}
override val config
diff --git a/src/main/kotlin/features/debug/itemeditor/ItemExporter.kt b/src/main/kotlin/features/debug/itemeditor/ItemExporter.kt
index c521b5a..2a56204 100644
--- a/src/main/kotlin/features/debug/itemeditor/ItemExporter.kt
+++ b/src/main/kotlin/features/debug/itemeditor/ItemExporter.kt
@@ -215,6 +215,8 @@ object ItemExporter {
return
}
val stack = event.slot.stack ?: return
+ val id = event.slot.stack.skyBlockId?.neuItem
+ if (PowerUserTools.TConfig.dontHighlightSemicolonItems && id != null && id.contains(";")) return
val isExported = nonOverlayCache.getOrPut(stack.skyBlockId ?: return) {
RepoDownloadManager.repoSavedLocation.resolve("itemsOverlay")
.resolve(ExportedTestConstantMeta.current.dataVersion.toString())
diff --git a/translations/en_us.json b/translations/en_us.json
index 31c2930..fa1a551 100644
--- a/translations/en_us.json
+++ b/translations/en_us.json
@@ -259,6 +259,8 @@
"firmament.config.power-user.copy-texture-pack-id.description": "Copy the texture pack id that is used for the item stack under your cursor.",
"firmament.config.power-user.copy-title": "Copy Inventory Title",
"firmament.config.power-user.copy-title.description": "Copies Inventory and Screen Titles",
+ "firmament.config.power-user.dont-highlight-semicolon-items": "Remove Semicolon Highlight",
+ "firmament.config.power-user.dont-highlight-semicolon-items.description": "Removes the highlight from items that contain a semicolon e.g Pets or Enchanted Books.",
"firmament.config.power-user.entity-data": "Show Entity Data",
"firmament.config.power-user.entity-data.description": "Print out information about the entity under your cross-hair.",
"firmament.config.power-user.export-item-stack": "Export Item Stack",
@@ -267,7 +269,8 @@
"firmament.config.power-user.export-npc-location.description": "Export the NPC's location to the repo data",
"firmament.config.power-user.export-recipe": "Export Recipe Data",
"firmament.config.power-user.export-recipe.description": "Export Recipe Data to the repo data",
- "firmament.config.power-user.highlight-non-overlay.description": "Highlight items missing in overlay",
+ "firmament.config.power-user.highlight-non-overlay": "Highlight Missing Items",
+ "firmament.config.power-user.highlight-non-overlay.description": "Highlights items that don't exist in the repo.",
"firmament.config.power-user.show-item-id": "Show SkyBlock Ids",
"firmament.config.power-user.show-item-id.description": "Show the SkyBlock id of items underneath them.",
"firmament.config.price-data": "Price Data",