fixed text scale for notifications

This commit is contained in:
Dante Ruiz 2017-09-06 09:26:48 -07:00
parent b4f7cb961a
commit a5553d5e1c

View file

@ -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,