33using FrooxEngine . ProtoFlux ;
44using FrooxEngine . UIX ;
55using HarmonyLib ;
6- using MonkeyLoader . Components ;
76using MonkeyLoader . Configuration ;
87using MonkeyLoader . Events ;
98using MonkeyLoader . Resonite ;
@@ -30,18 +29,20 @@ internal sealed class OpenWikiArticleButton : ConfiguredResoniteInspectorMonkey<
3029 IAsyncEventHandler < FallbackLocaleGenerationEvent >
3130 {
3231 private static readonly Lazy < LocaleString > _componentLocale = new ( ( ) => Mod . GetLocaleString ( "WikiHyperlink.Component" ) ) ;
33- private static readonly Lazy < LocaleString > _protoFluxLocale = new ( ( ) => Mod . GetLocaleString ( "WikiHyperlink.ProtoFlux" ) ) ;
34- private static ProtoFluxCategoryConfig _categoryConfig = null ! ;
32+
3533 private static readonly Dictionary < string , string > _nameOverrides = new ( ) {
3634 { "dT" , "Delta_Time" } ,
3735 { "ObjectCast" , "Object_Cast" } ,
3836 { "ValueCast" , "Value_Cast" }
3937 } ;
4038
39+ private static readonly Lazy < LocaleString > _protoFluxLocale = new ( ( ) => Mod . GetLocaleString ( "WikiHyperlink.ProtoFlux" ) ) ;
40+
41+ private static ProtoFluxCategoryConfig _categoryConfig = null ! ;
42+
4143 public override int Priority => HarmonyLib . Priority . HigherThanNormal ;
4244
4345 private static LocaleString ComponentLocale => _componentLocale . Value ;
44-
4546 private static LocaleString ProtoFluxLocale => _protoFluxLocale . Value ;
4647
4748 public Task Handle ( FallbackLocaleGenerationEvent eventData )
@@ -110,8 +111,8 @@ private static void AddHyperlink(Slot slot, Worker worker)
110111 nodeName = dotIndex > 0 ? overload [ ( dotIndex + 1 ) ..] : nodeName ;
111112 }
112113
113- if ( _nameOverrides . TryGetValue ( nodeName , out var name ) )
114- nodeName = name ;
114+ if ( _nameOverrides . TryGetValue ( nodeName , out var overrideName ) )
115+ nodeName = overrideName ;
115116
116117 wikiPage = $ "ProtoFlux:{ nodeName . Replace ( ' ' , '_' ) } ";
117118 }
0 commit comments