mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 11:53:28 +02:00
more fixing of logging in
This commit is contained in:
parent
2a37ed21b2
commit
e53e8435eb
1 changed files with 10 additions and 18 deletions
|
@ -17,8 +17,10 @@ import controlsUit 1.0 as HifiControlsUit
|
|||
import stylesUit 1.0 as HifiStylesUit
|
||||
|
||||
Item {
|
||||
|
||||
id: loggingInBody
|
||||
clip: true
|
||||
height: root.height
|
||||
width: root.width
|
||||
property int textFieldHeight: 31
|
||||
property int loggingInGlyphRightMargin: 10
|
||||
property string fontFamily: "Raleway"
|
||||
|
@ -70,28 +72,22 @@ Item {
|
|||
loggingInText.wrapMode = Text.NoWrap;
|
||||
|
||||
if (loggingInBody.linkSteam) {
|
||||
loggingInGlyph.visible = true;
|
||||
loggingInText.text = "Linking to Steam";
|
||||
loggingInText.left = loggingInHeader.left;
|
||||
loggingInText.leftMargin = (loggingInHeader.width - loggingInTextMetrics.width) / 2;
|
||||
loggingInText.x = loggingInHeader.width/2 - loggingInTextMetrics.width/2 + loggingInGlyphTextMetrics.width/2;
|
||||
loginDialog.linkSteam();
|
||||
} else if (loggingInBody.withSteam) {
|
||||
loggingInGlyph.visible = true;
|
||||
loggingInText.text = "Logging in to Steam";
|
||||
loggingInText.left = loggingInHeader.left;
|
||||
loggingInText.leftMargin = 0;
|
||||
loggingInText.x = loggingInHeader.width/2 - loggingInTextMetrics.width/2 + loggingInGlyphTextMetrics.width/2;
|
||||
} else if (loggingInBody.withOculus) {
|
||||
loggingInGlyph.text = hifi.glyphs.oculus;
|
||||
loggingInGlyph.visible = true;
|
||||
loggingInText.text = "Logging in to Oculus";
|
||||
loggingInText.left = loggingInHeader.left;
|
||||
loggingInText.leftMargin = 0;
|
||||
loggingInText.x = loggingInHeader.width/2 - loggingInTextMetrics.width/2 + loggingInGlyphTextMetrics.width/2;
|
||||
} else {
|
||||
loggingInText.centerIn = loggingInHeader;
|
||||
loggingInText.text = "Logging in";
|
||||
loggingInText.anchors.bottom = loggingInHeader.bottom;
|
||||
loggingInText.anchors.bottomMargin = hifi.dimensions.contentSpacing.y;
|
||||
loggingInText.anchors.centerIn = loggingInHeader;
|
||||
}
|
||||
loggingInSpinner.visible = true;
|
||||
}
|
||||
|
@ -106,17 +102,15 @@ Item {
|
|||
// reset the flag.
|
||||
loggingInGlyph.visible = false;
|
||||
loggingInText.text = "You are now logged into Steam!";
|
||||
loggingInText.left = loggingInHeader.left;
|
||||
loggingInText.leftMargin = (loggingInHeader.width - loggingInTextMetrics.width) / 2;
|
||||
loggingInText.x = 0;
|
||||
loggingInText.anchors.centerIn = loggingInHeader;
|
||||
loggedInGlyph.visible = true;
|
||||
} else if (loggingInBody.withOculus) {
|
||||
// reset the flag.
|
||||
loggingInGlyph.visible = false;
|
||||
loggingInText.text = "You are now logged into Oculus!";
|
||||
loggingInText.left = loggingInHeader.left;
|
||||
loggingInText.leftMargin = (loggingInHeader.width - loggingInTextMetrics.width) / 2;
|
||||
loggingInText.x = 0;
|
||||
loggingInText.anchors.centerIn = loggingInHeader;
|
||||
loggedInGlyph.text = hifi.glyphs.oculus;
|
||||
loggedInGlyph.visible = true;
|
||||
} else {
|
||||
|
@ -127,14 +121,12 @@ Item {
|
|||
|
||||
Item {
|
||||
id: mainContainer
|
||||
width: root.width
|
||||
height: root.height
|
||||
anchors.fill: parent
|
||||
onHeightChanged: d.resize(); onWidthChanged: d.resize();
|
||||
|
||||
Item {
|
||||
id: loggingInContainer
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
anchors.fill: parent
|
||||
onHeightChanged: d.resize(); onWidthChanged: d.resize();
|
||||
|
||||
Item {
|
||||
|
|
Loading…
Reference in a new issue