hello.
I'm trying to add gizmo on my mod but...
this exception keep happens.
this is my code for gizmo. am I missing something? or overrided gizmo in wrong way? the other parts of code work just fine
I checked the forum and found a similar thread(about .NET version) but .NET version of my project is 4.5.
I'm trying to add gizmo on my mod but...
Code Select
System.TypeLoadException: Could not load type 'System.Action' from assembly 'Landmines'.
at RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor (IEnumerable`1 selectedObjects) [0x00000] in <filename unknown>:0
this exception keep happens.
Code Select
public override IEnumerable<Gizmo> GetGizmos()
{
IList<Gizmo> clist = new List<Gizmo>();
Command_Action Cact;
Cact = new Command_Action();
Cact.icon = toggletrap;
Cact.defaultDesc = "Toggle arm state";
Cact.activateSound = SoundDef.Named("Click");
Cact.action = new Action(this.ToggleArm);
Cact.groupKey = 13379998;
Cact.hotKey = KeyBindingDefOf.Misc1;
clist.Add(Cact);
IEnumerable<Gizmo> gizmos = base.GetGizmos();
if (gizmos != null)
return clist.AsEnumerable<Gizmo>().Concat(gizmos);
else
return clist.AsEnumerable<Gizmo>();
}
this is my code for gizmo. am I missing something? or overrided gizmo in wrong way? the other parts of code work just fine
I checked the forum and found a similar thread(about .NET version) but .NET version of my project is 4.5.