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

+24 -6
View File
@@ -73,8 +73,9 @@ package gui
private var _emoteBGOffsetFunc:Function;
// emotes drawn inside a line of chat, small, where they were typed: an
// emote's code standing as a word of its own ("hi :) there", ":fever:"),
// or anywhere after a "\" ("yay\:)"). and emoji (typed with Windows'
// emote's code standing as a word of its own ("hi :) there", ":fever:").
// a "\" before one keeps it as typed ("\:)" shows ":)"), as it does a
// ":name:" of an emoji (AJClient.emojiShortcodes). and emoji (typed with Windows'
// emoji panel, say), which the game's font has none of: each is drawn
// as a picture of it, from the server (/emoji/<code points>.png,
// Twemoji's). each is {at, clip}: where its gap starts in the text shown.
@@ -82,6 +83,11 @@ package gui
// artwork to this measured slot with a one-pixel gutter on each side,
// so consecutive emoji neither overlap nor touch surrounding text.
private static const INLINE_GAP:String = " ";
// after each gap: a gap ending the text was trailing spaces, which a
// centred line leaves out, so the text sat off centre and its last
// emoji past it. this is no space, and has no width.
private static const INLINE_END:String = "\u200B";
private static const LONGEST_EMOTE_CODE:int = 16;
@@ -579,7 +585,7 @@ package gui
"at":_loc2_.length,
"clip":emojiClip(param1.substr(_loc3_,_loc8_))
});
_loc2_ += INLINE_GAP;
_loc2_ += INLINE_GAP + INLINE_END;
_loc3_ += _loc8_;
continue;
}
@@ -594,14 +600,26 @@ package gui
"at":_loc2_.length,
"clip":emojiClipNamed(_loc9_[1])
});
_loc2_ += INLINE_GAP;
_loc2_ += INLINE_GAP + INLINE_END;
_loc3_ += String(_loc9_[0]).length;
continue;
}
}
if(param1.charAt(_loc3_) == "\\")
{
// "\" and an emote's code, or ":name:": that, as typed
_loc5_ = emoteCodeAt(param1,_loc3_ + 1,false);
var _loc10_:Array = /^:[a-z0-9_]{1,30}:/.exec(param1.substr(_loc3_ + 1,32));
if(_loc5_ == null && _loc10_ != null)
{
_loc5_ = _loc10_[0];
}
if(_loc5_ != null)
{
_loc2_ += _loc5_;
_loc3_ += 1 + _loc5_.length;
continue;
}
}
else if(_loc3_ == 0 || param1.charAt(_loc3_ - 1) == " ")
{
@@ -616,8 +634,8 @@ package gui
"at":_loc2_.length,
"clip":_loc7_
});
_loc2_ += INLINE_GAP;
_loc3_ += (param1.charAt(_loc3_) == "\\" ? 1 : 0) + _loc5_.length;
_loc2_ += INLINE_GAP + INLINE_END;
_loc3_ += _loc5_.length;
}
else
{