mirror of
https://github.com/overte-org/community-apps.git
synced 2025-04-08 13:23:20 +02:00
Fixed nametags appearing when disabled.
Removed unreferenced function.
This commit is contained in:
parent
7e96b35381
commit
350103e5ac
1 changed files with 1 additions and 13 deletions
|
@ -18,6 +18,7 @@ const logs = (info) => console.log("[NAMETAGS] " + info);
|
|||
AvatarManager.avatarAddedEvent.connect(reset);
|
||||
|
||||
function reset() {
|
||||
if (!visible) return;
|
||||
clear();
|
||||
startup();
|
||||
}
|
||||
|
@ -131,19 +132,6 @@ function scriptEnding() {
|
|||
tablet.removeButton(tabletButton);
|
||||
Menu.removeMenuItem("View", "Nametags");
|
||||
}
|
||||
function setVisible(visible) {
|
||||
if (visible !== isVisible) {
|
||||
isVisible = visible;
|
||||
if (isVisible) {
|
||||
startUpdating();
|
||||
} else {
|
||||
stopUpdating();
|
||||
}
|
||||
if (button) {
|
||||
button.editProperties({ isActive: isVisible });
|
||||
}
|
||||
}
|
||||
}
|
||||
function toggleState() {
|
||||
visible = !visible;
|
||||
|
||||
|
|
Loading…
Reference in a new issue