Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ import net.vertexdezign.vdt.app.widgets.LightingWidget
import net.vertexdezign.vdt.app.widgets.NavigationWidget
import net.vertexdezign.vdt.app.widgets.RigSlotWidget
import net.vertexdezign.vdt.app.widgets.TelltaleWidget
import net.vertexdezign.vdt.app.widgets.TirePressureWidget
import net.vertexdezign.vdt.app.widgets.Widget

/**
* The vehicle itself: owns everything about the machine you're driving. Provides the engine, rig-slot
* and lighting tiles, and a full page laying the rig out the way it sits: front, the machine, rear.
* The vehicle itself: owns everything about the machine you're driving. Provides the engine, rig-slot,
* lighting and tyre-pressure tiles, and a full page laying the rig out the way it sits: front, the machine, rear.
*/
object VehicleApp : VdtApp {
/** Below this the low-fuel alert fires… */
Expand All @@ -47,6 +48,8 @@ object VehicleApp : VdtApp {
RigSlotWidget,
NavigationWidget,
LightingWidget,
// Only says anything with Variable Tire Pressure installed; without it, the tile says so.
TirePressureWidget,
// The pillar-cluster four. They belong to the vehicle like everything else here; what makes them
// a cluster is the page they are stacked on, not anything they know about each other.
TelltaleWidget,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ interface Strings {
val rotation: RotationStrings
val fields: FieldsStrings
val autoDrive: AutoDriveStrings
val tirePressure: TirePressureStrings
val diagnostics: DiagnosticsStrings
val vehicle: VehicleStrings
val cluster: ClusterStrings
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package net.vertexdezign.vdt.app.i18n

/** The tyre-pressure widget (Variable Tire Pressure). */
interface TirePressureStrings {
val title: String
val notInVehicle: String
val noSystem: String

/** The three scopes: the mod's whole-combination, tractor and implements keys. */
val wholeRig: String
val implements: String

val road: String
val field: String
val mixed: String
val front: String
val rear: String

/** A pressure, already formatted, with its unit. */
fun bar(value: String): String

/** Said for the arrow beside a pressure that is moving: where to, already formatted. */
fun inflatingTo(value: String): String
fun deflatingTo(value: String): String

/** What tapping the readout on the lighting schematic does: the whole rig to one pressure. */
val switchRigToRoad: String
val switchRigToField: String
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package net.vertexdezign.vdt.app.i18n.de

import net.vertexdezign.vdt.app.i18n.TirePressureStrings

internal object DeTirePressure : TirePressureStrings {
override val title = "Reifendruck"
override val notInVehicle = "Nicht in einem Fahrzeug"
override val noSystem = "Keine Reifendruckregelanlage am Gespann"
override val wholeRig = "GANZES GESPANN"
override val implements = "GERÄTE"
override val road = "Straße"
override val field = "Feld"
override val mixed = "Gemischt"
override val front = "Vorne"
override val rear = "Hinten"
override fun bar(value: String): String = "$value bar"
override fun inflatingTo(value: String): String = "pumpt auf $value bar"
override fun deflatingTo(value: String): String = "lässt ab auf $value bar"
override val switchRigToRoad = "Gespann auf Straßendruck"
override val switchRigToField = "Gespann auf Felddruck"
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import net.vertexdezign.vdt.app.i18n.ShellStrings
import net.vertexdezign.vdt.app.i18n.StorageStrings
import net.vertexdezign.vdt.app.i18n.Strings
import net.vertexdezign.vdt.app.i18n.TasksStrings
import net.vertexdezign.vdt.app.i18n.TirePressureStrings
import net.vertexdezign.vdt.app.i18n.VehicleStrings
import net.vertexdezign.vdt.app.i18n.WidgetsStrings

Expand Down Expand Up @@ -62,6 +63,7 @@ object German : Strings {
override val rotation: RotationStrings = DeRotation
override val fields: FieldsStrings = DeFields
override val autoDrive: AutoDriveStrings = DeAutoDrive
override val tirePressure: TirePressureStrings = DeTirePressure
override val diagnostics: DiagnosticsStrings = DeDiagnostics
override val vehicle: VehicleStrings = DeVehicle
override val cluster: ClusterStrings = DeCluster
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package net.vertexdezign.vdt.app.i18n.en

import net.vertexdezign.vdt.app.i18n.TirePressureStrings

internal object EnTirePressure : TirePressureStrings {
override val title = "Tyre pressure"
override val notInVehicle = "Not in a vehicle"
override val noSystem = "No tyre inflation system on this rig"
override val wholeRig = "WHOLE RIG"
override val implements = "IMPLEMENTS"
override val road = "Road"
override val field = "Field"
override val mixed = "Mixed"
override val front = "Front"
override val rear = "Rear"
override fun bar(value: String): String = "$value bar"
override fun inflatingTo(value: String): String = "inflating to $value bar"
override fun deflatingTo(value: String): String = "deflating to $value bar"
override val switchRigToRoad = "switch the rig to road pressure"
override val switchRigToField = "switch the rig to field pressure"
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import net.vertexdezign.vdt.app.i18n.ShellStrings
import net.vertexdezign.vdt.app.i18n.StorageStrings
import net.vertexdezign.vdt.app.i18n.Strings
import net.vertexdezign.vdt.app.i18n.TasksStrings
import net.vertexdezign.vdt.app.i18n.TirePressureStrings
import net.vertexdezign.vdt.app.i18n.VehicleStrings
import net.vertexdezign.vdt.app.i18n.WidgetsStrings

Expand Down Expand Up @@ -59,6 +60,7 @@ object English : Strings {
override val rotation: RotationStrings = EnRotation
override val fields: FieldsStrings = EnFields
override val autoDrive: AutoDriveStrings = EnAutoDrive
override val tirePressure: TirePressureStrings = EnTirePressure
override val diagnostics: DiagnosticsStrings = EnDiagnostics
override val vehicle: VehicleStrings = EnVehicle
override val cluster: ClusterStrings = EnCluster
Expand Down
Loading
Loading