Exemplo n.º 1
0
        public void OnCreateRoomClick()
        {
            //lobbyManager.CreateRoom("ABC");
            InputDialog.InputDialogBuilder builder = new InputDialog.InputDialogBuilder();
            builder.SetTitle("방 정보를 입력해주세요.")
            .SetInputField("방 이름을 입력해주세요.", "roomName", false)
            .SetInputField("방 인원을 입력해주세요.(최소 2 최대 5)", "maxNum", false, InputType.NUMBER)
            .SetBtn("방 생성", CreateRoom)
            .SetBtn("취소");

            builder.Build().Show();
        }
Exemplo n.º 2
0
        private void OnClickMakeAccount()
        {
            InputDialog.InputDialogBuilder builder = new InputDialog.InputDialogBuilder();

            builder
            .SetTitle("회원가입")
            .SetInputField("아이디를 입력", "id")
            .SetInputField("비밀번호를 입력", "pswd", true)
            .SetBtn("제출", OnClickMakeAccountSubmit, false)
            .SetBtn("취소", null, true)
            .Build()
            .Show();
        }
Exemplo n.º 3
0
    // Start is called before the first frame update
    void Start()
    {
        //AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder();
        //builder.SetTitle("테스트용")
        //    .SetMessage("테스트으으").SetBtn("확인",delegate { Debug.Log("확인"); }).SetBtn("취소",delegate { Debug.Log("취소"); });

        //AlertDialog dlg = builder.Build();
        //dlg.Show();
        InputDialog.InputDialogBuilder builder = new InputDialog.InputDialogBuilder();
        builder.SetTitle("테스트").SetInputField("제시어를 입력1", "1").SetInputField("제시어를 입력2", "1")
        .SetInputField("제시어를 입력3", "2").SetBtn("제출", aa);
        InputDialog dlg = builder.Build();

        dlg.Show();
    }
Exemplo n.º 4
0
        private void Start()
        {
            db = DatabaseConnecter.GetInstance();

            InputDialog.InputDialogBuilder builder = new InputDialog.InputDialogBuilder();

            loginDialog = builder
                          .SetTitle("로그인")
                          .SetInputField("아이디를 입력", "id")
                          .SetInputField("비밀번호를 입력", "pswd", true)
                          .SetBtn("제출", OnClickLogin, false)
                          .SetBtn("회원가입", OnClickMakeAccountSubmit, false)
                          .Build();
            loginDialog.Show();
        }