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:
SnipzilandClaude Opus 5.5 committed 2026-10-17 21:44:11 -04:00
1 parent 331c3e6025
commit 59d9d7e5fa
26 files changed
+6629 -125

No files matched your search

+17 -2
View File
@@ -440,7 +440,8 @@ package com.sbi.graphics
_loc2_ = false;
for(var _loc4_ in param1)
{
if(!_layers[_loc4_] || _layers[_loc4_].l != param1[_loc4_].l)
// (a custom item has its base's art: its own picture makes it another, AJClient.customArtKey)
if(!_layers[_loc4_] || _layers[_loc4_].l != param1[_loc4_].l || AJClient.customArtKey("clothing",int(_layers[_loc4_].d)) != AJClient.customArtKey("clothing",int(param1[_loc4_].d)))
{
_loc2_ = true;
break;
@@ -702,6 +703,19 @@ package com.sbi.graphics
buildRequestArray(param1,_loc2_,_loc4_);
_loc2_.sort();
var _loc3_:String = _loc2_.join();
// custom items with pictures of their own are painted otherwise than
// their bases: their frames are kept apart
for each(var _loc5_:Object in _layers)
{
if(_loc5_.d)
{
var _loc6_:String = AJClient.customArtKey("clothing",int(_loc5_.d));
if(_loc6_ != "")
{
_loc3_ += "|" + _loc6_;
}
}
}
_colors = _loc4_;
_requestedCacheKey = _loc3_;
_receivedData = [];
@@ -792,7 +806,8 @@ package com.sbi.graphics
{
var _loc7_:int = int(_loc6_[_loc4_.l]);
_loc6_[_loc4_.l] = _loc7_ + 1;
_bitmap.setLayer(LayerBitmap.slotFor(_loc4_.l,_loc7_),_loc4_.d,_loc4_.c,_requestedCacheKey);
_bitmap.setLayer(LayerBitmap.slotFor(_loc4_.l,_loc7_),_loc4_.d,_loc4_.c,_requestedCacheKey,
_loc4_.p >= 0 && _layers != null && _layers[_loc4_.p] != null ? int(_layers[_loc4_.p].d) : 0);
}
finishAnimRequest();
_receivedData = null;