remove LocalizedToUpper lol

This commit is contained in:
JohnCorby 2022-06-26 11:32:40 -07:00
parent 0792cc1024
commit 85a405b5f2
2 changed files with 7 additions and 13 deletions

View File

@ -13,7 +13,7 @@ public class RespawnHUDMarker : HUDDistanceMarker
{
_markerRadius = 0.2f;
_markerTarget = transform;
_markerLabel = QSBLocalization.Current.RespawnPlayer.LocalizedToUpper();
_markerLabel = QSBLocalization.Current.RespawnPlayer.ToUpper(UIHelper.GetCurrentCultureInfo());
_isReady = true;
base.InitCanvasMarker();

View File

@ -161,13 +161,13 @@ public static class Extensions
public static void RaiseEvent<T>(this T instance, string eventName, params object[] args)
{
const BindingFlags flags = BindingFlags.Instance
| BindingFlags.Static
| BindingFlags.Public
| BindingFlags.NonPublic
| BindingFlags.DeclaredOnly;
| BindingFlags.Static
| BindingFlags.Public
| BindingFlags.NonPublic
| BindingFlags.DeclaredOnly;
if (typeof(T)
.GetField(eventName, flags)?
.GetValue(instance) is not MulticastDelegate multiDelegate)
.GetField(eventName, flags)?
.GetValue(instance) is not MulticastDelegate multiDelegate)
{
return;
}
@ -214,11 +214,5 @@ public static class Extensions
}
}
public static string LocalizedToUpper(this string orig)
{
var culture = UIHelper.GetCurrentCultureInfo();
return culture.TextInfo.ToUpper(orig);
}
#endregion
}