aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-18 15:35:18 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-18 16:22:16 +0100
commitfba91100cb57b4359f235bfcca352c052ec0eefb (patch)
tree065a541638668c0035e8daffb47929cd01c198e6
parenta8174361471e9884b8dbb42a916213643364c4bb (diff)
downloadFirmament-fba91100cb57b4359f235bfcca352c052ec0eefb.tar.gz
Firmament-fba91100cb57b4359f235bfcca352c052ec0eefb.tar.bz2
Firmament-fba91100cb57b4359f235bfcca352c052ec0eefb.zip
fix: Pristine profit tracker width
-rw-r--r--src/main/kotlin/features/mining/PristineProfitTracker.kt8
-rw-r--r--src/main/resources/assets/firmament/gui/pristine_profit.xml9
-rw-r--r--translations/en_us.json2
3 files changed, 12 insertions, 7 deletions
diff --git a/src/main/kotlin/features/mining/PristineProfitTracker.kt b/src/main/kotlin/features/mining/PristineProfitTracker.kt
index 0f50918..377a470 100644
--- a/src/main/kotlin/features/mining/PristineProfitTracker.kt
+++ b/src/main/kotlin/features/mining/PristineProfitTracker.kt
@@ -14,9 +14,9 @@ import moe.nea.firmament.gui.hud.MoulConfigHud
import moe.nea.firmament.util.BazaarPriceStrategy
import moe.nea.firmament.util.FirmFormatters.formatCommas
import moe.nea.firmament.util.SkyblockId
+import moe.nea.firmament.util.StringUtil.parseIntWithComma
import moe.nea.firmament.util.data.ProfileSpecificDataHolder
import moe.nea.firmament.util.formattedString
-import moe.nea.firmament.util.StringUtil.parseIntWithComma
import moe.nea.firmament.util.useMatch
object PristineProfitTracker : FirmamentFeature {
@@ -34,6 +34,10 @@ object PristineProfitTracker : FirmamentFeature {
JADE("Jade"),
JASPER("Jasper"),
OPAL("Opal"),
+ PERIDOT("Peridot"),
+ ONXY("Onyx"),
+ AQUAMARINE("Aquamarine"),
+ CITRINE("Citrine"),
;
val flawedId: SkyblockId = SkyblockId("FLAWED_${name}_GEM")
@@ -53,7 +57,7 @@ object PristineProfitTracker : FirmamentFeature {
object TConfig : ManagedConfig(identifier, Category.MINING) {
val timeout by duration("timeout", 0.seconds, 120.seconds) { 30.seconds }
- val gui by position("position", 80, 30) { Point(0.05, 0.2) }
+ val gui by position("position", 100, 30) { Point(0.05, 0.2) }
val useFineGemstones by toggle("fine-gemstones") { false }
}
diff --git a/src/main/resources/assets/firmament/gui/pristine_profit.xml b/src/main/resources/assets/firmament/gui/pristine_profit.xml
index f015e91..8787b8f 100644
--- a/src/main/resources/assets/firmament/gui/pristine_profit.xml
+++ b/src/main/resources/assets/firmament/gui/pristine_profit.xml
@@ -2,12 +2,13 @@
<Root xmlns="http://notenoughupdates.org/moulconfig" xmlns:firm="http://firmament.nea.moe/moulconfig">
<Column>
<Row>
- <firm:Bar progress="@moneyCurrent" total="@moneyMax" fillColor="#bbbb00" emptyColor="#909000"/>
- <Text text="@moneyText"/>
+<!-- <firm:Bar progress="@moneyCurrent" total="@moneyMax" fillColor="#bbbb00" emptyColor="#909000"/>-->
+ <Text text="@moneyText" width="300"/>
</Row>
<Row>
- <firm:Bar progress="@collectionCurrent" total="@collectionMax" fillColor="#33ff33" emptyColor="#00a000"/>
- <Text text="@collectionText"/>
+<!-- <firm:Bar progress="@collectionCurrent" total="@collectionMax" fillColor="#33ff33" emptyColor="#00a000"/>-->
+ <!-- TODO: add dynamically sized texts -->
+ <Text text="@collectionText" width="300"/>
</Row>
</Column>
</Root>
diff --git a/translations/en_us.json b/translations/en_us.json
index 34ffdb0..6fd0425 100644
--- a/translations/en_us.json
+++ b/translations/en_us.json
@@ -162,7 +162,7 @@
"firmament.config.pristine-profit": "Pristine Profit Tracker",
"firmament.config.pristine-profit.fine-gemstones": "Use Fine Gemstones",
"firmament.config.pristine-profit.fine-gemstones.description": "Use the (more stable) price of fine gemstones, instead of flawed gemstones.",
- "firmament.config.pristine-profit.position": "Position",
+ "firmament.config.pristine-profit.position": "Pristine Profit HUD",
"firmament.config.pristine-profit.position.description": "Edit the pristine profit hud location.",
"firmament.config.pristine-profit.timeout": "Timeout (0 = disabled)",
"firmament.config.pristine-profit.timeout.description": "Track the profit you make from pristine gemstones while mining. Set to 0 seconds to disable the HUD.",