public void UnlockScreen(EmailOccupiedEvent e, Node any, [JoinAll] LockedChangeEmailDialog screen, [JoinByScreen] EmailInputNode emailInput)
 {
     if (screen.Entity.HasComponent <LockedScreenComponent>())
     {
         screen.Entity.RemoveComponent <LockedScreenComponent>();
     }
     emailInput.esm.Esm.ChangeState <InputFieldStates.InvalidState>();
 }
 public void RequestChangeEmail(ButtonClickEvent e, SingleNode <ChangeUserEmailButtonComponent> button, [JoinByScreen] EmailInputNode emailInput, [JoinAll] SingleNode <SelfUserComponent> selfUser, [JoinAll] SingleNode <ForceEnterEmailDialogComponent> dialog)
 {
     base.ScheduleEvent(new RequestChangeUserEmailEvent(emailInput.inputField.Input), selfUser);
     if (!dialog.Entity.HasComponent <LockedScreenComponent>())
     {
         dialog.Entity.AddComponent <LockedScreenComponent>();
     }
 }