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

+22 -1
View File
@@ -61,7 +61,11 @@ package gui.itemWindows
private var _hasSetState:Boolean;
private var _isSellShop:Boolean;
// smaller with Expanded Inventory on (AJClient.inventoryColumns): 3
// over the items a row, so a row is as wide as the game's three.
private var _itemScale:Number = 1;
public function ItemWindowOriginal(param1:Function, param2:Object, param3:String, param4:int, param5:Function = null, param6:Function = null, param7:Function = null, param8:Function = null, param9:Object = null)
{
var _loc11_:int = 0;
@@ -89,6 +93,10 @@ package gui.itemWindows
_loc11_ = int(param9.indexArray.length);
_loc10_ = int(_loc11_ - 1 >= param4 ? param9.indexArray[param4] : param4);
}
if(param9.itemScale > 0)
{
_itemScale = param9.itemScale;
}
}
super("itemWindow",param1,param2,param3,_loc10_,param5,param6,param7,param8,true);
}
@@ -576,6 +584,19 @@ package gui.itemWindows
override protected function onWindowLoadCallback() : void
{
// the generator spaces the windows by their width and height,
// which are sizeCont's (ItemWindowBase) and do not shrink with the
// window, so sizeCont is made as much smaller.
if(_itemScale != 1 && _window)
{
if(_window.hasOwnProperty("sizeCont") && _window.sizeCont)
{
_window.sizeCont.width *= _itemScale;
_window.sizeCont.height *= _itemScale;
}
this.scaleX = _itemScale;
this.scaleY = _itemScale;
}
if(_windowLoadedCallback != null)
{
resetVisibility();