Skip to content

Commit

Permalink
Merge pull request #55 from Armored-Dragon/nametag-fixes
Browse files Browse the repository at this point in the history
Fixed nametags appearing when disabled.
  • Loading branch information
ksuprynowicz authored Nov 26, 2023
2 parents 7e96b35 + 350103e commit 96f7d4b
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions applications/nametags/nametags.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const logs = (info) => console.log("[NAMETAGS] " + info);
AvatarManager.avatarAddedEvent.connect(reset);

function reset() {
if (!visible) return;
clear();
startup();
}
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 96f7d4b

Please sign in to comment.