mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 06:23:06 +02:00
option to suppress lobby text for now, defaults to true
This commit is contained in:
parent
7de2256744
commit
96c3a0edbd
1 changed files with 3 additions and 2 deletions
|
@ -15,6 +15,7 @@ var panelWall = false;
|
||||||
var orbShell = false;
|
var orbShell = false;
|
||||||
var reticle = false;
|
var reticle = false;
|
||||||
var descriptionText = false;
|
var descriptionText = false;
|
||||||
|
var showText = false;
|
||||||
|
|
||||||
// used for formating the description text, in meters
|
// used for formating the description text, in meters
|
||||||
var textWidth = 4;
|
var textWidth = 4;
|
||||||
|
@ -312,7 +313,7 @@ function handleLookAt(pickRay) {
|
||||||
var actionLocation = locations[panelIndex];
|
var actionLocation = locations[panelIndex];
|
||||||
|
|
||||||
if (actionLocation.description == "") {
|
if (actionLocation.description == "") {
|
||||||
Overlays.editOverlay(descriptionText, { text: actionLocation.name, visible: true });
|
Overlays.editOverlay(descriptionText, { text: actionLocation.name, visible: showText });
|
||||||
} else {
|
} else {
|
||||||
// handle line wrapping
|
// handle line wrapping
|
||||||
var allWords = actionLocation.description.split(" ");
|
var allWords = actionLocation.description.split(" ");
|
||||||
|
@ -344,7 +345,7 @@ function handleLookAt(pickRay) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
formatedDescription += currentGoodLine;
|
formatedDescription += currentGoodLine;
|
||||||
Overlays.editOverlay(descriptionText, { text: formatedDescription, visible: true });
|
Overlays.editOverlay(descriptionText, { text: formatedDescription, visible: showText });
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Overlays.editOverlay(descriptionText, { text: "", visible: false });
|
Overlays.editOverlay(descriptionText, { text: "", visible: false });
|
||||||
|
|
Loading…
Reference in a new issue