feat: custom pictures setting, to hide the pictures players give items

A "Custom pictures" row in the game's settings menu, as Blocked players:
shown by default; hidden, every custom item is drawn with its base item's
art (icons, worn, placed in dens, Jam-A-Grams). Kept in user var 9006 (1 for
hidden), which the server stores like the other settings. buildVersion 62.
This commit is contained in:
Burrowdev committed 2026-10-18 06:22:17 +03:00
1 parent 6db96325dd
commit b551a587a9
5 files changed
+49 -5

No files matched your search

+24
View File
@@ -179,6 +179,9 @@ package gui.itemWindows
case "hideBlocked":
showHideBlocked();
break;
case "customArt":
showCustomArt();
break;
case "wasd":
showWasd();
break;
@@ -457,6 +460,24 @@ package gui.itemWindows
showHideBlocked();
}
// "Custom pictures": the pictures players give their items, or every
// item with its base's art (AJClient.customArtOn). user var 9006.
private function showCustomArt() : void
{
var _loc1_:String = AJClient.customArtOn() ? "Hide" : "Show";
_window.goNowBtn.down.txt.text = _loc1_;
_window.goNowBtn.mouse.mouse.txt.text = _loc1_;
_window.goNowBtn.mouse.up.txt.text = _loc1_;
_window.labelTxtCont.labelTxt.text = AJClient.customArtOn() ? "Custom pictures: shown" : "Custom pictures: hidden";
}
private function setCustomArt(param1:Boolean) : void
{
gMainFrame.userInfo.userVarCache.updateUserVar(9006,param1 ? 0 : 1);
AchievementXtCommManager.requestSetUserVar(9006,param1 ? 0 : 1);
showCustomArt();
}
private function handleMouseDown(param1:MouseEvent) : void
{
var _loc2_:Number = NaN;
@@ -682,6 +703,9 @@ package gui.itemWindows
case "hideBlocked":
setHideBlocked(!blockedAreHidden());
break;
case "customArt":
setCustomArt(!AJClient.customArtOn());
break;
case "wasd":
setWasd(!AJClient.wasdOn());
break;