通用hover效果

This commit is contained in:
2025-05-30 11:52:25 +08:00
parent 6d4bb79a45
commit 23a2f686cb
12 changed files with 395 additions and 122 deletions

View File

@@ -73,6 +73,12 @@
"width": 69,
"height": 48,
"_mouseState": 2,
"_$comp": [
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
}
],
"_$child": [
{
"_$id": "ij5lctcm",
@@ -100,7 +106,13 @@
"label": "",
"labelSize": 20,
"labelAlign": "center",
"labelVAlign": "middle"
"labelVAlign": "middle",
"_$comp": [
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
}
]
}
]
},
@@ -44309,6 +44321,12 @@
"labelSize": 20,
"labelAlign": "center",
"labelVAlign": "middle",
"_$comp": [
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
}
],
"_$child": [
{
"_$id": "at2v2bn5",
@@ -44357,6 +44375,12 @@
"labelSize": 20,
"labelAlign": "center",
"labelVAlign": "middle",
"_$comp": [
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
}
],
"_$child": [
{
"_$id": "nu0r4h4m",
@@ -44406,6 +44430,12 @@
"labelSize": 20,
"labelAlign": "center",
"labelVAlign": "middle",
"_$comp": [
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
}
],
"_$child": [
{
"_$id": "nd653uaf",
@@ -44511,6 +44541,12 @@
"labelSize": 20,
"labelAlign": "center",
"labelVAlign": "middle",
"_$comp": [
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
}
],
"_$child": [
{
"_$id": "qgd1z6lm",
@@ -44696,6 +44732,10 @@
{
"_$type": "067a5d3a-4d7c-48d7-bb01-db2682fd6c01",
"scriptPath": "../src/views/Candy.ts"
},
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
}
],
"_$child": [
@@ -44790,6 +44830,10 @@
{
"_$type": "067a5d3a-4d7c-48d7-bb01-db2682fd6c01",
"scriptPath": "../src/views/Candy.ts"
},
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
}
],
"_$child": [
@@ -44884,6 +44928,10 @@
{
"_$type": "067a5d3a-4d7c-48d7-bb01-db2682fd6c01",
"scriptPath": "../src/views/Candy.ts"
},
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
}
],
"_$child": [
@@ -44970,7 +45018,7 @@
]
},
{
"_$id": "rmd0c3nr",
"_$id": "yg9r4jfg",
"_$type": "HBox",
"name": "HBox(2)",
"x": 348,
@@ -44980,7 +45028,7 @@
"align": "middle",
"_$child": [
{
"_$id": "nomr2y97",
"_$id": "dguouisn",
"_$type": "Box",
"name": "Box(1)",
"width": 116,
@@ -44989,11 +45037,15 @@
{
"_$type": "067a5d3a-4d7c-48d7-bb01-db2682fd6c01",
"scriptPath": "../src/views/Candy.ts"
},
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
}
],
"_$child": [
{
"_$id": "o7i2659h",
"_$id": "wh46ryv7",
"_$type": "Box",
"name": "offset",
"x": 58,
@@ -45008,7 +45060,7 @@
"centerY": 0,
"_$child": [
{
"_$id": "7qp4az0y",
"_$id": "4la6vvl8",
"_$type": "Sprite",
"name": "Sprite",
"width": 106,
@@ -45032,7 +45084,7 @@
]
},
{
"_$id": "4oidba1s",
"_$id": "020zisjj",
"_$type": "Label",
"name": "label",
"y": 18,
@@ -45051,7 +45103,7 @@
"strokeColor": "rgba(0, 0, 0, 1)"
},
{
"_$id": "1q6dwpth",
"_$id": "0gsjogz9",
"_$type": "Label",
"name": "label_left",
"y": 126,
@@ -45073,7 +45125,7 @@
]
},
{
"_$id": "0197591x",
"_$id": "2anx4ph9",
"_$type": "Box",
"name": "Box(2)",
"x": 116,
@@ -45083,11 +45135,15 @@
{
"_$type": "067a5d3a-4d7c-48d7-bb01-db2682fd6c01",
"scriptPath": "../src/views/Candy.ts"
},
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
}
],
"_$child": [
{
"_$id": "y955nhrf",
"_$id": "iw98ns4t",
"_$type": "Box",
"name": "offset",
"x": 58,
@@ -45102,7 +45158,7 @@
"centerY": 0,
"_$child": [
{
"_$id": "twxuuvzv",
"_$id": "6unm55cv",
"_$type": "Sprite",
"name": "Sprite",
"width": 106,
@@ -45126,7 +45182,7 @@
]
},
{
"_$id": "b8sykx1b",
"_$id": "9ut0g062",
"_$type": "Label",
"name": "label",
"y": 18,
@@ -45145,7 +45201,7 @@
"strokeColor": "rgba(0, 0, 0, 1)"
},
{
"_$id": "3b3i3l6t",
"_$id": "zqzpihqz",
"_$type": "Label",
"name": "label_left",
"y": 126,
@@ -45167,7 +45223,7 @@
]
},
{
"_$id": "a41kztnm",
"_$id": "etkk3rxo",
"_$type": "Box",
"name": "Box(3)",
"x": 232,
@@ -45177,11 +45233,15 @@
{
"_$type": "067a5d3a-4d7c-48d7-bb01-db2682fd6c01",
"scriptPath": "../src/views/Candy.ts"
},
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
}
],
"_$child": [
{
"_$id": "snk3moec",
"_$id": "p40qz1kj",
"_$type": "Box",
"name": "offset",
"x": 58,
@@ -45196,7 +45256,7 @@
"centerY": 0,
"_$child": [
{
"_$id": "y72x3oog",
"_$id": "dhxm42pz",
"_$type": "Sprite",
"name": "Sprite",
"width": 106,
@@ -45220,7 +45280,7 @@
]
},
{
"_$id": "lwkc0zua",
"_$id": "f2af8pko",
"_$type": "Label",
"name": "label",
"y": 18,
@@ -45239,7 +45299,7 @@
"strokeColor": "rgba(0, 0, 0, 1)"
},
{
"_$id": "v5cxh5ii",
"_$id": "epruravb",
"_$type": "Label",
"name": "label_left",
"y": 126,
@@ -45263,7 +45323,7 @@
]
},
{
"_$id": "yq0m8uwl",
"_$id": "bcs1k5h2",
"_$type": "HBox",
"name": "HBox(3)",
"x": 696,
@@ -45273,7 +45333,7 @@
"align": "middle",
"_$child": [
{
"_$id": "74m851ns",
"_$id": "0b5pacca",
"_$type": "Box",
"name": "Box(1)",
"width": 116,
@@ -45282,11 +45342,15 @@
{
"_$type": "067a5d3a-4d7c-48d7-bb01-db2682fd6c01",
"scriptPath": "../src/views/Candy.ts"
},
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
}
],
"_$child": [
{
"_$id": "f9lifzlk",
"_$id": "6tw45q6c",
"_$type": "Box",
"name": "offset",
"x": 58,
@@ -45301,7 +45365,7 @@
"centerY": 0,
"_$child": [
{
"_$id": "75vpusf1",
"_$id": "nrlpoolf",
"_$type": "Sprite",
"name": "Sprite",
"width": 106,
@@ -45325,7 +45389,7 @@
]
},
{
"_$id": "1zvrby3u",
"_$id": "44c6ufyx",
"_$type": "Label",
"name": "label",
"y": 18,
@@ -45344,7 +45408,7 @@
"strokeColor": "rgba(0, 0, 0, 1)"
},
{
"_$id": "x447q2jp",
"_$id": "k238uqmr",
"_$type": "Label",
"name": "label_left",
"y": 126,
@@ -45366,7 +45430,7 @@
]
},
{
"_$id": "k9kfi5fl",
"_$id": "d2pjmyjw",
"_$type": "Box",
"name": "Box(2)",
"x": 116,
@@ -45376,11 +45440,15 @@
{
"_$type": "067a5d3a-4d7c-48d7-bb01-db2682fd6c01",
"scriptPath": "../src/views/Candy.ts"
},
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
}
],
"_$child": [
{
"_$id": "lnme4lne",
"_$id": "6azvep56",
"_$type": "Box",
"name": "offset",
"x": 58,
@@ -45395,7 +45463,7 @@
"centerY": 0,
"_$child": [
{
"_$id": "t4l5usjw",
"_$id": "khy3dfyu",
"_$type": "Sprite",
"name": "Sprite",
"width": 106,
@@ -45419,7 +45487,7 @@
]
},
{
"_$id": "ro13ln05",
"_$id": "95argjvl",
"_$type": "Label",
"name": "label",
"y": 18,
@@ -45438,7 +45506,7 @@
"strokeColor": "rgba(0, 0, 0, 1)"
},
{
"_$id": "hhtskffi",
"_$id": "l2iopvz8",
"_$type": "Label",
"name": "label_left",
"y": 126,
@@ -45460,7 +45528,7 @@
]
},
{
"_$id": "v3syogys",
"_$id": "iul5u8ua",
"_$type": "Box",
"name": "Box(3)",
"x": 232,
@@ -45470,11 +45538,15 @@
{
"_$type": "067a5d3a-4d7c-48d7-bb01-db2682fd6c01",
"scriptPath": "../src/views/Candy.ts"
},
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
}
],
"_$child": [
{
"_$id": "zrpx3n2i",
"_$id": "p69gjp6h",
"_$type": "Box",
"name": "offset",
"x": 58,
@@ -45489,7 +45561,7 @@
"centerY": 0,
"_$child": [
{
"_$id": "h8u3iye3",
"_$id": "x85sapb8",
"_$type": "Sprite",
"name": "Sprite",
"width": 106,
@@ -45513,7 +45585,7 @@
]
},
{
"_$id": "tb0hh22p",
"_$id": "fdsqrs34",
"_$type": "Label",
"name": "label",
"y": 18,
@@ -45532,7 +45604,7 @@
"strokeColor": "rgba(0, 0, 0, 1)"
},
{
"_$id": "olcmpccm",
"_$id": "atopoz4l",
"_$type": "Label",
"name": "label_left",
"y": 126,