prevent NPE

This commit is contained in:
Anthony Calosa
2025-08-22 16:43:17 +08:00
parent fb624458f0
commit 1ff16ca509
4 changed files with 61 additions and 40 deletions

View File

@@ -470,6 +470,15 @@
"focused": "item_frame_selected",
"checked": "item_frame_selected",
"checkedOver": "item_frame_selected_hover"
},
"item_frame_static": {
"imageCheckedOver": "item_frame",
"up": "item_frame",
"over": "item_frame",
"focused": "item_frame",
"checked": "item_frame",
"checkedOver": "item_frame",
"checkedDown": "item_frame"
}
},
"ImageTextButtonStyle": {

View File

@@ -20,7 +20,7 @@
{
"type": "ImageButton",
"name": "Equipment_Ability1",
"style": "item_frame",
"style": "item_frame_static",
"width": 20,
"height": 20,
"x": 17,
@@ -29,7 +29,7 @@
{
"type": "ImageButton",
"name": "Equipment_Ability2",
"style": "item_frame",
"style": "item_frame_static",
"width": 20,
"height": 20,
"x": 107,
@@ -38,7 +38,7 @@
{
"type": "ImageButton",
"name": "Equipment_Neck",
"style": "item_frame",
"style": "item_frame_static",
"width": 20,
"height": 20,
"x": 62,
@@ -47,7 +47,7 @@
{
"type": "ImageButton",
"name": "Equipment_Body",
"style": "item_frame",
"style": "item_frame_static",
"width": 20,
"height": 20,
"x": 62,
@@ -56,7 +56,7 @@
{
"type": "ImageButton",
"name": "Equipment_Boots",
"style": "item_frame",
"style": "item_frame_static",
"width": 20,
"height": 20,
"x": 62,
@@ -65,7 +65,7 @@
{
"type": "ImageButton",
"name": "Equipment_Left",
"style": "item_frame",
"style": "item_frame_static",
"width": 20,
"height": 20,
"x": 17,
@@ -74,7 +74,7 @@
{
"type": "ImageButton",
"name": "Equipment_Right",
"style": "item_frame",
"style": "item_frame_static",
"width": 20,
"height": 20,
"x": 107,

View File

@@ -19,8 +19,8 @@
},
{
"type": "ImageButton",
"name": "Equipment_Ability1",
"style": "item_frame",
"name": "Equipment_Ability1",
"style": "item_frame_static",
"width": 20,
"height": 20,
"x": 17,
@@ -29,7 +29,7 @@
{
"type": "ImageButton",
"name": "Equipment_Ability2",
"style": "item_frame",
"style": "item_frame_static",
"width": 20,
"height": 20,
"x": 107,
@@ -38,7 +38,7 @@
{
"type": "ImageButton",
"name": "Equipment_Neck",
"style": "item_frame",
"style": "item_frame_static",
"width": 20,
"height": 20,
"x": 62,
@@ -47,7 +47,7 @@
{
"type": "ImageButton",
"name": "Equipment_Body",
"style": "item_frame",
"style": "item_frame_static",
"width": 20,
"height": 20,
"x": 62,
@@ -56,7 +56,7 @@
{
"type": "ImageButton",
"name": "Equipment_Boots",
"style": "item_frame",
"style": "item_frame_static",
"width": 20,
"height": 20,
"x": 62,
@@ -65,7 +65,7 @@
{
"type": "ImageButton",
"name": "Equipment_Left",
"style": "item_frame",
"style": "item_frame_static",
"width": 20,
"height": 20,
"x": 17,
@@ -74,7 +74,7 @@
{
"type": "ImageButton",
"name": "Equipment_Right",
"style": "item_frame",
"style": "item_frame_static",
"width": 20,
"height": 20,
"x": 107,