添加动画测试场景
This commit is contained in:
896
assets/EaseTest.ls
Normal file
896
assets/EaseTest.ls
Normal file
@@ -0,0 +1,896 @@
|
||||
{
|
||||
"_$ver": 1,
|
||||
"_$id": "zjv0jmmd",
|
||||
"_$type": "Scene",
|
||||
"left": 0,
|
||||
"right": 0,
|
||||
"top": 0,
|
||||
"bottom": 0,
|
||||
"name": "Scene2D",
|
||||
"width": 1920,
|
||||
"height": 1080,
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "ce663753-2b15-47c1-a70f-474d0b365bdd",
|
||||
"scriptPath": "../src/views/EaseTest.ts",
|
||||
"title": {
|
||||
"_$ref": "doldny1o"
|
||||
},
|
||||
"icon": {
|
||||
"_$ref": "sjw8qtvv"
|
||||
},
|
||||
"obj_eases": {
|
||||
"_$ref": "3opj2mm3"
|
||||
}
|
||||
}
|
||||
],
|
||||
"_$child": [
|
||||
{
|
||||
"_$id": "doldny1o",
|
||||
"_$type": "Label",
|
||||
"name": "Label",
|
||||
"x": 460,
|
||||
"y": 100,
|
||||
"width": 1000,
|
||||
"height": 100,
|
||||
"top": 100,
|
||||
"centerX": 0,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 100,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"align": "center",
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "sjw8qtvv",
|
||||
"_$type": "Image",
|
||||
"name": "Image",
|
||||
"x": 400,
|
||||
"y": 390,
|
||||
"width": 300,
|
||||
"height": 300,
|
||||
"centerX": -410,
|
||||
"centerY": 0,
|
||||
"skin": "res://7d235ac1-6755-4409-ab86-23aaf41e1537",
|
||||
"color": "#ffffff"
|
||||
},
|
||||
{
|
||||
"_$id": "3opj2mm3",
|
||||
"_$type": "VBox",
|
||||
"name": "eases",
|
||||
"x": 20,
|
||||
"y": 22,
|
||||
"width": 200,
|
||||
"height": 1036,
|
||||
"left": 20,
|
||||
"centerY": 0,
|
||||
"space": 0,
|
||||
"align": "center",
|
||||
"_$child": [
|
||||
{
|
||||
"_$id": "g1nr7or6",
|
||||
"_$type": "Label",
|
||||
"name": "Label(1)",
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "5p7m30az",
|
||||
"_$type": "Label",
|
||||
"name": "Label(2)",
|
||||
"y": 28,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "7rkb42pt",
|
||||
"_$type": "Label",
|
||||
"name": "Label(3)",
|
||||
"y": 56,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "1ge7k2jm",
|
||||
"_$type": "Label",
|
||||
"name": "Label(4)",
|
||||
"y": 84,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "ie95obnx",
|
||||
"_$type": "Label",
|
||||
"name": "Label(5)",
|
||||
"y": 112,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "7t65738a",
|
||||
"_$type": "Label",
|
||||
"name": "Label(6)",
|
||||
"y": 140,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "gh7bjqmb",
|
||||
"_$type": "Label",
|
||||
"name": "Label(7)",
|
||||
"y": 168,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "zvo83kqp",
|
||||
"_$type": "Label",
|
||||
"name": "Label(8)",
|
||||
"y": 196,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "ci7m7k2p",
|
||||
"_$type": "Label",
|
||||
"name": "Label(9)",
|
||||
"y": 224,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "613b52zw",
|
||||
"_$type": "Label",
|
||||
"name": "Label(10)",
|
||||
"y": 252,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "83h1kf9q",
|
||||
"_$type": "Label",
|
||||
"name": "Label(11)",
|
||||
"y": 280,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "wlrjp5no",
|
||||
"_$type": "Label",
|
||||
"name": "Label(12)",
|
||||
"y": 308,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "zdz5gklm",
|
||||
"_$type": "Label",
|
||||
"name": "Label(13)",
|
||||
"y": 336,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "tstbekgh",
|
||||
"_$type": "Label",
|
||||
"name": "Label(14)",
|
||||
"y": 364,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "6yeknx9o",
|
||||
"_$type": "Label",
|
||||
"name": "Label(15)",
|
||||
"y": 392,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "1c9ib9x9",
|
||||
"_$type": "Label",
|
||||
"name": "Label(16)",
|
||||
"y": 420,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "77ll2526",
|
||||
"_$type": "Label",
|
||||
"name": "Label(17)",
|
||||
"y": 448,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "i6nw7kk2",
|
||||
"_$type": "Label",
|
||||
"name": "Label(18)",
|
||||
"y": 476,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "eylrhevf",
|
||||
"_$type": "Label",
|
||||
"name": "Label(19)",
|
||||
"y": 504,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "sbosudij",
|
||||
"_$type": "Label",
|
||||
"name": "Label(20)",
|
||||
"y": 532,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "bvnvksaf",
|
||||
"_$type": "Label",
|
||||
"name": "Label(21)",
|
||||
"y": 560,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "59qeq7tg",
|
||||
"_$type": "Label",
|
||||
"name": "Label(22)",
|
||||
"y": 588,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "lqu1vny9",
|
||||
"_$type": "Label",
|
||||
"name": "Label(23)",
|
||||
"y": 616,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "y94x4q45",
|
||||
"_$type": "Label",
|
||||
"name": "Label(24)",
|
||||
"y": 644,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "j0j3z9uj",
|
||||
"_$type": "Label",
|
||||
"name": "Label(25)",
|
||||
"y": 672,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "ba7cywma",
|
||||
"_$type": "Label",
|
||||
"name": "Label(26)",
|
||||
"y": 700,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "4ozny0pv",
|
||||
"_$type": "Label",
|
||||
"name": "Label(27)",
|
||||
"y": 728,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "fte0app0",
|
||||
"_$type": "Label",
|
||||
"name": "Label(28)",
|
||||
"y": 756,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "4tzqirau",
|
||||
"_$type": "Label",
|
||||
"name": "Label(29)",
|
||||
"y": 784,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "rzj205ne",
|
||||
"_$type": "Label",
|
||||
"name": "Label(30)",
|
||||
"y": 812,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "3qjmx283",
|
||||
"_$type": "Label",
|
||||
"name": "Label(31)",
|
||||
"y": 840,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "n632d90g",
|
||||
"_$type": "Label",
|
||||
"name": "Label(32)",
|
||||
"y": 868,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "5q7ltsmd",
|
||||
"_$type": "Label",
|
||||
"name": "Label(33)",
|
||||
"y": 896,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "i0597f7e",
|
||||
"_$type": "Label",
|
||||
"name": "Label(34)",
|
||||
"y": 924,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "jkirwgwh",
|
||||
"_$type": "Label",
|
||||
"name": "Label(35)",
|
||||
"y": 952,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "umbtgony",
|
||||
"_$type": "Label",
|
||||
"name": "Label(36)",
|
||||
"y": 980,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_$id": "cpbqm0tn",
|
||||
"_$type": "Label",
|
||||
"name": "Label(37)",
|
||||
"y": 1008,
|
||||
"width": 200,
|
||||
"height": 28,
|
||||
"text": "bAck",
|
||||
"font": "ArialMT",
|
||||
"fontSize": 28,
|
||||
"color": "rgba(0, 0, 0, 1)",
|
||||
"bold": true,
|
||||
"valign": "middle",
|
||||
"padding": "0,0,0,0",
|
||||
"_$comp": [
|
||||
{
|
||||
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
|
||||
"scriptPath": "../src/views/common/CommonHover.ts",
|
||||
"hoverAlpha": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
3
assets/EaseTest.ls.meta
Normal file
3
assets/EaseTest.ls.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"uuid": "c3206348-0589-45a3-8dbd-4d153d5f457e"
|
||||
}
|
||||
86
src/views/EaseTest.ts
Normal file
86
src/views/EaseTest.ts
Normal file
@@ -0,0 +1,86 @@
|
||||
const { regClass, property } = Laya;
|
||||
|
||||
@regClass()
|
||||
export class Script extends Laya.Script {
|
||||
|
||||
@property(Laya.Label)
|
||||
public title: Laya.Label
|
||||
|
||||
@property(Laya.Image)
|
||||
public icon: Laya.Image
|
||||
|
||||
@property(Laya.Box)
|
||||
public obj_eases: Laya.Box
|
||||
|
||||
onAwake(): void {
|
||||
let list = []
|
||||
list.push(Laya.Ease.backIn)
|
||||
list.push(Laya.Ease.backInOut)
|
||||
list.push(Laya.Ease.backOut)
|
||||
|
||||
list.push(Laya.Ease.bounceIn)
|
||||
list.push(Laya.Ease.bounceInOut)
|
||||
list.push(Laya.Ease.bounceOut)
|
||||
|
||||
list.push(Laya.Ease.circIn)
|
||||
list.push(Laya.Ease.circInOut)
|
||||
list.push(Laya.Ease.circOut)
|
||||
|
||||
list.push(Laya.Ease.cubicIn)
|
||||
list.push(Laya.Ease.cubicInOut)
|
||||
list.push(Laya.Ease.cubicOut)
|
||||
|
||||
list.push(Laya.Ease.elasticIn)
|
||||
list.push(Laya.Ease.elasticInOut)
|
||||
list.push(Laya.Ease.elasticOut)
|
||||
|
||||
list.push(Laya.Ease.expoIn)
|
||||
list.push(Laya.Ease.expoInOut)
|
||||
list.push(Laya.Ease.expoOut)
|
||||
|
||||
list.push(Laya.Ease.linearIn)
|
||||
list.push(Laya.Ease.linearInOut)
|
||||
list.push(Laya.Ease.linearNone)
|
||||
list.push(Laya.Ease.linearOut)
|
||||
|
||||
list.push(Laya.Ease.quadIn)
|
||||
list.push(Laya.Ease.quadInOut)
|
||||
list.push(Laya.Ease.quadOut)
|
||||
|
||||
list.push(Laya.Ease.quartIn)
|
||||
list.push(Laya.Ease.quartInOut)
|
||||
list.push(Laya.Ease.quartOut)
|
||||
|
||||
list.push(Laya.Ease.quintIn)
|
||||
list.push(Laya.Ease.quintInOut)
|
||||
list.push(Laya.Ease.quintOut)
|
||||
|
||||
list.push(Laya.Ease.sineIn)
|
||||
list.push(Laya.Ease.sineInOut)
|
||||
list.push(Laya.Ease.sineOut)
|
||||
|
||||
list.push(Laya.Ease.strongIn)
|
||||
list.push(Laya.Ease.strongInOut)
|
||||
list.push(Laya.Ease.strongOut)
|
||||
console.log("length", list.length)
|
||||
|
||||
this.title.text = ""
|
||||
|
||||
for (let i = 0; i<list.length; i++) {
|
||||
const label = this.obj_eases.getChildAt(i) as Laya.Label
|
||||
label.text = list[i].name
|
||||
label.on(Laya.Event.CLICK, this, (evt: Laya.Event)=>{
|
||||
const label = evt.target as Laya.Label
|
||||
this.title.text = label.text
|
||||
this.icon.x = 400
|
||||
for (let j=0; j<list.length; j++) {
|
||||
const obj = list[j]
|
||||
if (obj.name === label.text) {
|
||||
Laya.Tween.to(this.icon, {x: 1500}, 2000, obj)
|
||||
break
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
3
src/views/EaseTest.ts.meta
Normal file
3
src/views/EaseTest.ts.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"uuid": "ce663753-2b15-47c1-a70f-474d0b365bdd"
|
||||
}
|
||||
Reference in New Issue
Block a user