|
Hi, one of the problems I'm running into in including Ruminate in my own project is that eventhough I reference GuiContent, it's not loaded and thus no renderers are found.
So I have to force loading of the dll like this before Skin can actually find any Renderers:
var
loadedAssemblies = AppDomain.CurrentDomain.GetAssemblies().ToList();
var
loadedPaths = loadedAssemblies.Select(a => a.Location).ToArray();
var
referencedPaths = Directory.GetFiles(AppDomain.CurrentDomain.BaseDirectory,
"*.dll" );
var
toLoad = referencedPaths.Where(r => !loadedPaths.Contains(r, StringComparer.InvariantCultureIgnoreCase)).ToList();
toLoad.ForEach(path => loadedAssemblies.Add(AppDomain.CurrentDomain.Load(AssemblyName.GetAssemblyName(path))));
I've also added an assertion in the loop that's creating renderers like so :
if
(c != null )
{
WidgetMap.Add((equalsSplit[0]).Trim(), (Renderer)c.Invoke(args.ToArray()));
}
else
{
Debug.Assert(false);
}
which immediately showed me you've forgotten to update the slider_bar definition in the default map.txt with the new buffer parameter so it can't
be constructed ! Some more error-checking might be necessary :)
Anyway, keep up the good work.
|