mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 14:29:13 +02:00
more wip
This commit is contained in:
parent
43b269b612
commit
03c39eb92f
7 changed files with 24 additions and 17 deletions
|
@ -17,16 +17,16 @@ import "windows" as Windows
|
||||||
|
|
||||||
import "LoginDialog"
|
import "LoginDialog"
|
||||||
|
|
||||||
Windows.ModalWindow {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
HifiStylesUit.HifiConstants { id: hifi }
|
HifiStylesUit.HifiConstants { id: hifi }
|
||||||
objectName: "LoginDialog"
|
objectName: "LoginDialog"
|
||||||
implicitWidth: 520
|
// implicitWidth: 520
|
||||||
implicitHeight: 320
|
// implicitHeight: 320
|
||||||
destroyOnCloseButton: true
|
// destroyOnCloseButton: true
|
||||||
destroyOnHidden: true
|
// destroyOnHidden: true
|
||||||
visible: true
|
visible: true
|
||||||
frame: Item {}
|
// frame: Item {}
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@ import TabletScriptingInterface 1.0
|
||||||
Item {
|
Item {
|
||||||
id: linkAccountBody
|
id: linkAccountBody
|
||||||
clip: true
|
clip: true
|
||||||
height: root.pane.height
|
height: root.height
|
||||||
width: root.pane.width
|
width: root.width
|
||||||
property bool failAfterSignUp: false
|
property bool failAfterSignUp: false
|
||||||
property string fontFamily: "Cairo"
|
property string fontFamily: "Cairo"
|
||||||
property int fontSize: 24
|
property int fontSize: 24
|
||||||
|
@ -54,10 +54,10 @@ Item {
|
||||||
|
|
||||||
var newWidth = Math.max(d.minWidth, Math.min(d.maxWidth, targetWidth));
|
var newWidth = Math.max(d.minWidth, Math.min(d.maxWidth, targetWidth));
|
||||||
if (!isNaN(newWidth)) {
|
if (!isNaN(newWidth)) {
|
||||||
parent.width = root.pane.width = newWidth;
|
parent.width = root.width = newWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
parent.height = root.pane.height = Math.max(d.minHeight, Math.min(d.maxHeight, targetHeight))
|
parent.height = root.height = Math.max(d.minHeight, Math.min(d.maxHeight, targetHeight))
|
||||||
+ (keyboardEnabled && keyboardRaised ? (200 + 2 * hifi.dimensions.contentSpacing.y) : hifi.dimensions.contentSpacing.y);
|
+ (keyboardEnabled && keyboardRaised ? (200 + 2 * hifi.dimensions.contentSpacing.y) : hifi.dimensions.contentSpacing.y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,8 +76,8 @@ Item {
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: topContainer
|
id: topContainer
|
||||||
width: root.pane.width
|
width: root.width
|
||||||
height: 0.6 * root.pane.height
|
height: 0.6 * root.height
|
||||||
onHeightChanged: d.resize(); onWidthChanged: d.resize();
|
onHeightChanged: d.resize(); onWidthChanged: d.resize();
|
||||||
anchors {
|
anchors {
|
||||||
top: parent.top
|
top: parent.top
|
||||||
|
@ -158,8 +158,8 @@ Item {
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
id: bottomContainer
|
id: bottomContainer
|
||||||
width: root.pane.width
|
width: root.width
|
||||||
height: 0.4 * root.pane.height
|
height: 0.4 * root.height
|
||||||
onHeightChanged: d.resize(); onWidthChanged: d.resize();
|
onHeightChanged: d.resize(); onWidthChanged: d.resize();
|
||||||
anchors {
|
anchors {
|
||||||
top: topContainer.bottom
|
top: topContainer.bottom
|
||||||
|
|
|
@ -370,7 +370,6 @@ Item {
|
||||||
}
|
}
|
||||||
d.resize();
|
d.resize();
|
||||||
init(loginDialog.isLogIn);
|
init(loginDialog.isLogIn);
|
||||||
print(signInBody.errorString);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Keys.onPressed: {
|
Keys.onPressed: {
|
||||||
|
|
|
@ -21,7 +21,10 @@ FocusScope {
|
||||||
id: root
|
id: root
|
||||||
objectName: "LoginDialog"
|
objectName: "LoginDialog"
|
||||||
visible: true
|
visible: true
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
width: parent.width
|
||||||
|
height: parent.height
|
||||||
|
|
||||||
signal sendToScript(var message);
|
signal sendToScript(var message);
|
||||||
property bool isHMD: false
|
property bool isHMD: false
|
||||||
|
@ -69,8 +72,10 @@ FocusScope {
|
||||||
LoginDialog {
|
LoginDialog {
|
||||||
id: loginDialog
|
id: loginDialog
|
||||||
|
|
||||||
|
anchors.fill: parent
|
||||||
Loader {
|
Loader {
|
||||||
id: bodyLoader
|
id: bodyLoader
|
||||||
|
anchors.fill: parent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ import QtQuick 2.5
|
||||||
import QtQuick.Controls 2.2
|
import QtQuick.Controls 2.2
|
||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
|
|
||||||
import "."
|
import "." as Windows
|
||||||
import "../styles-uit"
|
import "../styles-uit"
|
||||||
import "../controls-uit" as HiFiControls
|
import "../controls-uit" as HiFiControls
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ import "../controls-uit" as HiFiControls
|
||||||
// of the desktop? How do I ensure when the desktop resizes all the windows
|
// of the desktop? How do I ensure when the desktop resizes all the windows
|
||||||
// are still at least partially visible?
|
// are still at least partially visible?
|
||||||
|
|
||||||
Window {
|
Windows.Window {
|
||||||
id: window
|
id: window
|
||||||
HifiConstants { id: hifi }
|
HifiConstants { id: hifi }
|
||||||
children: [ swallower, frame, defocuser, pane, activator ]
|
children: [ swallower, frame, defocuser, pane, activator ]
|
||||||
|
|
|
@ -5196,6 +5196,7 @@ void Application::pauseUntilLoginDetermined() {
|
||||||
const auto& nodeList = DependencyManager::get<NodeList>();
|
const auto& nodeList = DependencyManager::get<NodeList>();
|
||||||
// disconnect domain handler.
|
// disconnect domain handler.
|
||||||
nodeList->getDomainHandler().disconnect();
|
nodeList->getDomainHandler().disconnect();
|
||||||
|
Menu::getInstance()->setIsOptionChecked(MenuOption::Stats, false);
|
||||||
Menu::getInstance()->setVisible(false);
|
Menu::getInstance()->setVisible(false);
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
@ -229,6 +229,8 @@ void Web3DOverlay::setupQmlSurface(bool isTablet) {
|
||||||
_webSurface->getSurfaceContext()->setContextProperty("MyAvatar", DependencyManager::get<AvatarManager>()->getMyAvatar().get());
|
_webSurface->getSurfaceContext()->setContextProperty("MyAvatar", DependencyManager::get<AvatarManager>()->getMyAvatar().get());
|
||||||
_webSurface->getSurfaceContext()->setContextProperty("Entities", DependencyManager::get<EntityScriptingInterface>().data());
|
_webSurface->getSurfaceContext()->setContextProperty("Entities", DependencyManager::get<EntityScriptingInterface>().data());
|
||||||
_webSurface->getSurfaceContext()->setContextProperty("Snapshot", DependencyManager::get<Snapshot>().data());
|
_webSurface->getSurfaceContext()->setContextProperty("Snapshot", DependencyManager::get<Snapshot>().data());
|
||||||
|
//_webSurface->getSurfaceContext()->setContextProperty("Settings", SettingsScriptingInterface::getInstance());
|
||||||
|
//_webSurface->getSurfaceContext()->setContextProperty("Window", DependencyManager::get<WindowScriptingInterface>().data());
|
||||||
|
|
||||||
if (isTablet) {
|
if (isTablet) {
|
||||||
auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
|
auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
|
||||||
|
|
Loading…
Reference in a new issue