mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 05:52:38 +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');
|
||||
}
|
||||
|
||||
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() {
|
||||
updateNotificationsTexts();
|
||||
var noticeOut,
|
||||
buttonOut,
|
||||
arraysOut,
|
||||
|
|
Loading…
Reference in a new issue