public override bool Test(Sim actor, Tablet target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { if ((actor.GetObjectInRightHand() != target) && !actor.Inventory.Contains(target)) { return(false); } else if (actor.BuffManager.HasElement(0x9a7f5f1919df86c1L)) { return(false); } InteractionInstanceParameters parameters = new InteractionInstanceParameters(); List <ObjectPicker.TabInfo> list; List <ObjectPicker.HeaderInfo> list2; int num; // Custom TabletEx.PopulateAudioPrograms(actor, ref parameters, out list, out list2, out num); if (list.Count == 0x0) { return(false); } return(true); }
public override void PopulatePieMenuPicker(ref InteractionInstanceParameters parameters, out List <ObjectPicker.TabInfo> listObjs, out List <ObjectPicker.HeaderInfo> headers, out int NumSelectableRows) { // Custom TabletEx.PopulateAudioPrograms(parameters.Actor as Sim, ref parameters, out listObjs, out headers, out NumSelectableRows); }