Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 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{
     }
 }
Example #4
0
        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);
        }
Example #5
0
        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);
        }
Example #6
0
        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);
        }
Example #7
0
        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);
                        }
                    }
                }
            }
        }
Example #8
0
 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);
 }
Example #9
0
 protected virtual void OnPerform(Sims3.Gameplay.EventSystem.Event e)
 {
 }
Example #10
0
 protected abstract Sims3.Gameplay.EventSystem.ListenerAction OnProcess(Sims3.Gameplay.EventSystem.Event e);
Example #11
0
 protected DelayTask(Sims3.Gameplay.EventSystem.Event e, Func func)
 {
     mEvent = e;
     mFunc  = func;
 }
Example #12
0
 protected override Sims3.Gameplay.EventSystem.ListenerAction OnProcess(Sims3.Gameplay.EventSystem.Event e)
 {
     DelayTask.Perform(e, mFunc);
     return(Sims3.Gameplay.EventSystem.ListenerAction.Keep);
 }