mirror of
https://github.com/overte-org/overte.git
synced 2025-06-22 23:01:41 +02:00
Merge branch 'loginInitiative2' of https://github.com/wayne-chen/hifi into loginInitiative2
This commit is contained in:
commit
f11c60d9ff
6 changed files with 11 additions and 11 deletions
|
@ -39,8 +39,8 @@ Item {
|
|||
property int maxHeight: root.height
|
||||
|
||||
function resize() {
|
||||
maxWidth = root.isTablet ? 1280 : root.width;
|
||||
maxHeight = root.isTablet ? 720 : root.height;
|
||||
maxWidth = root.width;
|
||||
maxHeight = root.height;
|
||||
if (root.isTablet === false) {
|
||||
var targetWidth = Math.max(Math.max(titleWidth, Math.max(additionalTextContainer.contentWidth,
|
||||
termsContainer.contentWidth)), mainContainer.width)
|
||||
|
|
|
@ -51,8 +51,8 @@ Item {
|
|||
property int maxHeight: root.height
|
||||
|
||||
function resize() {
|
||||
maxWidth = root.isTablet ? 1280 : root.width;
|
||||
maxHeight = root.isTablet ? 720 : root.height;
|
||||
maxWidth = root.width;
|
||||
maxHeight = root.height;
|
||||
var targetWidth = Math.max(titleWidth, mainContainer.width);
|
||||
var targetHeight = hifi.dimensions.contentSpacing.y + mainContainer.height + 4 * hifi.dimensions.contentSpacing.y;
|
||||
|
||||
|
|
|
@ -38,8 +38,8 @@ Item {
|
|||
property int maxHeight: root.height
|
||||
|
||||
function resize() {
|
||||
maxWidth = root.isTablet ? 1280 : root.width;
|
||||
maxHeight = root.isTablet ? 720 : root.height;
|
||||
maxWidth = root.width;
|
||||
maxHeight = root.height;
|
||||
var targetWidth = Math.max(titleWidth, mainContainer.width);
|
||||
var targetHeight = hifi.dimensions.contentSpacing.y + mainContainer.height +
|
||||
4 * hifi.dimensions.contentSpacing.y;
|
||||
|
|
|
@ -49,8 +49,8 @@ Item {
|
|||
property int maxHeight: root.height
|
||||
|
||||
function resize() {
|
||||
maxWidth = root.isTablet ? 1280 : root.width;
|
||||
maxHeight = root.isTablet ? 720 : root.height;
|
||||
maxWidth = root.width;
|
||||
maxHeight = root.height;
|
||||
var targetWidth = Math.max(titleWidth, mainContainer.width);
|
||||
var targetHeight = hifi.dimensions.contentSpacing.y + mainContainer.height +
|
||||
4 * hifi.dimensions.contentSpacing.y;
|
||||
|
|
|
@ -49,8 +49,8 @@ Item {
|
|||
property int maxHeight: root.height
|
||||
|
||||
function resize() {
|
||||
maxWidth = root.isTablet ? 1280 : root.width;
|
||||
maxHeight = root.isTablet ? 720 : root.height;
|
||||
maxWidth = root.width;
|
||||
maxHeight = root.height;
|
||||
var targetWidth = Math.max(titleWidth, mainContainer.width);
|
||||
var targetHeight = mainTextContainer.height +
|
||||
hifi.dimensions.contentSpacing.y + textField.height +
|
||||
|
|
|
@ -8645,7 +8645,7 @@ void Application::updateLoginDialogOverlayPosition() {
|
|||
auto newOverlayPositionVec = (cameraPositionVec + offset) + (upVec * -0.1f);
|
||||
auto newOverlayOrientation = glm::inverse(glm::quat_cast(glm::lookAt(newOverlayPositionVec, cameraPositionVec, upVec))) * Quaternions::Y_180;
|
||||
|
||||
bool overlayOutOfBounds = glm::distance(overlayPositionVec, cameraPositionVec) > 0.5f;
|
||||
bool overlayOutOfBounds = glm::distance(overlayPositionVec, cameraPositionVec) > 1.0f;
|
||||
|
||||
if (pointAngle > LOOK_AWAY_THRESHOLD_ANGLE || overlayOutOfBounds) {
|
||||
QVariantMap properties {
|
||||
|
|
Loading…
Reference in a new issue