mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 10:13:15 +02:00
Fix minimize bug; fix bug where FTUE window appears behind Interface window
This commit is contained in:
parent
2220234d68
commit
609f6f9a25
2 changed files with 10 additions and 1 deletions
|
@ -450,6 +450,7 @@ function onGeometryChanged(rect) {
|
||||||
|
|
||||||
|
|
||||||
function onWindowMinimizedChanged(isMinimized) {
|
function onWindowMinimizedChanged(isMinimized) {
|
||||||
|
isWindowMinimized = isMinimized;
|
||||||
maybeChangeEmoteIndicatorVisibility(!isMinimized);
|
maybeChangeEmoteIndicatorVisibility(!isMinimized);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -546,8 +547,12 @@ function showEmoteAppBar() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// There is currently no property in the Window Scripting Interface to determine
|
||||||
|
// whether the Interface window is currently minimized. This feels like an oversight.
|
||||||
|
// We should add that functionality to the Window Scripting Interface, and remove `isWindowMinimized` below.
|
||||||
|
var isWindowMinimized = false;
|
||||||
function maybeChangeEmoteIndicatorVisibility(desiredVisibility) {
|
function maybeChangeEmoteIndicatorVisibility(desiredVisibility) {
|
||||||
if (Window.minimized || HMD.active) {
|
if (isWindowMinimized || HMD.active) {
|
||||||
desiredVisibility = false;
|
desiredVisibility = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -363,6 +363,8 @@ var INITIAL_LAUNCH_QML_PATH = Script.resolvePath("./simplifiedFTUE/InitialLaunch
|
||||||
var INITIAL_LAUNCH_WINDOW_TITLE = "Initial Launch";
|
var INITIAL_LAUNCH_WINDOW_TITLE = "Initial Launch";
|
||||||
var INITIAL_LAUNCH_PRESENTATION_MODE = Desktop.PresentationMode.NATIVE;
|
var INITIAL_LAUNCH_PRESENTATION_MODE = Desktop.PresentationMode.NATIVE;
|
||||||
var INITIAL_WINDOW_FLAGS = 0x00000001 | // Qt::Window
|
var INITIAL_WINDOW_FLAGS = 0x00000001 | // Qt::Window
|
||||||
|
0x00000008 | // Qt::Popup
|
||||||
|
0x00000002 | // Qt::Tool
|
||||||
0x00000800 | // Qt::FramelessWindowHint
|
0x00000800 | // Qt::FramelessWindowHint
|
||||||
0x40000000; // Qt::NoDropShadowWindowHint
|
0x40000000; // Qt::NoDropShadowWindowHint
|
||||||
var initialLaunchWindow = false;
|
var initialLaunchWindow = false;
|
||||||
|
@ -396,6 +398,8 @@ var SECOND_LAUNCH_QML_PATH = Script.resolvePath("simplifiedFTUE/SecondLaunchWind
|
||||||
var SECOND_LAUNCH_WINDOW_TITLE = "Second Launch";
|
var SECOND_LAUNCH_WINDOW_TITLE = "Second Launch";
|
||||||
var SECOND_LAUNCH_PRESENTATION_MODE = Desktop.PresentationMode.NATIVE;
|
var SECOND_LAUNCH_PRESENTATION_MODE = Desktop.PresentationMode.NATIVE;
|
||||||
var SECOND_WINDOW_FLAGS = 0x00000001 | // Qt::Window
|
var SECOND_WINDOW_FLAGS = 0x00000001 | // Qt::Window
|
||||||
|
0x00000008 | // Qt::Popup
|
||||||
|
0x00000002 | // Qt::Tool
|
||||||
0x00000800 | // Qt::FramelessWindowHint
|
0x00000800 | // Qt::FramelessWindowHint
|
||||||
0x40000000; // Qt::NoDropShadowWindowHint
|
0x40000000; // Qt::NoDropShadowWindowHint
|
||||||
var secondLaunchWindow = false;
|
var secondLaunchWindow = false;
|
||||||
|
|
Loading…
Reference in a new issue