feat(client): Expanded Inventory, more and smaller items a row

Strawberry Jam's setting, under Settings: the clothes picker and the
item, den and gift pickers show 3, 4 or 5 items a row instead of the
game's three, each scaled so a row is as wide as before. A + and - at the
avatar editor's item counter step between them. User vars 9009 (on) and
9010 (a row; unset is 5).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
SnipzilandClaude Opus 5.5 committed 2026-10-21 22:42:11 -04:00
1 parent 9985ae7625
commit 3930d2dabe
6 files changed
+207 -6

No files matched your search

+30
View File
@@ -188,6 +188,9 @@ package gui.itemWindows
case "customArt":
showCustomArt();
break;
case "expandedInventory":
showExpandedInventory();
break;
case "wasd":
showWasd();
break;
@@ -498,6 +501,30 @@ package gui.itemWindows
AchievementXtCommManager.requestSetUserVar(9006,param1 ? 0 : 1);
showCustomArt();
}
// "Expanded Inventory" (Strawberry Jam's): more, smaller items a row in
// the clothes and item pickers, how many by the + and - at the avatar
// editor's item counter (AJClient.inventoryColumns). user var 9009.
private function showExpandedInventory() : void
{
var _loc1_:String = AJClient.expandedInventoryOn() ? "Turn off" : "Turn on";
_window.goNowBtn.down.txt.text = _loc1_;
_window.goNowBtn.mouse.mouse.txt.text = _loc1_;
_window.goNowBtn.mouse.up.txt.text = _loc1_;
_window.labelTxtCont.labelTxt.text = "Expanded Inventory";
}
private function setExpandedInventory(param1:Boolean) : void
{
gMainFrame.userInfo.userVarCache.updateUserVar(9009,param1 ? 1 : 0);
AchievementXtCommManager.requestSetUserVar(9009,param1 ? 1 : 0);
if(GuiManager.avatarEditor)
{
GuiManager.avatarEditor.refreshInventoryLayout();
}
showExpandedInventory();
}
private function handleMouseDown(param1:MouseEvent) : void
{
@@ -727,6 +754,9 @@ package gui.itemWindows
case "customArt":
setCustomArt(!AJClient.customArtOn());
break;
case "expandedInventory":
setExpandedInventory(!AJClient.expandedInventoryOn());
break;
case "wasd":
setWasd(!AJClient.wasdOn());
break;