public async Task <IEnumerable <Script> > LoadAllScriptsAsync() { InvokeOnScriptLoadStarted(); var scripts = await scriptLoader.LoadAllAsync(); GenerateNavigatorButtons(scripts); InvokeOnScriptLoadCompleted(); return(scripts); }
public async Task <IEnumerable <Script> > LoadExternalScriptsAsync() { if (!CommunityModdingEnabled) { return(new List <Script>()); } InvokeOnScriptLoadStarted(); var scripts = await externalScriptLoader.LoadAllAsync(); InvokeOnScriptLoadCompleted(); return(scripts); }
public async Task ApplyManagedTextAsync() { records.Clear(); documentLoader.UnloadAll(); var documents = await documentLoader.LoadAllAsync(); foreach (var document in documents) { var managedTextSet = ManagedTextUtils.GetManagedTextFromScript(document); foreach (var text in managedTextSet) { records.Add(new ManagedTextRecord(text.FieldId, text.FieldValue, text.Category)); } ManagedTextUtils.SetManagedTextValues(managedTextSet); } }