Hi .
I'm getting error on gizmo implementation and i cant find why becouse its almoust copy/past from other one .
Here is error :
Here is gizmo itself :
Here call method :
Here var declare :
I try to IList<gizmo> i still have error in no method "BurnStart" not found in assembley
i try Lamda
So my question is where i'm wrong and how right gizmo action call look like .
I'm getting error on gizmo implementation and i cant find why becouse its almoust copy/past from other one .
Here is error :
Code Select
System.MissingMethodException: Method not found: 'System.Environment.get_CurrentManagedThreadId'.
at TLM.Building_SteamBoiler.GetGizmos () [0x00000] in <filename unknown>:0
at RimWorld.InspectCommandGrid.DrawInspectCommandGridFor (IEnumerable`1 selectedObjects) [0x00000] in <filename unknown>:0
Here is gizmo itself :
Code Select
public override IEnumerable<Gizmo> GetGizmos()
{
foreach (var g in base.GetGizmos())
{
yield return g;
}
if (this.StartBurn == false)
{
Command_Action act = new Command_Action();
act.action = new Action(this.BurnStart);
act.icon = LockCommandIcon;
act.defaultLabel = "start";
act.defaultDesc = "start";
act.groupKey = 689739;
yield return act;
}
}
Here call method :
Code Select
private void Start()
{
this.StartBurn = true;
}
Here var declare :
Code Select
private static readonly Texture2D LockCommandIcon = ContentFinder<Texture2D>.Get("UI/Commands/Lock");
private bool StartBurn = false;
I try to IList<gizmo> i still have error in no method "BurnStart" not found in assembley
i try Lamda
Code Select
act.action = () => this.Start();
i'm geting reflection error folowed by getType errorSo my question is where i'm wrong and how right gizmo action call look like .