mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +02:00
changing mute warning position
This commit is contained in:
parent
0523a0d06d
commit
90a6e0d9b0
1 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@
|
||||||
if (HMD.active) {
|
if (HMD.active) {
|
||||||
warningOverlayID = Overlays.addOverlay("text3d", {
|
warningOverlayID = Overlays.addOverlay("text3d", {
|
||||||
name: "Muted-Warning",
|
name: "Muted-Warning",
|
||||||
localPosition: { x: 0, y: 0, z: -1.0 },
|
localPosition: { x: 0.0, y: -0.5, z: -1.0 },
|
||||||
localOrientation: Quat.fromVec3Degrees({ x: 0.0, y: 0.0, z: 0.0, w: 1.0 }),
|
localOrientation: Quat.fromVec3Degrees({ x: 0.0, y: 0.0, z: 0.0, w: 1.0 }),
|
||||||
text: warningText,
|
text: warningText,
|
||||||
textAlpha: 1,
|
textAlpha: 1,
|
||||||
|
@ -64,8 +64,8 @@
|
||||||
name: "Muted-Warning",
|
name: "Muted-Warning",
|
||||||
font: { size: 36 },
|
font: { size: 36 },
|
||||||
text: warningText,
|
text: warningText,
|
||||||
x: Window.innerWidth / 2 - textDimensions.x / 2,
|
x: (Window.innerWidth - textDimensions.x) / 2,
|
||||||
y: Window.innerHeight / 2 - textDimensions.y / 2,
|
y: (Window.innerHeight - textDimensions.y),
|
||||||
width: textDimensions.x,
|
width: textDimensions.x,
|
||||||
height: textDimensions.y,
|
height: textDimensions.y,
|
||||||
textColor: { red: 226, green: 51, blue: 77 },
|
textColor: { red: 226, green: 51, blue: 77 },
|
||||||
|
|
Loading…
Reference in a new issue