public void SetMode(UICASMode mode) { if (mode == UICASMode.ToNeighborhood) { //todo: animate into this CleanupLastWorld(); Dead = true; GameController.EnterGameMode("", false); } else if (mode == UICASMode.FamilyEdit) { FamilyPanel.Reset(); } GameFacade.Screens.Tween.To(this, 1f, new Dictionary <string, float> { { "FamilySimInterp", (int)mode - 1 } }, TweenQuad.EaseInOut); Mode = mode; }
public void SetMode(UICASMode mode) { if (mode == UICASMode.ToNeighborhood) { //todo: animate into this Dead = true; var dialog = new UITransDialog("normal", () => { CleanupLastWorld(); if (MoveInFamily == null) { GameController.EnterGameMode("", false); } else { GameController.EnterGameMode("!" + ((NeighTypeFrom == 7)?'m':'n') + MoveInFamily.Value.ToString(), false); } }); return; } else if (mode == UICASMode.FamilyEdit) { FamilyPanel.Reset(); } FamiliesPanel.SetSelection(-1); if (mode == UICASMode.FamilySelect) { AcceptButton.Texture = Content.Get().CustomUI.Get("btn_movein.png").Get(GameFacade.GraphicsDevice); } else { AcceptButton.Texture = Content.Get().CustomUI.Get("btn_accept.png").Get(GameFacade.GraphicsDevice); } GameFacade.Screens.Tween.To(this, 1f, new Dictionary <string, float> { { "FamilySimInterp", (int)mode - 1 } }, TweenQuad.EaseInOut); Mode = mode; }