aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--FEATURES.md3
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Inventory.java32
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/items/HideNotClickableItems.kt5
4 files changed, 32 insertions, 9 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6a56f885d..57a7e65b9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@
### Minor Changes
- Optimizing the highlight block size for minions, blazing souls and gravity orbs
+- Added option to change the gray-out opacity for 'Not Clickable Items'
## Version 0.5 - Minions and RNG Meter
diff --git a/FEATURES.md b/FEATURES.md
index 2ca32b2e2..1ec89287b 100644
--- a/FEATURES.md
+++ b/FEATURES.md
@@ -24,7 +24,8 @@
- Hiding damage splashes while inside the boss room (fixing Skytils feature)
## Inventory
-- Mark items gray in your inventory when they are not supposed to be moved in certain GUIs (in NPC sell inventories, ender chests and backpacks, salvaging in dungeon hub, player trade, bazaar, action house, accessory bag, sack of sacks, fishing bag, potion bag, chests on the private island, attribute fusion and equipment GUI)
+- Not Clickable Items: Mark items gray in your inventory when they are not supposed to be moved in certain GUIs (in NPC sell inventories, ender chests and backpacks, salvaging in dungeon hub, player trade, bazaar, action house, accessory bag, sack of sacks, fishing bag, potion bag, chests on the private island, attribute fusion and equipment GUI)
+- Option to change the gray-out opacity for 'Not Clickable Items'
- Set stack number for specific items (stars for crimson armor, minion tier, pet level, new year cake, for golden and diamond dungeon heads the floor number and the tier of master skull and master star)
- Sack name (show hort name of sacks)
- Anvil Combine Helper (When putting an enchanted book into the first slot of the anvil, all items with the same enchantment are highlighted in the inventory)
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Inventory.java b/src/main/java/at/hannibal2/skyhanni/config/features/Inventory.java
index ba11c6098..c1a5bfdea 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/Inventory.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/Inventory.java
@@ -8,15 +8,33 @@ import java.util.List;
public class Inventory {
+ @ConfigOption(name = "Not Clickable Items", desc = "")
+ @ConfigEditorAccordion(id = 0)
+ public boolean hideNotClickable = false;
+
@Expose
- @ConfigOption(name = "Not Clickable Items", desc = "Hide items that are not clickable in " + "the current inventory: ah, bz, accessory bag, etc.")
+ @ConfigOption(name = "Enabled", desc = "Hide items that are not clickable in the current inventory: ah, bz, accessory bag, etc.")
@ConfigEditorBoolean
+ @ConfigAccordionId(id = 0)
public boolean hideNotClickableItems = false;
@Expose
@ConfigOption(
- name = "Item number as stack size",
- desc = ""
+ name = "Opacity",
+ desc = "How strong should the items be grayed out?"
+ )
+ @ConfigEditorSlider(
+ minValue = 0,
+ maxValue = 255,
+ minStep = 5
+ )
+ @ConfigAccordionId(id = 0)
+ public int hideNotClickableOpacity = 180;
+
+ @Expose
+ @ConfigOption(
+ name = "Item number",
+ desc = "Showing the item number as a stack size for these items"
)
@ConfigEditorDraggableList(
exampleText = {
@@ -48,24 +66,24 @@ public class Inventory {
public boolean itemStars = false;
@ConfigOption(name = "RNG Meter", desc = "")
- @ConfigEditorAccordion(id = 0)
+ @ConfigEditorAccordion(id = 1)
public boolean rngMeter = false;
@Expose
@ConfigOption(name = "Floor Names", desc = "Show the floor names in the catacombs rng meter inventory")
@ConfigEditorBoolean
- @ConfigAccordionId(id = 0)
+ @ConfigAccordionId(id = 1)
public boolean rngMeterFloorName = false;
@Expose
@ConfigOption(name = "No Drop", desc = "Highlight floors without a drop selected in the catacombs rng meter inventory")
@ConfigEditorBoolean
- @ConfigAccordionId(id = 0)
+ @ConfigAccordionId(id = 1)
public boolean rngMeterNoDrop = false;
@Expose
@ConfigOption(name = "Selected Drop", desc = "Highlight the selected drop in the catacombs oder slayer rng meter inventory")
@ConfigEditorBoolean
- @ConfigAccordionId(id = 0)
+ @ConfigAccordionId(id = 1)
public boolean rngMeterSelectedDrop = false;
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/items/HideNotClickableItems.kt b/src/main/java/at/hannibal2/skyhanni/features/items/HideNotClickableItems.kt
index 95d9517d5..549d347eb 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/items/HideNotClickableItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/items/HideNotClickableItems.kt
@@ -78,7 +78,10 @@ class HideNotClickableItems {
if (slot.stack == null) continue
if (hide(chestName, slot.stack)) {
- val color = LorenzColor.DARK_GRAY.addOpacity(160)
+// val color = LorenzColor.DARK_GRAY.addOpacity(160)
+// val color = LorenzColor.DARK_GRAY.addOpacity(LorenzTest.a.toInt())
+ val opacity = SkyHanniMod.feature.inventory.hideNotClickableOpacity
+ val color = LorenzColor.DARK_GRAY.addOpacity(opacity)
slot.stack.background = color.rgb
}
}