From 0c50538f6f5b4cce7d60a38b83c5ca67eab9047b Mon Sep 17 00:00:00 2001 From: Alex Kozack Date: Sat, 21 Oct 2023 12:53:26 +0300 Subject: [PATCH] fix: display mode values can't be localized fix #24 --- src/redscript/in_world_navigation/InWorldNavigation.reds | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/redscript/in_world_navigation/InWorldNavigation.reds b/src/redscript/in_world_navigation/InWorldNavigation.reds index d99c9f7..34218c1 100644 --- a/src/redscript/in_world_navigation/InWorldNavigation.reds +++ b/src/redscript/in_world_navigation/InWorldNavigation.reds @@ -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; @@ -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)); } -} \ No newline at end of file +}