mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 13:12:39 +02:00
updating artwork
This commit is contained in:
parent
22bf4fc5c4
commit
dc3381d4a9
13 changed files with 46 additions and 12 deletions
|
@ -52,7 +52,7 @@ FocusScope {
|
|||
|
||||
Image {
|
||||
id: loginDialogBackground
|
||||
source: "LoginDialog/background.png"
|
||||
source: "LoginDialog/background.jpg"
|
||||
anchors.fill: parent
|
||||
z: -2
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ Item {
|
|||
|
||||
function login() {
|
||||
loginDialog.login(emailField.text, passwordField.text);
|
||||
bodyLoader.setSource("LoggingInBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": false, "withOculus": false, "fromBody": "" });
|
||||
bodyLoader.setSource("LoggingInBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": false, "withOculus": false });
|
||||
}
|
||||
|
||||
function init() {
|
||||
|
@ -386,7 +386,7 @@ Item {
|
|||
}
|
||||
|
||||
bodyLoader.setSource("LoggingInBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader,
|
||||
"withSteam": linkAccountBody.withSteam, "withOculus": linkAccountBody.withOculus, "fromBody": "LinkAccountBody" });
|
||||
"withSteam": linkAccountBody.withSteam, "withOculus": linkAccountBody.withOculus });
|
||||
}
|
||||
Component.onCompleted: {
|
||||
if (linkAccountBody.linkSteam) {
|
||||
|
@ -402,7 +402,6 @@ Item {
|
|||
} else {
|
||||
continueButton.visible = false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -490,6 +489,10 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
onFocusChanged: {
|
||||
emailField.focus = focus;
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
//but rise Tablet's one instead for Tablet interface
|
||||
root.keyboardEnabled = HMD.active;
|
||||
|
|
|
@ -26,7 +26,6 @@ Item {
|
|||
property bool fontBold: true
|
||||
property bool withSteam: withSteam
|
||||
property bool withOculus: withOculus
|
||||
property string fromBody: fromBody
|
||||
|
||||
QtObject {
|
||||
id: d
|
||||
|
|
|
@ -67,7 +67,7 @@ Item {
|
|||
function login() {
|
||||
loginDialog.signup(emailField.text, usernameField.text, passwordField.text);
|
||||
return;
|
||||
bodyLoader.setSource("LoggingInBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": false, "withOculus": false, "fromBody": "" });
|
||||
bodyLoader.setSource("LoggingInBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": false, "withOculus": false });
|
||||
}
|
||||
|
||||
function init() {
|
||||
|
@ -433,7 +433,7 @@ Item {
|
|||
console.log("Sign Up Completed");
|
||||
|
||||
loginDialog.login(usernameField.text, passwordField.text);
|
||||
bodyLoader.setSource("LoggingInBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": false, "fromBody": "" });
|
||||
bodyLoader.setSource("LoggingInBody.qml", { "loginDialog": loginDialog, "root": root, "bodyLoader": bodyLoader, "withSteam": false });
|
||||
}
|
||||
onHandleSignupFailed: {
|
||||
console.log("Sign Up Failed")
|
||||
|
|
BIN
interface/resources/qml/LoginDialog/background.jpg
Normal file
BIN
interface/resources/qml/LoginDialog/background.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 315 KiB |
Binary file not shown.
Before Width: | Height: | Size: 22 KiB |
|
@ -52,7 +52,7 @@ FocusScope {
|
|||
|
||||
Image {
|
||||
id: loginDialogBackground
|
||||
source: "LoginDialog/background.png"
|
||||
source: "LoginDialog/background.jpg"
|
||||
anchors.fill: parent
|
||||
z: -2
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ FocusScope {
|
|||
|
||||
Image {
|
||||
id: loginDialogBackground
|
||||
source: "../LoginDialog/background.png"
|
||||
source: "../LoginDialog/background.jpg"
|
||||
anchors.fill: parent
|
||||
z: -2
|
||||
}
|
||||
|
|
|
@ -8178,9 +8178,9 @@ void Application::loadDomainConnectionDialog() {
|
|||
}
|
||||
|
||||
void Application::toggleLogDialog() {
|
||||
if (getLoginDialogPoppedUp()) {
|
||||
return;
|
||||
}
|
||||
//if (getLoginDialogPoppedUp()) {
|
||||
// return;
|
||||
//}
|
||||
if (! _logDialog) {
|
||||
_logDialog = new LogDialog(nullptr, getLogger());
|
||||
}
|
||||
|
@ -8749,6 +8749,8 @@ void Application::createLoginDialogOverlay() {
|
|||
overlays.editOverlay(keyboard->getAnchorID(), properties);
|
||||
keyboard->setResetKeyboardPositionOnRaise(false);
|
||||
}
|
||||
auto loginDialogOverlay = std::dynamic_pointer_cast<Web3DOverlay>(getOverlays().getOverlay(_loginDialogOverlayID));
|
||||
loginDialogOverlay->setActiveFocus(true);
|
||||
getApplicationCompositor().getReticleInterface()->setAllowMouseCapture(false);
|
||||
getApplicationCompositor().getReticleInterface()->setVisible(false);
|
||||
if (!_loginStateManager.isSetUp()) {
|
||||
|
|
|
@ -121,6 +121,25 @@ void LoginDialog::login(const QString& username, const QString& password) const
|
|||
DependencyManager::get<AccountManager>()->requestAccessToken(username, password);
|
||||
}
|
||||
|
||||
void LoginDialog::loginThroughOculus() {
|
||||
qDebug() << "Attempting to login through Oculus";
|
||||
if (auto steamClient = PluginManager::getInstance()->getSteamClientPlugin()) {
|
||||
steamClient->requestTicket([this](Ticket ticket) {
|
||||
if (ticket.isNull()) {
|
||||
emit handleLoginFailed();
|
||||
return;
|
||||
}
|
||||
|
||||
DependencyManager::get<AccountManager>()->requestAccessTokenWithSteam(ticket);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
void LoginDialog::linkOculus() {
|
||||
qDebug() << "Attempting to link Oculus account";
|
||||
|
||||
}
|
||||
|
||||
void LoginDialog::loginThroughSteam() {
|
||||
qDebug() << "Attempting to login through Steam";
|
||||
if (auto steamClient = PluginManager::getInstance()->getSteamClientPlugin()) {
|
||||
|
|
|
@ -65,6 +65,8 @@ protected slots:
|
|||
Q_INVOKABLE bool isOculusStoreRunning() const;
|
||||
|
||||
Q_INVOKABLE void login(const QString& username, const QString& password) const;
|
||||
Q_INVOKABLE void loginThroughOculus();
|
||||
Q_INVOKABLE void linkOculus();
|
||||
Q_INVOKABLE void loginThroughSteam();
|
||||
Q_INVOKABLE void linkSteam();
|
||||
Q_INVOKABLE void createAccountFromSteam(QString username = QString());
|
||||
|
|
|
@ -473,6 +473,14 @@ void Web3DOverlay::handlePointerEventAsMouse(const PointerEvent& event) {
|
|||
QCoreApplication::sendEvent(_webSurface->getWindow(), &mouseEvent);
|
||||
}
|
||||
|
||||
void Web3DOverlay::setActiveFocus(bool focus) {
|
||||
if (_webSurface && focus) {
|
||||
if (focus) {
|
||||
_webSurface->getRootItem()->forceActiveFocus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Web3DOverlay::setProperties(const QVariantMap& properties) {
|
||||
Billboard3DOverlay::setProperties(properties);
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@ public:
|
|||
Q_INVOKABLE void handlePointerEvent(const PointerEvent& event);
|
||||
void handlePointerEventAsTouch(const PointerEvent& event);
|
||||
void handlePointerEventAsMouse(const PointerEvent& event);
|
||||
void setActiveFocus(bool focus);
|
||||
|
||||
// setters
|
||||
void setURL(const QString& url);
|
||||
|
|
Loading…
Reference in a new issue