private static Sims3.Gameplay.EventSystem.ListenerAction OnAddoptChild(Sims3.Gameplay.EventSystem.Event ev) { string messtr = ""; foreach (byte b in messageBuffer) { messtr += b.ToString() + ","; } SimpleMessageDialogCustom.ShowDialog("Title", messtr, Sims3.UI.ModalDialog.PauseMode.NoPause); return(Sims3.Gameplay.EventSystem.ListenerAction.Keep); }
private static Sims3.Gameplay.EventSystem.ListenerAction OnCalledSims(Sims3.Gameplay.EventSystem.Event ev) { Sims3.SimIFace.Resolution res = new Sims3.SimIFace.Resolution(); res.mHeight = 800; res.mWidth = 600; res.mRefresh = 144; Sims3.UI.UIManager.AcceptResolutionChange(); Sims3.UI.UIManager.ChangeResolution(res, true); Sims3.UI.UIManager.AcceptResolutionChange(); return(Sims3.Gameplay.EventSystem.ListenerAction.Keep); }
public static void Perform(Sims3.Gameplay.EventSystem.Event e, Func func) { try{ new DelayTask(e, func).AddToSimulator(); }catch (Exception exception) { Alive.WriteLog(exception.Message + "\n\n" + exception.StackTrace + "\n\n" + exception.Source + "\n\n" + "new DelayTask(e,func).AddToSimulator();"); }finally{ } }
protected static ListenerAction OnObjectBought(Sims3.Gameplay.EventSystem.Event e) { if (e.Id == EventTypeId.kBoughtObject) { ChairLounge chair = e.TargetObject as ChairLounge; if (chair != null) { AddInteractions(chair); } } return(ListenerAction.Keep); }
protected static ListenerAction OnObjectBought(Sims3.Gameplay.EventSystem.Event e) { if (e.Id == EventTypeId.kBoughtObject) { Sims3.Gameplay.Objects.Decorations.Mimics.SculpturePlantFiccas obj = e.TargetObject as Sims3.Gameplay.Objects.Decorations.Mimics.SculpturePlantFiccas; if (obj != null) { AddInteractions(obj); } } return(ListenerAction.Keep); }
protected static ListenerAction OnObjectBought(Sims3.Gameplay.EventSystem.Event e) { if (e.Id == EventTypeId.kBoughtObject) { Sims3.Gameplay.Objects.Electronics.Computer obj = e.TargetObject as Sims3.Gameplay.Objects.Electronics.Computer; if (obj != null) { AddInteractions(obj); } } return(ListenerAction.Keep); }
protected static void OnLeftJob(Sims3.Gameplay.EventSystem.Event e) { LeftJobEvent leftJob = e as LeftJobEvent; if (leftJob != null) { School school = leftJob.Career as School; if (school != null) { if ((school.OwnerDescription != null) && (school.OwnerDescription.CareerManager != null)) { if (!school.OwnerDescription.CareerManager.QuitCareers.ContainsKey(school.Guid)) { school.OwnerDescription.CareerManager.QuitCareers.Add(school.Guid, school); } } } } }
private static Sims3.Gameplay.EventSystem.ListenerAction OnWatchedTv(Sims3.Gameplay.EventSystem.Event ev) { SimpleMessageDialog.Show("QueueChanged", "Watched tv event system"); return(Sims3.Gameplay.EventSystem.ListenerAction.Keep); }
protected virtual void OnPerform(Sims3.Gameplay.EventSystem.Event e) { }
protected abstract Sims3.Gameplay.EventSystem.ListenerAction OnProcess(Sims3.Gameplay.EventSystem.Event e);
protected DelayTask(Sims3.Gameplay.EventSystem.Event e, Func func) { mEvent = e; mFunc = func; }
protected override Sims3.Gameplay.EventSystem.ListenerAction OnProcess(Sims3.Gameplay.EventSystem.Event e) { DelayTask.Perform(e, mFunc); return(Sims3.Gameplay.EventSystem.ListenerAction.Keep); }