diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/ItemPriceSource.kt | 6 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemPriceSource.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemPriceSource.kt index 13049a596..a764bc84e 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/ItemPriceSource.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemPriceSource.kt @@ -1,8 +1,8 @@ package at.hannibal2.skyhanni.utils -enum class ItemPriceSource(val displayName: String) { - BAZAAR_INSTANT_BUY("Instant Buy/Sell Offer"), // Sell Offer - BAZAAR_INSTANT_SELL("Instant Sell/Buy Order"), // Buy Order +enum class ItemPriceSource(val displayName: String, val sellName: String = displayName, val buyName: String = displayName) { + BAZAAR_INSTANT_BUY("BZ Instant Buy", buyName = "BZ Sell Offer"), + BAZAAR_INSTANT_SELL("BZ Instant Sell", buyName = "BZ Buy Order"), NPC_SELL("NPC Sell"), ; diff --git a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt index 241d0a1e8..f249cce3e 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt @@ -56,7 +56,7 @@ class SkyHanniItemTracker<Data : ItemTrackerData>( if (isInventoryOpen()) { lists.addSelector<ItemPriceSource>( "", - getName = { type -> type.displayName }, + getName = { type -> type.sellName }, isCurrent = { it.ordinal == config.priceSource.ordinal }, // todo avoid ordinal onChange = { config.priceSource = ItemPriceSource.entries[it.ordinal] // todo avoid ordinal |