#The image in my GUI is smaller than the size of the Chest GUI. How do I make it fit?
1 messages · Page 1 of 1 (latest)
{
"namespace": "chest",
// Optional, if you wanna move the container title above the custom chest menu background
"chest_label": {
//"layer": 10
},
// General panel overlay for custom inventory backgrounds
"ofunnys_chest_panel": {
"type": "image",
"layer": 10,
"size": [192, 192],
"offset": [ 0, -10],
"$localtitle": "$container_title"
},
// Individual backgound implementations
"ofunnys_ia_categories@ofunnys_chest_panel": {
"texture":"textures/ui/inventory/ia/online",
"visible":"(not ($localtitle - '' = $localtitle))"
},
"ofunnys_ia_crafting@ofunnys_chest_panel": {
"texture":"textures/ui/inventory/ia/warp",
"visible":"(not ($localtitle - '' = $localtitle))"
},
// Just a simple panel to collect all individual panels at once
"ofunnys_chest_panels": {
"type": "panel",
"controls": [
{ "ofunnys_ia_categories@ofunnys_ia_categories": {} },
{ "ofunnys_ia_crafting@ofunnys_ia_crafting": {} }
]
},
// Modification to add the background overlay panel
"large_chest_panel": {
"modifications": [
{
"array_name": "controls",
"operation": "insert_back",
"value": {
"ofunnys_chest_panels@ofunnys_chest_panels": {}
}
}
]
},
// Force classic UI code
"[email protected]_screen_common": {
"$atitle": "$container_title",
"$ofunnymenu": "(('%.2s' * $atitle) = '§')",
"variables": [
{
"requires": "($desktop_screen or $ofunnymenu)",
"$screen_content": "chest.small_chest_panel",
"$screen_bg_content": "common.screen_background",
"$screen_background_alpha": 0.4
},
{
"requires": "($pocket_screen and not $ofunnymenu)",
"$use_custom_pocket_toast": true,
"$screen_content": "pocket_containers.small_chest_panel"
}
]
},
"[email protected]_screen_common": {
"$atitle": "$container_title",
"$ofunnymenu": "(('%.2s' * $atitle) = '§')",
"variables": [
{
"requires": "($desktop_screen or $ofunnymenu)",
"$screen_content": "chest.large_chest_panel",
"$screen_bg_content": "common.screen_background",
"$screen_background_alpha": 0.4
},
{
"requires": "($pocket_screen and not $ofunnymenu)",
"$use_custom_pocket_toast": true,
"$screen_content": "pocket_containers.large_chest_panel"
}
]
}
}```
Thanks for your help in advance.
@finite vigil did u used an default chest screen texture to make that custom chest screen or u downloaded it from the internet
Yes, but I need a solution to that problem.
uh ic ic u download an custom container texture maybe well if u can dm me the texture maybe I can try
I sent you a DM.
Ohk
This problem still exists. Anyone who knows can tell me.
Mess with the image offset and accordingly you’ll get the image set on the chest layer
