mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 13:12:39 +02:00
removing isLogIn
This commit is contained in:
parent
3b3b86888e
commit
671f15b63c
6 changed files with 14 additions and 16 deletions
|
@ -54,7 +54,7 @@ FocusScope {
|
|||
Image {
|
||||
z: -10
|
||||
id: loginDialogBackground
|
||||
source: "LoginDialog/images/background.jpg"
|
||||
source: "LoginDialog/images/background.png"
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
|
@ -119,6 +119,6 @@ FocusScope {
|
|||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
bodyLoader.setSource("LoginDialog/LinkAccountBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "linkSteam": false });
|
||||
bodyLoader.setSource("LoginDialog/LinkAccountBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "linkSteam": false, "linkOculus": false });
|
||||
}
|
||||
}
|
||||
|
|
|
@ -149,7 +149,7 @@ Item {
|
|||
case Qt.Key_Enter:
|
||||
case Qt.Key_Return:
|
||||
event.accepted = true;
|
||||
completeProfileBody.createAccountFromOculus(emailField.text, usernameField.text, passwordField.text);
|
||||
loginDialog.createAccountFromOculus(emailField.text, usernameField.text, passwordField.text);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ Item {
|
|||
case Qt.Key_Enter:
|
||||
case Qt.Key_Return:
|
||||
event.accepted = true;
|
||||
completeProfileBody.createAccountFromOculus(emailField.text, usernameField.text, passwordField.text);
|
||||
loginDialog.createAccountFromOculus(emailField.text, usernameField.text, passwordField.text);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -275,7 +275,7 @@ Item {
|
|||
case Qt.Key_Enter:
|
||||
case Qt.Key_Return:
|
||||
event.accepted = true;
|
||||
completeProfileBody.createAccountFromOculus(emailField.text, usernameField.text, passwordField.text);
|
||||
loginDialog.createAccountFromOculus(emailField.text, usernameField.text, passwordField.text);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -329,7 +329,7 @@ Item {
|
|||
onClicked: {
|
||||
loginErrorMessage.visible = false;
|
||||
if (completeProfileBody.withOculus) {
|
||||
loginDialog.createAccountFromOculus();
|
||||
loginDialog.createAccountFromOculus(emailField.text, usernameField.text, passwordField.text);
|
||||
} else if (completeProfileBody.withSteam) {
|
||||
loginDialog.createAccountFromSteam();
|
||||
}
|
||||
|
@ -455,7 +455,7 @@ Item {
|
|||
console.log("Create Failed: " + error);
|
||||
if (completeProfileBody.withOculus) {
|
||||
loginErrorMessage.visible = true;
|
||||
loginErrorMessage.text = error;
|
||||
loginErrorMessage.text = "Make sure email and username fields are filled out.";
|
||||
|
||||
if (loginErrorMessageTextMetrics.width > root.bannerWidth && root.isTablet) {
|
||||
loginErrorMessage.wrapMode = Text.WordWrap;
|
||||
|
@ -466,10 +466,10 @@ Item {
|
|||
loginErrorMessage.wrapMode = Text.NoWrap;
|
||||
errorContainer.height = loginErrorMessageTextMetrics.height;
|
||||
}
|
||||
} else {
|
||||
bodyLoader.setSource("UsernameCollisionBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": completeProfileBody.withSteam,
|
||||
"withOculus": completeProfileBody.withOculus });
|
||||
}
|
||||
|
||||
bodyLoader.setSource("UsernameCollisionBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": completeProfileBody.withSteam,
|
||||
"withOculus": completeProfileBody.withOculus });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -75,7 +75,6 @@ Item {
|
|||
|
||||
function init() {
|
||||
// going to/from sign in/up dialog.
|
||||
loginDialog.isLogIn = true;
|
||||
loginErrorMessage.text = linkAccountBody.errorString;
|
||||
loginErrorMessage.visible = (linkAccountBody.errorString !== "");
|
||||
if (loginErrorMessageTextMetrics.width > emailField.width) {
|
||||
|
|
|
@ -71,7 +71,6 @@ Item {
|
|||
|
||||
function init() {
|
||||
// going to/from sign in/up dialog.
|
||||
loginDialog.isLogIn = false;
|
||||
emailField.placeholderText = "Email";
|
||||
emailField.text = "";
|
||||
emailField.anchors.top = usernameField.bottom;
|
||||
|
|
|
@ -55,7 +55,7 @@ FocusScope {
|
|||
Image {
|
||||
z: -10
|
||||
id: loginDialogBackground
|
||||
source: "LoginDialog/images/background.jpg"
|
||||
source: "LoginDialog/images/background.png"
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
|
@ -149,6 +149,6 @@ FocusScope {
|
|||
|
||||
Component.onCompleted: {
|
||||
keyboardTimer.start();
|
||||
bodyLoader.setSource("LoginDialog/LinkAccountBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "linkSteam": false });
|
||||
bodyLoader.setSource("LoginDialog/LinkAccountBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "linkSteam": false, "linkOculus": false });
|
||||
}
|
||||
}
|
||||
|
|
|
@ -97,7 +97,7 @@ FocusScope {
|
|||
Image {
|
||||
z: -10
|
||||
id: loginDialogBackground
|
||||
source: "../LoginDialog/images/background_tablet.jpg"
|
||||
source: "../LoginDialog/images/background_tablet.png"
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
|
@ -177,6 +177,6 @@ FocusScope {
|
|||
|
||||
Component.onCompleted: {
|
||||
keyboardTimer.start();
|
||||
bodyLoader.setSource("../LoginDialog/UsernameCollisionBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": true, "linkSteam": false });
|
||||
bodyLoader.setSource("../LoginDialog/LinkAccountBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "linkSteam": false, "linkOculus": false });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue