Skip to content

Commit b3abf30

Browse files
Minor optimizations
1 parent 1c73c39 commit b3abf30

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Menu/Main.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5956,7 +5956,7 @@ public static void Toggle(string buttonText, bool fromMenu = false, bool ignoreF
59565956
VRRig.LocalRig.PlayHandTapLocal(50, rightHand, 0.4f);
59575957

59585958
if (fromMenu)
5959-
NotificationManager.SendNotification("<color=grey>[</color><color=purple>BINDS</color><color=grey>]</color> Successfully binded mod to " + BindInput + ".");
5959+
NotificationManager.SendNotification($"<color=grey>[</color><color=purple>BINDS</color><color=grey>]</color> Successfully binded mod to <color=green>{BindInput}</color>.");
59605960
}
59615961
}
59625962
else
@@ -5975,7 +5975,7 @@ public static void Toggle(string buttonText, bool fromMenu = false, bool ignoreF
59755975
target.rebindKey = BindInput;
59765976
VRRig.LocalRig.PlayHandTapLocal(50, rightHand, 0.4f);
59775977
if (fromMenu)
5978-
NotificationManager.SendNotification("<color=grey>[</color><color=purple>BINDS</color><color=grey>]</color> Successfully rebinded mod to " + BindInput + ".");
5978+
NotificationManager.SendNotification("<color=grey>[</color><color=purple>BINDS</color><color=grey>]</color> Successfully rebinded mod to {BindInput}.");
59795979
}
59805980
}
59815981
else
@@ -6032,7 +6032,7 @@ public static void Toggle(string buttonText, bool fromMenu = false, bool ignoreF
60326032
if (target.enabled)
60336033
{
60346034
if (fromMenu)
6035-
NotificationManager.SendNotification("<color=grey>[</color><color=green>ENABLE</color><color=grey>]</color> " + target.toolTip);
6035+
NotificationManager.SendNotification($"<color=grey>[</color><color=green>ENABLE</color><color=grey>]</color> {target.toolTip}");
60366036

60376037
if (target.enableMethod != null)
60386038
try { target.enableMethod.Invoke(); } catch (Exception exc) { LogManager.LogError(
@@ -6041,7 +6041,7 @@ public static void Toggle(string buttonText, bool fromMenu = false, bool ignoreF
60416041
else
60426042
{
60436043
if (fromMenu)
6044-
NotificationManager.SendNotification("<color=grey>[</color><color=red>DISABLE</color><color=grey>]</color> " + target.toolTip);
6044+
NotificationManager.SendNotification($"<color=grey>[</color><color=red>DISABLE</color><color=grey>]</color> {target.toolTip}");
60456045

60466046
if (target.disableMethod != null)
60476047
try { target.disableMethod.Invoke(); } catch (Exception exc) { LogManager.LogError(
@@ -6104,14 +6104,14 @@ public static void ToggleIncremental(string buttonText, bool increment)
61046104

61056105
if (increment)
61066106
{
6107-
NotificationManager.SendNotification("<color=grey>[</color><color=green>INCREMENT</color><color=grey>]</color> " + target.toolTip);
6107+
NotificationManager.SendNotification($"<color=grey>[</color><color=green>INCREMENT</color><color=grey>]</color> {target.toolTip}");
61086108
if (target.enableMethod != null)
61096109
try { target.enableMethod.Invoke(); } catch (Exception exc) { LogManager.LogError(
61106110
$"Error with mod enableMethod {target.buttonText} at {exc.StackTrace}: {exc.Message}"); }
61116111
}
61126112
else
61136113
{
6114-
NotificationManager.SendNotification("<color=grey>[</color><color=red>DECREMENT</color><color=grey>]</color> " + target.toolTip);
6114+
NotificationManager.SendNotification($"<color=grey>[</color><color=red>DECREMENT</color><color=grey>]</color> {target.toolTip}");
61156115
if (target.disableMethod != null)
61166116
try { target.disableMethod.Invoke(); } catch (Exception exc) { LogManager.LogError(
61176117
$"Error with mod disableMethod {target.buttonText} at {exc.StackTrace}: {exc.Message}"); }

0 commit comments

Comments
 (0)