mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
fix: settings, chat, video spots and other bugs from the owner's list
- Jam-A-Gram privacy: the inbox's options were taken the wrong way round - report window: no instruction text over the reason - the museum's theatre and other unnamed rooms get names; every shop a title - "How did you hear?" is never offered (its window soft locked the game) - video spots with nothing to play open a "Your Video" box on the game page; the trade list's help plays a video; the theatre's box no longer vanishes - emotes, actions and phrases are limited per player, as typed chat is - phrases from the menus come in the sender's chat bubble style - settings: WASD, blocked players and custom items as two-sided switches, graphics at their best by default, a switch for bubble animations, and Manage Account beside two-step sign-in opens the account page - pressing a @mention in a bubble no longer walks the player there
This commit is contained in:
1 parent
e9097a9a4f
commit
22fb7f0fa5
16 files changed
+589
-207
No files matched your search
+10
-3
@@ -51,10 +51,15 @@ const INBOX_FULL = -1;
|
||||
const NOT_ACCEPTING = -2;
|
||||
const FAILED = 0;
|
||||
|
||||
// who may send to a player (ECardInbox's settings popup).
|
||||
// who may send to a player, as kept (account.ecardPrivacy).
|
||||
const FROM_EVERYONE = 0;
|
||||
const FROM_BUDDIES = 1;
|
||||
const FROM_NOBODY = 2;
|
||||
// ECardInbox's settings popup sends the place of the option picked, and its
|
||||
// artwork has Nobody first and Everyone last: the other way round from the
|
||||
// above. turned over both ways between the two (buddies is in the middle).
|
||||
const SETTING_COUNT = 3;
|
||||
const turnedOver = value => SETTING_COUNT - 1 - value;
|
||||
|
||||
const LIST_CARDS = 10;
|
||||
const LIST_STAMPS = 44;
|
||||
@@ -345,7 +350,7 @@ module.exports = ({findOnline, blocks}) => {
|
||||
|
||||
// [setting] -> eCardIsolationHandler: [success]
|
||||
ei(session, roomId, [setting]) {
|
||||
const value = Number(setting);
|
||||
const value = turnedOver(Number(setting));
|
||||
const valid = [FROM_EVERYONE, FROM_BUDDIES, FROM_NOBODY].includes(value);
|
||||
if (valid) {
|
||||
session.account.ecardPrivacy = value;
|
||||
@@ -374,5 +379,7 @@ module.exports = ({findOnline, blocks}) => {
|
||||
return card ? senderOf(card) : null;
|
||||
};
|
||||
|
||||
return {handlers, list, unread, redemptions, sendFromHq, noteFromHq, secretSender, SECRET_NAME: "Secret Valentine"};
|
||||
// the setting as the inbox's settings popup shows it (above)
|
||||
const privacyShown = account => turnedOver(account.ecardPrivacy || FROM_EVERYONE);
|
||||
return {handlers, list, unread, redemptions, privacyShown, sendFromHq, noteFromHq, secretSender, SECRET_NAME: "Secret Valentine"};
|
||||
};
|
||||
Reference in new issue
Block a user