fix: eco items, wall, photo booth, chat emoji, den fixes

- the eco den items work: the Eco Shop sells the real eco items, solar
  panels and wind turbines placed in the den in use earn eco credits, lamps
  switch on while there is power for them, and the eco score earns the
  three eco plaques; a first look gives an account its first credits
- the item giver row opens the web item giver
- a painting that cannot be shown is the Burrow logo, not a wait for good
- Jammer Central's buttons work; What's New shows the newest Jamaa Journal
- the Jammer Wall opens even while the HUD is checking the player's own; a
  photo of an animal wearing nothing is kept; a wall photo of an animal the
  game does not know no longer stops the wall
- the photo booth's paid picture is answered
- emoji no longer push the line off centre; "\" keeps an emote or a
  ":name:" as typed; a repeated line with emoji is sent as it was said
- the emoji button hides with the HUD, not a moment after
- the join date on a player's card stays in its corner
- den items whose def is gone no longer garble the den and the inventory;
  custom pictures in a den no longer stop walking
- the den editor's switch and recycle buttons are always there
- the den inventory scrolls to an eleventh item
This commit is contained in:
Burrowdev committed 2026-10-23 23:00:00 +03:00
1 parent 7de41ceed5
commit c7efda7030
20 files changed
+6959 -1901

No files matched your search

+16 -9
View File
@@ -539,7 +539,14 @@ package
}
else
{
_toolsInstance.showItemFinder(true);
// the item giver is the web one now (the account page's
// /account/items, signed in as there), opened in the browser:
// the one in the game is retired. it shared its colour box
// with the Item Maker, whose colours turned up in it.
if(ExternalInterface.available)
{
ExternalInterface.call("ajOpenPage",gMainFrame.clientInfo.websiteURL + "account/items");
}
}
}
catch(e:Error)
@@ -3513,7 +3520,6 @@ package
private var _emojiCaret:int = -1;
private var _emojiTimer:Timer;
// the characters of code points in hex ("1f468-200d-1f469")
public static function charsOfHex(param1:String) : String
@@ -3555,7 +3561,8 @@ package
// a line about to be sent: each ":name:" of an emoji above becomes it,
// but not the game's own emote codes (":happy:", ":joy:"), which the
// bubble shows as the game's.
// bubble shows as the game's, nor one after a "\" ("\:fire:"), which
// the bubble shows as typed (ChatBalloon.inlineEmotes).
public static function emojiShortcodes(param1:String) : String
{
if(param1.indexOf(":") == -1)
@@ -3563,13 +3570,13 @@ package
return param1;
}
emojiTable();
return param1.replace(/:([a-z0-9_]{1,30}):/g,function(param1:String, param2:String, ... rest):String
return param1.replace(/(\\?):([a-z0-9_]{1,30}):/g,function(param1:String, param2:String, param3:String, ... rest):String
{
if(EmoticonUtility.doesStringMatchAnEmote(param1) || _emojiByName[param2] == null)
if(param2 != "" || EmoticonUtility.doesStringMatchAnEmote(":" + param3 + ":") || _emojiByName[param3] == null)
{
return param1;
}
return _emojiByName[param2];
return _emojiByName[param3];
});
}
@@ -4115,9 +4122,9 @@ package
private function startEmojiButton() : void
{
_emojiTimer = new Timer(500);
_emojiTimer.addEventListener("timer",placeEmojiButton);
_emojiTimer.start();
// every frame: on a timer it went a moment after the HUD did, when
// a window opened over it
gMainFrame.stage.addEventListener("enterFrame",placeEmojiButton,false,0,true);
gMainFrame.stage.addEventListener("mouseDown",onEmojiStageDown,false,0,true);
}