Fix translations

[no changelog]
This commit is contained in:
Linnea Gräf
2024-01-18 20:30:14 +01:00
parent 608fec9cd0
commit cc8e54b594
3 changed files with 13 additions and 2 deletions

View File

@@ -17,11 +17,12 @@ import moe.nea.firmament.features.FirmamentFeature
import moe.nea.firmament.gui.config.ManagedConfig import moe.nea.firmament.gui.config.ManagedConfig
object DianaWaypoints : FirmamentFeature { object DianaWaypoints : FirmamentFeature {
override val identifier get() = "diana-waypoints" override val identifier get() = "diana"
override val config get() = TConfig override val config get() = TConfig
object TConfig : ManagedConfig(identifier) { object TConfig : ManagedConfig(identifier) {
val ancestralSpadeSolver by toggle("ancestral-spade") { false } val ancestralSpadeSolver by toggle("ancestral-spade") { true }
val nearbyWaypoints by toggle("nearby-waypoints") { true }
} }
override fun onLoad() { override fun onLoad() {

View File

@@ -63,6 +63,7 @@ object NearbyBurrowsSolver {
} }
fun onParticles(event: ParticleSpawnEvent) { fun onParticles(event: ParticleSpawnEvent) {
if (!DianaWaypoints.TConfig.nearbyWaypoints) return
val position: BlockPos = event.position.toBlockPos().down() val position: BlockPos = event.position.toBlockPos().down()
@@ -106,6 +107,7 @@ object NearbyBurrowsSolver {
} }
fun onRender(event: WorldRenderLastEvent) { fun onRender(event: WorldRenderLastEvent) {
if (!DianaWaypoints.TConfig.nearbyWaypoints) return
renderInWorld(event) { renderInWorld(event) {
for ((location, burrow) in burrows) { for ((location, burrow) in burrows) {
when (burrow) { when (burrow) {
@@ -126,6 +128,8 @@ object NearbyBurrowsSolver {
} }
fun onBlockClick(blockPos: BlockPos) { fun onBlockClick(blockPos: BlockPos) {
if (!DianaWaypoints.TConfig.nearbyWaypoints) return
burrows.remove(blockPos)
lastBlockClick = blockPos lastBlockClick = blockPos
} }
} }

View File

@@ -20,6 +20,12 @@
"firmament.tooltip.bazaar.buy-order": "Bazaar Buy Order: %s", "firmament.tooltip.bazaar.buy-order": "Bazaar Buy Order: %s",
"firmament.tooltip.ah.lowestbin": "Lowest BIN: %d", "firmament.tooltip.ah.lowestbin": "Lowest BIN: %d",
"firmament.pv.pets": "Pets", "firmament.pv.pets": "Pets",
"firmament.config.diana": "Diana",
"firmament.config.diana.ancestral-spade": "Ancestral Spade Solver",
"firmament.config.diana.nearby-waypoints": "Nearby Waypoints Highlighter",
"firmament.config.pristine-profit": "Pristine Profit Tracker",
"firmament.config.pristine-profit.timeout": "Timeout (0 = disabled)",
"firmament.config.pristine-profit.position": "Position",
"firmament.debug.skyblockid": "SkyBlock ID: %s", "firmament.debug.skyblockid": "SkyBlock ID: %s",
"firmament.debug.skyblockid.copy": "Click to copy SkyBlock ID", "firmament.debug.skyblockid.copy": "Click to copy SkyBlock ID",
"firmament.price.bazaar.sell.price": "Sell Price: %s", "firmament.price.bazaar.sell.price": "Sell Price: %s",