mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-06 06:56:36 +02:00
fixed text scale for notifications
This commit is contained in:
parent
b4f7cb961a
commit
a5553d5e1c
1 changed files with 16 additions and 0 deletions
|
@ -449,7 +449,23 @@
|
||||||
return finishedLines.join('\n');
|
return finishedLines.join('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function updateNotificationsTexts() {
|
||||||
|
var sensorScaleFactor = MyAvatar.sensorToWorldScale;
|
||||||
|
for (var i = 0; i < notifications.length; i++) {
|
||||||
|
var overlayType = Overlays.getOverlayType(notifications[i]);
|
||||||
|
|
||||||
|
if (overlayType === "text3d") {
|
||||||
|
var props = {
|
||||||
|
font: {size: fontSize * sensorScaleFactor},
|
||||||
|
lineHeight: 10.0 * (fontSize * sensorScaleFactor / 12.0) * NOTIFICATION_3D_SCALE
|
||||||
|
};
|
||||||
|
Overlays.editOverlay(notifications[i], props);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function update() {
|
function update() {
|
||||||
|
updateNotificationsTexts();
|
||||||
var noticeOut,
|
var noticeOut,
|
||||||
buttonOut,
|
buttonOut,
|
||||||
arraysOut,
|
arraysOut,
|
||||||
|
|
Loading…
Reference in a new issue