Skip to content

Possible broken integration after last update #19

Closed
@voult2

Description

@voult2

I have a mod called BetterPawnControl which successfully integrated with your mod.
After your last update it seems two issues were introduced:

  1. https://dl.dropboxusercontent.com/u/1336839/2017-02-15_23-23-59.gif
  2. http://i.imgur.com/XUAdoqD.jpg

Issue 1
it seems the following line of code is breaking the integration
_instance = (MainTabWindow_Animals)DefDatabase<MainTabDef>.GetNamed( "Animals" )?.Window;

I think it's the cast that is not working.
DefDatabase<MainTabDef>.GetNamed( "Animals" )?.Window; should returns My Class.
The cast is being done to your class, sooo..,. cabummm.

Any ideas on how to solve this?

Issue 2
It seems the next code line is returning null. Not sure why,
texture = ContentFinder<Texture2D>.Get($"UI/Training/{trainable.defName}", false);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions