mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -05:00
feat(client): item maker, worn pictures, emoji, sitting, typing, AFK, staff window
Rebuilt swf/ajclient.swf from swf-src (tools/build-client.sh). New patched
classes: KeepAlive, AvatarView, AvatarUtility, Item, DenItemHelper,
SitForwardAction.
Custom items
- The Item Maker in Settings, in the game's own style: make an item from one
of the game's, name it, upload a picture (PNG encoded in the client and
shrunk when too big), choose sticker or texture, rename, delete.
- Pictures stand in for the item's icon and, for den items, the placed item.
- Worn pictures: LayerBitmap paints a sticker or a texture. Fixed it showing
only until the player moved:
- AvatarView rebuilt the worn layers on every new animation without the
item id, so walking drew the base item. It now carries the id ("d").
- Frames painted while the picture loaded stayed cached as the base item.
They are all painted again when it arrives (LayerBitmap.artArrived).
- The picture loader checks the server's crossdomain policy before its pixels
are read.
Chat
- Windows emoji and the AJ emotes inline with text in chat bubbles; emoji are
sent as \{hex} tags. An emoji picker and :shortcodes:.
- Chat box limit 200 characters; the box shows emoji in the system font.
- Clicking an emote while typing puts its code in the chat box.
- Two new base emotes: 💀 and 😭 (HUDAssets.swf, EmoticonUtility).
- Typing bubble: a "..." over a player's animal while they type ("xty").
It goes on a new line, when they stop, or after 8 seconds.
- loadArt shares pictures by address: emoji and icons load and decode once.
Actions
- Sit Front and Sit Back between the sit arrows, plus Mirror for any action
(from the other session). Front now plays animation 5 (facing the camera)
and Back animation 1 (facing away); both had played animation 1.
Staff
- The Moderate window from a player card's Report button for staff: warn
(custom text too), kick, silence, ban, summon, goto, notes.
- Invisible staff drawn half see-through; staff land on the exact spot on
goto and summon ("xgt").
Other
- AFK sign-out after 75 minutes instead of 7, with a 60-second warning
(com.sbi.client.KeepAlive).
- Jam-a-Grams show custom items and colours; Jammer Wall avatar photos fixed.
- The Item Maker row in the settings menu and the item window toggle.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
331c3e6025
commit
59d9d7e5fa
26 files changed
+6629
-125
No files matched your search
@@ -215,6 +215,7 @@ package avatar
|
||||
{
|
||||
return;
|
||||
}
|
||||
_actionMgr.rememberAction(param1);
|
||||
AvatarManager.setAvatarAction(param1);
|
||||
if(!_actionMgr.getActionString(param1))
|
||||
{
|
||||
@@ -222,8 +223,15 @@ package avatar
|
||||
}
|
||||
addChatMessage(_actionMgr.getActionString(param1));
|
||||
var _loc2_:AvatarWorldView = AvatarManager.avatarViewList[AvatarManager.playerSfsUserId];
|
||||
if(_loc2_ && _actionMgr.mirrorActions)
|
||||
{
|
||||
_loc2_.setActionMirrored(true);
|
||||
}
|
||||
var _loc3_:int = _loc2_.lastIdleAnim;
|
||||
gMainFrame.server.sendMessage(_actionMgr.getActionString(param1) + RAW_STR + 3 + RAW_STR + _loc3_);
|
||||
// m0/m1 is deliberately a new marker: old clients sent the
|
||||
// animation number here. New clients use it to mirror every action
|
||||
// consistently on every screen.
|
||||
gMainFrame.server.sendMessage(_actionMgr.getActionString(param1) + RAW_STR + 3 + RAW_STR + "m" + (_actionMgr.mirrorActions ? "1" : "0"));
|
||||
if(_chatHist.enableFreeChatValue)
|
||||
{
|
||||
_chatHist.resetTreeSearch();
|
||||
@@ -263,14 +271,21 @@ package avatar
|
||||
}
|
||||
param2 = fixMispellings(param2);
|
||||
param2 = adjustCamelCase(param2);
|
||||
AJClient.typingSent();
|
||||
AvatarManager.addAvatarMessage("...",param1,0);
|
||||
param2 = adjustSpecialWords(param2);
|
||||
// ":fire:" and the like as the emoji (AJClient's emoji)
|
||||
param2 = AJClient.emojiShortcodes(param2);
|
||||
// and every emoji as "\{code points}" (AJClient.emojiToTokens)
|
||||
param2 = AJClient.emojiToTokens(param2);
|
||||
var _loc3_:int = gMainFrame.userInfo.sgChatType == 1 ? 0 : 9;
|
||||
gMainFrame.server.sendMessage(param2 + RAW_STR + _loc3_);
|
||||
if(_chatHist.enableFreeChatValue)
|
||||
{
|
||||
_chatHist.resetTreeSearch();
|
||||
_chatHist.chatMsgText.text = "";
|
||||
// emptied: back to the game's font (ChatHistory.showEmojiInInput)
|
||||
_chatHist.showEmojiInInput();
|
||||
gMainFrame.stage.focus = _chatHist.chatMsgText;
|
||||
}
|
||||
}
|
||||
@@ -750,6 +765,10 @@ package avatar
|
||||
if(_loc5_)
|
||||
{
|
||||
AvatarManager.setAvatarAction(_loc5_,_loc19_);
|
||||
if(String(param1[5]) == "m1")
|
||||
{
|
||||
AvatarManager.avatarViewList[_loc19_].setActionMirrored(true);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user