mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 09:37:50 -05:00
feat(guide): guides only by the admin, and seen by everyone
The login's Guide option made a player a guide on their own screen only: the room's avatar packet never said so, so everyone else drew a plain player. "ac" now sends the guide field (bit 4, after a blend colour of 0), which gives the guide's name tag and chat bubble on every client. Guide is now given in the admin panel (Make guide / Remove guide, logged). Asked for at login by anyone else, it is refused, with a plain message on arrival. A guide's custom client can still leave it off; the official launcher asks nothing, and a guide shows as one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
da9f2fd5a6
commit
a860a67626
4 files changed
+32
-8
No files matched your search
@@ -526,6 +526,8 @@
|
||||
<h3>Badges</h3>
|
||||
<div class="buttons" id="badge-boxes"></div>
|
||||
<div class="row" style="margin-top:8px"><button type="button" data-action="badges">Set</button></div>
|
||||
<div class="row" style="margin-top:8px" title="A guide's name tag and chat bubble, seen by everyone; from their next login">
|
||||
<button type="button" data-action="guide" id="guide-toggle"></button></div>
|
||||
<div class="row" style="margin-top:8px" title="Players link their Discord themselves, on the account page">
|
||||
<span class="hint" id="discord-name"></span>
|
||||
<button type="button" data-action="discord">Unlink Discord</button></div>
|
||||
@@ -1527,6 +1529,7 @@
|
||||
label.append(box, ` ${badge.label}`);
|
||||
return label;
|
||||
}));
|
||||
$("guide-toggle").textContent = current && current.guide ? "Remove guide" : "Make guide";
|
||||
$("discord-name").textContent = current && current.discord ? `Discord: ${current.discord}` : "No Discord linked";
|
||||
$("admin-dashboard-access").textContent = current && current.adminDashboardAccess ? "Remove Discord dashboard access" : "Allow Discord dashboard access";
|
||||
$("admin-dashboard-access").disabled = !current || (!current.discord && !current.adminDashboardAccess);
|
||||
@@ -1716,6 +1719,7 @@
|
||||
case "role": return {role: $("role-select").value};
|
||||
case "permissions": return permissionChoices();
|
||||
case "adminDashboardAccess": return {on: !(current || {}).adminDashboardAccess};
|
||||
case "guide": return {on: !(current || {}).guide};
|
||||
case "message": return {text: $("message-text").value};
|
||||
case "gems": return {amount: numberFrom("gems-amount")};
|
||||
case "gift": return giftBody();
|
||||
|
||||
Reference in new issue
Block a user