public static void LoadNavigators(object Sender, EventArgs e)
{
ALFA.Shared.Modules.InfoStore.WaitForResourcesLoaded(true);
try
{
List<ALFA.Shared.IListBoxItem> suppliedList = new List<ALFA.Shared.IListBoxItem>();
foreach(ALFA.Shared.ItemResource item in ALFA.Shared.Modules.InfoStore.ModuleItems.Values)
{
suppliedList.Add(item);
}
LoadNavigator(suppliedList, Navigators.ItemNavigator);
}
catch (Exception ex)
{
loaderError += "\n LoadItems :" + ex.Message;
}
try
{
List<ALFA.Shared.IListBoxItem> suppliedList = new List<ALFA.Shared.IListBoxItem>();
foreach (ALFA.Shared.CreatureResource item in ALFA.Shared.Modules.InfoStore.ModuleCreatures.Values)
{
suppliedList.Add(item);
}
LoadNavigator(suppliedList, Navigators.CreatureNavigator);
}
catch (Exception ex)
{
loaderError += "\n LoadCreatures :" + ex.Message;
}
try
{
List<ALFA.Shared.IListBoxItem> suppliedList = new List<ALFA.Shared.IListBoxItem>();
foreach (ALFA.Shared.PlaceableResource item in ALFA.Shared.Modules.InfoStore.ModulePlaceables.Values)
{
suppliedList.Add(item);
}
LoadNavigator(suppliedList, Navigators.PlaceableNavigator);
}
catch (Exception ex)
{
loaderError += "\n LoadPlaceables :" + ex.Message;
}
try
{
List<ALFA.Shared.IListBoxItem> suppliedList = new List<ALFA.Shared.IListBoxItem>();
foreach (ALFA.Shared.VisualEffectResource item in ALFA.Shared.Modules.InfoStore.ModuleVisualEffects.Values)
{
suppliedList.Add(item);
}
LoadNavigator(suppliedList, Navigators.VisualEffectNavigator);
}
catch (Exception ex)
{
loaderError += "\n LoadWaypoints :" + ex.Message;
}
try
{
List<ALFA.Shared.IListBoxItem> suppliedList = new List<ALFA.Shared.IListBoxItem>();
foreach (ALFA.Shared.WaypointResource item in ALFA.Shared.Modules.InfoStore.ModuleWaypoints.Values)
{
suppliedList.Add(item);
}
LoadNavigator(suppliedList, Navigators.WaypointNavigator);
}
catch (Exception ex)
{
loaderError += "\n LoadWaypoints :" + ex.Message;
}
try
{
List<ALFA.Shared.IListBoxItem> suppliedList = new List<ALFA.Shared.IListBoxItem>();
foreach (ALFA.Shared.LightResource item in ALFA.Shared.Modules.InfoStore.ModuleLights.Values)
{
suppliedList.Add(item);
}
LoadNavigator(suppliedList, Navigators.LightNavigator);
}
catch (Exception ex)
{
loaderError += "\n LoadLights :" + ex.Message;
}
try
{
List<ALFA.Shared.IListBoxItem> suppliedList = new List<ALFA.Shared.IListBoxItem>();
foreach (ALFA.Shared.TrapResource item in ALFA.Shared.Modules.InfoStore.ModuleTraps.Values)
{
suppliedList.Add(item);
}
LoadNavigator(suppliedList, Navigators.TrapNavigator);
}
catch (Exception ex)
{
loaderError += "\n LoadTraps :" + ex.Message;
}
try
{
DefaultSortNavigators(Navigators.CreatureNavigator.bottomCategory);
DefaultSortNavigators(Navigators.ItemNavigator.bottomCategory);
DefaultSortNavigators(Navigators.PlaceableNavigator.bottomCategory);
DefaultSortNavigators(Navigators.VisualEffectNavigator.bottomCategory);
DefaultSortNavigators(Navigators.TrapNavigator.bottomCategory);
DefaultSortNavigators(Navigators.WaypointNavigator.bottomCategory);
DefaultSortNavigators(Navigators.LightNavigator.bottomCategory);
}
catch (Exception ex)
{
loaderError += "\n SortingErrors :" + ex.Message;
}
}