public override bool Run() { bool result = true; Actor.OverlayComponent.UpdateInteractionFreeParts(AwarenessLevel.OverlayNone); Actor.LookAtManager.DisableLookAts(); for (int i = 0; i < shots; i++) { if (Actor.HasExitReason(ExitReason.UserCanceled)) { result = false; break; } PoseData poseData = GetRandomPose(); if (poseData == null) { result = false; break; } PoseManager.SetCurrentPose(Actor, poseData.Key); Target.PlaySoloAnimation(this.Actor.SimDescription.IsHuman, this.Actor, poseData.Key, true, ProductVersion.BaseGame); Actor.ResetAllAnimation(); Target.PlaySoloAnimation(this.Actor.SimDescription.IsHuman, this.Actor, poseData.Key, true, ProductVersion.BaseGame); Actor.ResetAllAnimation(); bool userCanceled = Actor.WaitForExitReason(simMinutesToPose, ExitReason.UserCanceled); if (userCanceled) { result = false; break; } } Actor.LookAtManager.EnableLookAts(); return(result); }
public override bool Test(Sim actor, Sim target, bool isAutonomous, ref Sims3.SimIFace.GreyedOutTooltipCallback greyedOutTooltipCallback) { if (!PoseManager.IsPoseBoxAvailable()) { return(false); } Sim poser = PoseManager.LastPoser; if (poser == null) { return(false); } if (PoseManager.LastPoser == target) { return(false); } string poseData = PoseManager.GetCurrentPose(poser); if (poseData == null) { return(false); } return(true); }
public override bool Run() { PoseManager.CancelAllPosingActions(Target); Target.InteractionQueue.AddNext(PoseFromMyList.Singleton.CreateInstance( PoseManager.PoseBox, Target, new InteractionPriority(InteractionPriorityLevel.UserDirected), false, true)); return(true); }
public override bool Run() { PoseManager.CancelAllPosingActions(Target); Target.InteractionQueue.AddAfterCheckingForDuplicates(QuickPose.Singleton.CreateInstance( PoseManager.PoseBox, Target, new InteractionPriority(InteractionPriorityLevel.UserDirected), false, true)); return(true); }
public override bool Run() { Sims3.Gameplay.Gameflow.SetGameSpeed(Sims3.SimIFace.Gameflow.GameSpeed.Pause, Sims3.Gameplay.Gameflow.SetGameSpeedContext.GameStates); this.Target.GetName(); Sims3.Gameplay.Gameflow.SetGameSpeed(Sims3.SimIFace.Gameflow.GameSpeed.Normal, Sims3.Gameplay.Gameflow.SetGameSpeedContext.GameStates); return(PoseManager.Pose(Actor, Target, CmoPoseBox.mName)); }
public override bool Run() { GameObject lookAtTarget = ShowObjectSelectionDialog(Actor); if (lookAtTarget == null) { return(false); } string poseData = PoseManager.GetCurrentPose(Actor); if (poseData == null) { return(false); } this.Actor.LookAtManager.EnableLookAts(); this.Actor.LookAtManager.SetLookAt(LookAtManager.Type.Interaction, lookAtTarget, 20000, LookAtJointFilter.EyeBones); this.Actor.OverlayComponent.UpdateInteractionFreeParts(AwarenessLevel.OverlayUpperbody); this.Actor.LookAtManager.DisableLookAts(); PoseManager.SetCurrentPose(Actor, poseData); Target.PlaySoloAnimation(this.Actor.SimDescription.IsHuman, this.Actor, poseData, true, ProductVersion.BaseGame); this.Actor.ResetAllAnimation(); Target.PlaySoloAnimation(this.Actor.SimDescription.IsHuman, this.Actor, poseData, true, ProductVersion.BaseGame); this.Actor.ResetAllAnimation(); this.Actor.WaitForExitReason(3.40282347E+38f, ExitReason.UserCanceled); Actor.LookAtManager.EnableLookAts(); return(true); }
public override bool Run() { PoseData poseData = PoseData.SelectPoseFromList(); if (poseData == null) { return(false); } return(PoseManager.Pose(Actor, Target, poseData.Key)); }
public override bool Run() { GameObject objectToMove = ShowObjectSelectionDialog(Target); if (objectToMove != null) { PoseManager.AddMoveInteractions(objectToMove); } return(true); }
public override bool Run() { string posename = PoseManager.GetCurrentPose(Target); if (posename != null) { CmoPoseBox.myList.Remove(posename); } else { return(false); } return(true); }
public static bool IsPoseBoxAvailable() { if (PoseBox != null && PoseBox.HasBeenDestroyed) { PoseBox = null; } if (PoseManager.PoseBox == null) { PoseManager.FindPoseBox(); } return(PoseManager.PoseBox != null); }
public override bool Run() { Sim poser = PoseManager.LastPoser; if (poser == null) { return(false); } string poseName = PoseManager.GetCurrentPose(poser); if (poseName == null) { return(false); } return(PoseManager.Pose(Actor, Target, poseName)); }
public override bool Test(Sim a, Sim target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { Boolean result = false; if (PoseManager.IsPosing(target)) { string posename = PoseManager.GetCurrentPose(target); if (posename != null) { if (CmoPoseBox.myList.Contains(posename)) { result = true; } } } return(result); }
public override bool Run() { List <ObjectListPickerInfo> Entries = ListExpressions(); string text = (string)ObjectListPickerDialog.Show("Expression", Entries); if (text != null && text != "") { ReactionTypes reaction = (ReactionTypes)Enum.Parse(typeof(ReactionTypes), text); Array reactionTypes = Enum.GetValues(typeof(ReactionTypes)); CustomOverlayData data = null; CmoPoseBox box = PoseManager.FindPoseBox(); string poseData = PoseManager.GetCurrentPose(Actor); if (poseData == null) { return(false); } Actor.LookAtManager.DisableLookAts(); PoseManager.SetCurrentPose(Actor, poseData); box.PlaySoloAnimation(Actor.SimDescription.IsHuman, Actor, poseData, true, ProductVersion.BaseGame); Actor.ResetAllAnimation(); Actor.OverlayComponent.UpdateInteractionFreeParts(AwarenessLevel.OverlayFace);//OverlayUpperbody); StateMachineClient stateMachineClient = StateMachineClient.Acquire(Actor.ObjectId, "facial_idle", AnimationPriority.kAPDefault, true); data = (CustomOverlayData)OverlayComponent.GetOverlayData(reaction, Actor); stateMachineClient.UseActorBridgeOrigins = false; stateMachineClient.SetActor("x", Actor); stateMachineClient.RemoveEventHandler(new SacsEventHandler(Actor.OverlayComponent.InteractionPartLevelCallback)); stateMachineClient.RemoveEventHandler(new SacsEventHandler(Actor.OverlayComponent.ClearInteractionPartLevelCallback)); stateMachineClient.EnterState("x", "Enter"); stateMachineClient.SetProductVersion(data.ProductVersion); stateMachineClient.RequestState("x", data.AnimClipName); //Actor.OverlayComponent.UpdateInteractionFreeParts(AwarenessLevel.OverlayFace); box.PlaySoloAnimation(Actor.SimDescription.IsHuman, Actor, poseData, true, ProductVersion.BaseGame); Actor.ResetAllAnimation(); Actor.WaitForExitReason(3.40282347E+38f, ExitReason.UserCanceled); Actor.LookAtManager.EnableLookAts(); return(true); } return(false); }
public override bool Run() { bool result = true; Actor.OverlayComponent.UpdateInteractionFreeParts(AwarenessLevel.OverlayNone); Actor.LookAtManager.DisableLookAts(); // Clone the list to prevent need for synchronization List <string> poseList = new List <string>(CmoPoseBox.myList); foreach (string poseName in poseList) { if (Actor.HasExitReason(ExitReason.UserCanceled)) { result = false; break; } if (poseName == null) { result = false; break; } PoseManager.SetCurrentPose(Actor, poseName); Target.PlaySoloAnimation(this.Actor.SimDescription.IsHuman, this.Actor, poseName, true, ProductVersion.BaseGame); Actor.ResetAllAnimation(); Target.PlaySoloAnimation(this.Actor.SimDescription.IsHuman, this.Actor, poseName, true, ProductVersion.BaseGame); Actor.ResetAllAnimation(); bool userCanceled = Actor.WaitForExitReason(simMinutesToPose, ExitReason.UserCanceled); if (userCanceled) { result = false; break; } } Actor.LookAtManager.EnableLookAts(); return(result); }
public override bool Test(Sim actor, Sim target, bool isAutonomous, ref Sims3.SimIFace.GreyedOutTooltipCallback greyedOutTooltipCallback) { return(PoseManager.IsPosing(target) && !isAutonomous); }
public override bool Test(Sim actor, Sim target, bool isAutonomous, ref Sims3.SimIFace.GreyedOutTooltipCallback greyedOutTooltipCallback) { return(PoseData.HasPoseData && !isAutonomous && PoseManager.IsPoseBoxAvailable()); }
public override bool Run() { PoseManager.RestoreAllMovedObjects(); return(true); }
public override bool Run() { PoseManager.RemoveMoveInteractions(Target, false); return(true); }
public override string[] GetPath(bool isFemale) { return(PoseManager.GetPoseMenuPath()); }
public override bool Run() { PoseManager.ReleaseAllPosers(); return(true); }
public override bool Run() { PoseManager.CancelAllPosingActions(Target); return(true); }
public override bool Test(Sim actor, CmoPoseBox target, bool isAutonomous, ref Sims3.SimIFace.GreyedOutTooltipCallback greyedOutTooltipCallback) { return((CmoPoseBox.myList.Count > 0) && PoseManager.IsPoseBoxAvailable()); }
public override bool Run() { this.Target.ShowDialog(); this.Target.MyListShow(); return(PoseManager.Pose(Actor, Target, CmoPoseBox.mName)); }
public override bool Test(Sim a, Sim target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { return(PoseManager.IsPosing(target) && !isAutonomous && PoseManager.IsPoseBoxAvailable()); }