Skip to content

Commit

Permalink
fix: display mode values can't be localized
Browse files Browse the repository at this point in the history
  • Loading branch information
cawa-93 authored Oct 21, 2023
1 parent bda9d50 commit 0c50538
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/redscript/in_world_navigation/InWorldNavigation.reds
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ public native class InWorldNavigation extends IScriptable {

@runtimeProperty("ModSettings.mod", "In-World Navigation")
@runtimeProperty("ModSettings.displayName", "Display mode")
@runtimeProperty("ModSettings.displayValues", "\"Always\", \"When Driving\", \"When Walking\"")
@runtimeProperty("ModSettings.displayValues.Always", "Always")
@runtimeProperty("ModSettings.displayValues.Driving", "When Driving")
@runtimeProperty("ModSettings.displayValues.Walking", "When Walking")

@runtimeProperty("ModSettings.dependency", "enabled")
let mode: InWorldNavigationMode = InWorldNavigationMode.Driving;

Expand Down Expand Up @@ -265,4 +268,4 @@ public native class InWorldNavigation extends IScriptable {
}
this.navPathFXs[type][i].SetBlackboardValue(n"alpha", MinF(Vector4.Distance2D(this.player.GetWorldPosition(), p) / this.distanceToFade, 1.0));
}
}
}

0 comments on commit 0c50538

Please sign in to comment.