mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -05:00
feat: discord linking, @tags, music and sfx sliders, required device ids
- Discord: the account page links a player's Discord account through Discord's sign-in (lib/discord.js); only linked names are shown on cards (typed ones are cleared). A bot keeps the Server Booster badge on linked accounts that boost. The game tells the client where the player is, for the client's Discord rich presence (flashvars discordAppId). - @username tags in chat, chat balloons and wall posts: only real players' names (asked of the server, "xmn"), names with spaces too, drawn on a blue box; a click opens the player's card. - Settings: separate Music and SFX volume sliders for the old one. - Device ids required: a launcher that sends none (before 1.3.0) is told at the game's login "Your client is outdated. Update at https://burrow.moe/download". AJ_REQUIRE_DEVICE=0 turns it off. - Panels: clear a player's Jammer Wall posts; turning away masterpieces and player items asks first. - Item Giver: negative colour ids (the same colour written signed). - buildVersion 71; the client rebuilt with Snipzil's sitting fix.
This commit is contained in:
1 parent
1d9b70f32e
commit
33f56074a4
35 files changed
+2076
-101
No files matched your search
@@ -138,7 +138,13 @@ package gui.itemWindows
|
||||
_window.scrubBtn.scrubBG.gotoAndStop("up");
|
||||
_window.scrubBtn.addEventListener("rollOver",handleMouseOver,false,0,true);
|
||||
_window.scrubBtn.addEventListener("rollOut",handleMouseOut,false,0,true);
|
||||
if(GuiManager.sharedObj && GuiManager.sharedObj.data.volume != null)
|
||||
if(_currItem.sound)
|
||||
{
|
||||
// music or sound effects (AJClient's sound settings)
|
||||
_window.scrubBtn.scrubKnob.x = AJClient.soundVolume(_currItem.sound) * 82 + 15;
|
||||
_window.labelTxtCont.labelTxt.text = _currItem.labelLabel;
|
||||
}
|
||||
else if(GuiManager.sharedObj && GuiManager.sharedObj.data.volume != null)
|
||||
{
|
||||
_window.scrubBtn.scrubKnob.x = GuiManager.sharedObj.data.volume * 82 + 15;
|
||||
}
|
||||
@@ -767,7 +773,15 @@ package gui.itemWindows
|
||||
param1.stopPropagation();
|
||||
if(_currItem.type == MySettings.TOGGLE_TYPE_SCRUB && _window.scrubBtn.scrubKnob.dragging)
|
||||
{
|
||||
SBAudio.setVolumeAll((int(_window.scrubBtn.scrubKnob.x - 15)) / 82);
|
||||
if(_currItem.sound)
|
||||
{
|
||||
// heard as it moves, kept when let go (handleStopScrubbing)
|
||||
AJClient.setSoundVolume(_currItem.sound,(int(_window.scrubBtn.scrubKnob.x - 15)) / 82,false);
|
||||
}
|
||||
else
|
||||
{
|
||||
SBAudio.setVolumeAll((int(_window.scrubBtn.scrubKnob.x - 15)) / 82);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -843,7 +857,13 @@ package gui.itemWindows
|
||||
|
||||
private function handleStopScrubbing() : void
|
||||
{
|
||||
if(_window.scrubBtn.scrubKnob.dragging)
|
||||
if(_window.scrubBtn.scrubKnob.dragging && _currItem.sound)
|
||||
{
|
||||
_window.scrubBtn.scrubKnob.dragging = false;
|
||||
_window.scrubBtn.scrubKnob.stopDrag();
|
||||
AJClient.setSoundVolume(_currItem.sound,(int(_window.scrubBtn.scrubKnob.x - 15)) / 82);
|
||||
}
|
||||
else if(_window.scrubBtn.scrubKnob.dragging)
|
||||
{
|
||||
_window.scrubBtn.scrubKnob.dragging = false;
|
||||
_window.scrubBtn.scrubKnob.stopDrag();
|
||||
|
||||
Reference in new issue
Block a user