public void GameContextInitializeAfter() { if (Process.GetCurrentProcess().ProcessName.Contains("ContentBuilder") && !Process.GetCurrentProcess().StartInfo.Arguments.Contains("--stopVariantCheck")) { var variantLoader = new VariantLoader(); Application.Run(variantLoader); variantLoader.Dispose(); } if (FxCore == null) { FxCore = new Fox_Core("NimbusFox", "FoxCore", "V2.1"); //FxCore.PatchController.Add(typeof(PlayerEntityLogic), "PersistOtherPlayerData", typeof(CoreHook), nameof(BeforeSave), typeof(CoreHook), nameof(AfterSave)); //FxCore.PatchController.Add(typeof(PlayerEntityLogic), "Construct", null, null, typeof(CoreHook), nameof(AfterLoad)); FxCore.PatchController.Add(typeof(PlayerPersistence), "SaveAllPlayerDataOnConnect", null, null, typeof(CoreHook), nameof(OnConnect)); FxCore.PatchController.Add(typeof(PlayerPersistence), "SaveDisconnectingPlayer", null, null, typeof(CoreHook), nameof(OnDisconnect)); FxCore.PatchController.Add(typeof(ChatController), "ReceiveConsoleResponse", typeof(ChatControllerPatches), nameof(ChatControllerPatches.ReceiveConsoleResponse)); UserManager = new UserManager(); } }
TValue IMasterLoader <TValue> .Load() { return(VariantLoader.Load()); }
protected override void OnInitialized() { _rootLayer = new Layer(); // _themeLoader = new ColorSet.Components.VariantLoader(StorageService, Configuration.ResourceSet, "Dark"); // _themeLoader.OnComplete += StateHasChanged; _defaultVariantLoader = new VariantLoader(StorageService, new Theme(), Variants.Dark.ToString()); _defaultVariantLoader.OnComplete += StateHasChanged; _solidsVariantLoader = new VariantLoader(StorageService, new Colorant.Themes.Solids.Theme(), Colorant.Themes.Solids.Variants.Normal.ToString()); // _header1 = new Header ( new List <IBit> { new Title(() => "Header #1!", () => "/"), new Space(), new TextLine(() => "(Descriptor)"), new Filler(), new Link(() => "Link root", () => "/"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url2"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url3"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url4"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url5"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url6"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url7"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url8"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url9"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url10"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url11"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url12"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url13"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url14"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url15"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url16"), new Space(), new Separator(), new Space(), new Link(() => "Link 2!", () => "/url17"), }, doHighlight: true ); }