mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 10:37:35 +02:00
fix for showing the text overlay in mac
This commit is contained in:
parent
5d27cddab5
commit
d5950db2a4
1 changed files with 6 additions and 1 deletions
|
@ -37,8 +37,8 @@
|
||||||
rotation: {x: -4.57763671875e-05, y: 0.4957197904586792, z: -7.62939453125e-05, w: 0.8684672117233276},
|
rotation: {x: -4.57763671875e-05, y: 0.4957197904586792, z: -7.62939453125e-05, w: 0.8684672117233276},
|
||||||
text: getOopsText(),
|
text: getOopsText(),
|
||||||
textAlpha: 1,
|
textAlpha: 1,
|
||||||
|
backgroundColor: {x: 0, y: 0, z:0},
|
||||||
backgroundAlpha: 0,
|
backgroundAlpha: 0,
|
||||||
color: {x: 255, y: 255, z: 255},
|
|
||||||
lineHeight: 0.10,
|
lineHeight: 0.10,
|
||||||
leftMargin: 0.538373570564886,
|
leftMargin: 0.538373570564886,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
@ -98,10 +98,15 @@
|
||||||
var oopsTextProperties = {
|
var oopsTextProperties = {
|
||||||
visible: overlaysVisible,
|
visible: overlaysVisible,
|
||||||
text: oopsText,
|
text: oopsText,
|
||||||
|
textAlpha: overlaysVisible,
|
||||||
|
// either visible or invisible. 0 doesn't work in Mac.
|
||||||
|
backgroundAlpha: overlaysVisible * 0.00393,
|
||||||
leftMargin: (textOverlayWidth - textWidth) / 2
|
leftMargin: (textOverlayWidth - textWidth) / 2
|
||||||
};
|
};
|
||||||
|
Window.copyToClipboard(redirectOopsText);
|
||||||
|
|
||||||
Overlays.editOverlay(redirectOopsText, oopsTextProperties);
|
Overlays.editOverlay(redirectOopsText, oopsTextProperties);
|
||||||
|
print("toggleOverlays: setting alpha to " + Overlays.getProperty(redirectOopsText, "alpha"));
|
||||||
Overlays.editOverlay(tryAgainImage, properties);
|
Overlays.editOverlay(tryAgainImage, properties);
|
||||||
Overlays.editOverlay(backImage, properties);
|
Overlays.editOverlay(backImage, properties);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue