From 74758b232259c9f210ac76f46d5b62003cccf572 Mon Sep 17 00:00:00 2001 From: yangwen Date: Fri, 30 May 2025 08:54:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A3=8B=E7=9B=98UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/resources/Stage.lh | 939 ++++++++++++++++-------------------- assets/resources/Stage_H.lh | 876 ++++++++++++++------------------- src/views/Candy.ts | 6 +- src/views/Stage.ts | 7 +- 4 files changed, 780 insertions(+), 1048 deletions(-) diff --git a/assets/resources/Stage.lh b/assets/resources/Stage.lh index ed2713f..56991cb 100644 --- a/assets/resources/Stage.lh +++ b/assets/resources/Stage.lh @@ -3,8 +3,8 @@ "_$id": "wqmu50ko", "_$type": "Box", "name": "Stage", - "width": 1920, - "height": 1080, + "width": 1080, + "height": 1920, "_mouseState": 2, "left": 0, "right": 0, @@ -39,9 +39,6 @@ "obj_candys": { "_$ref": "2gza421u" }, - "obj_candy_labels": { - "_$ref": "jeyh2go0" - }, "btn_undo": { "_$ref": "uug6jz7y" }, @@ -61,8 +58,7 @@ "_$id": "xllpjjqz", "_$type": "Box", "name": "top", - "x": 420, - "y": -360, + "y": 60, "width": 1080, "height": 64, "_mouseState": 2, @@ -112,8 +108,8 @@ "_$id": "jtbep2gl", "_$type": "Box", "name": "Center", - "x": 435, - "y": -103, + "x": 15, + "y": 317, "width": 1050, "height": 1050, "_mouseState": 2, @@ -42669,8 +42665,8 @@ "_$id": "7qai1jdm", "_$type": "HBox", "name": "buttons", - "x": 511, - "y": 1012, + "x": 91, + "y": 1432, "width": 898, "height": 192, "_mouseState": 2, @@ -43050,11 +43046,12 @@ "_$id": "2gza421u", "_$type": "HBox", "name": "candys", - "x": 438, - "y": 1274, + "x": 18, + "y": 1694, "width": 1044, "height": 180, "_mouseState": 2, + "drawCallOptimize": true, "centerX": 0, "centerY": 824, "space": 0, @@ -43092,6 +43089,7 @@ "height": 180, "anchorX": 0.5, "anchorY": 0.5, + "scaleX": 0.95, "mouseThrough": true, "_gcmds": [ { @@ -43108,12 +43106,53 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "z7eljbn6", + "_$type": "Label", + "name": "label", + "x": -2, + "y": 18, + "width": 100, + "height": 108, + "mouseThrough": true, + "top": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 108, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "gzvh8lo2", + "_$type": "Label", + "name": "label_left", + "x": -2, + "y": 126, + "width": 100, + "height": 36, + "mouseThrough": true, + "bottom": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] }, { - "_$id": "3zaraztw", + "_$id": "4tw7nl6f", "_$type": "Box", "name": "Box(2)", "x": 116, @@ -43127,7 +43166,7 @@ ], "_$child": [ { - "_$id": "rx7tbik5", + "_$id": "o1xzcuu6", "_$type": "Sprite", "name": "Sprite", "x": 58, @@ -43136,6 +43175,7 @@ "height": 180, "anchorX": 0.5, "anchorY": 0.5, + "scaleX": 0.95, "mouseThrough": true, "_gcmds": [ { @@ -43152,12 +43192,53 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "bvu67j62", + "_$type": "Label", + "name": "label", + "x": -2, + "y": 18, + "width": 100, + "height": 108, + "mouseThrough": true, + "top": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 108, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "by1fokzr", + "_$type": "Label", + "name": "label_left", + "x": -2, + "y": 126, + "width": 100, + "height": 36, + "mouseThrough": true, + "bottom": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] }, { - "_$id": "uovnq3uc", + "_$id": "hxk423cy", "_$type": "Box", "name": "Box(3)", "x": 232, @@ -43171,7 +43252,7 @@ ], "_$child": [ { - "_$id": "fkr108uj", + "_$id": "e1rpds3r", "_$type": "Sprite", "name": "Sprite", "x": 58, @@ -43180,6 +43261,7 @@ "height": 180, "anchorX": 0.5, "anchorY": 0.5, + "scaleX": 0.95, "mouseThrough": true, "_gcmds": [ { @@ -43196,6 +43278,47 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "x5b8fn24", + "_$type": "Label", + "name": "label", + "x": -2, + "y": 18, + "width": 100, + "height": 108, + "mouseThrough": true, + "top": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 108, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "7o58hlxy", + "_$type": "Label", + "name": "label_left", + "x": -2, + "y": 126, + "width": 100, + "height": 36, + "mouseThrough": true, + "bottom": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] @@ -43203,7 +43326,7 @@ ] }, { - "_$id": "9xkv3fct", + "_$id": "7jfstf7r", "_$type": "HBox", "name": "HBox(2)", "x": 348, @@ -43213,7 +43336,7 @@ "align": "middle", "_$child": [ { - "_$id": "0w6qin9b", + "_$id": "otgly9y1", "_$type": "Box", "name": "Box(1)", "width": 116, @@ -43226,7 +43349,7 @@ ], "_$child": [ { - "_$id": "r3o7zdlu", + "_$id": "10xqz482", "_$type": "Sprite", "name": "Sprite", "x": 58, @@ -43235,6 +43358,7 @@ "height": 180, "anchorX": 0.5, "anchorY": 0.5, + "scaleX": 0.95, "mouseThrough": true, "_gcmds": [ { @@ -43251,12 +43375,53 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "cvzvmaw3", + "_$type": "Label", + "name": "label", + "x": -2, + "y": 18, + "width": 100, + "height": 108, + "mouseThrough": true, + "top": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 108, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "d8g6xv65", + "_$type": "Label", + "name": "label_left", + "x": -2, + "y": 126, + "width": 100, + "height": 36, + "mouseThrough": true, + "bottom": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] }, { - "_$id": "9p9wn5vx", + "_$id": "dc9g1mn9", "_$type": "Box", "name": "Box(2)", "x": 116, @@ -43270,7 +43435,7 @@ ], "_$child": [ { - "_$id": "d9a3erhd", + "_$id": "4xfraq6h", "_$type": "Sprite", "name": "Sprite", "x": 58, @@ -43279,6 +43444,7 @@ "height": 180, "anchorX": 0.5, "anchorY": 0.5, + "scaleX": 0.95, "mouseThrough": true, "_gcmds": [ { @@ -43295,12 +43461,53 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "e64jrerm", + "_$type": "Label", + "name": "label", + "x": -2, + "y": 18, + "width": 100, + "height": 108, + "mouseThrough": true, + "top": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 108, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "9nv9bjzc", + "_$type": "Label", + "name": "label_left", + "x": -2, + "y": 126, + "width": 100, + "height": 36, + "mouseThrough": true, + "bottom": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] }, { - "_$id": "gv4vv6ih", + "_$id": "uzyoqnb0", "_$type": "Box", "name": "Box(3)", "x": 232, @@ -43314,7 +43521,7 @@ ], "_$child": [ { - "_$id": "2ma3mold", + "_$id": "9ecdccc3", "_$type": "Sprite", "name": "Sprite", "x": 58, @@ -43323,6 +43530,7 @@ "height": 180, "anchorX": 0.5, "anchorY": 0.5, + "scaleX": 0.95, "mouseThrough": true, "_gcmds": [ { @@ -43339,6 +43547,47 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "z1chjwef", + "_$type": "Label", + "name": "label", + "x": -2, + "y": 18, + "width": 100, + "height": 108, + "mouseThrough": true, + "top": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 108, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "oeyv16ui", + "_$type": "Label", + "name": "label_left", + "x": -2, + "y": 126, + "width": 100, + "height": 36, + "mouseThrough": true, + "bottom": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] @@ -43346,7 +43595,7 @@ ] }, { - "_$id": "woh11ufr", + "_$id": "6a6mbql5", "_$type": "HBox", "name": "HBox(3)", "x": 696, @@ -43356,7 +43605,7 @@ "align": "middle", "_$child": [ { - "_$id": "csfchuoz", + "_$id": "cep1fw6u", "_$type": "Box", "name": "Box(1)", "width": 116, @@ -43369,7 +43618,7 @@ ], "_$child": [ { - "_$id": "fjjvbs6t", + "_$id": "5euc11q7", "_$type": "Sprite", "name": "Sprite", "x": 58, @@ -43378,6 +43627,7 @@ "height": 180, "anchorX": 0.5, "anchorY": 0.5, + "scaleX": 0.95, "mouseThrough": true, "_gcmds": [ { @@ -43394,12 +43644,53 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "ck6en3lh", + "_$type": "Label", + "name": "label", + "x": -2, + "y": 18, + "width": 100, + "height": 108, + "mouseThrough": true, + "top": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 108, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "a43ctdti", + "_$type": "Label", + "name": "label_left", + "x": -2, + "y": 126, + "width": 100, + "height": 36, + "mouseThrough": true, + "bottom": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] }, { - "_$id": "04277jw2", + "_$id": "t5n7h7wd", "_$type": "Box", "name": "Box(2)", "x": 116, @@ -43413,7 +43704,7 @@ ], "_$child": [ { - "_$id": "2r1wu4bz", + "_$id": "fyg5hjpx", "_$type": "Sprite", "name": "Sprite", "x": 58, @@ -43422,6 +43713,7 @@ "height": 180, "anchorX": 0.5, "anchorY": 0.5, + "scaleX": 0.95, "mouseThrough": true, "_gcmds": [ { @@ -43438,12 +43730,53 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "859psqil", + "_$type": "Label", + "name": "label", + "x": -2, + "y": 18, + "width": 100, + "height": 108, + "mouseThrough": true, + "top": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 108, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "3wrait7c", + "_$type": "Label", + "name": "label_left", + "x": -2, + "y": 126, + "width": 100, + "height": 36, + "mouseThrough": true, + "bottom": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] }, { - "_$id": "nisjmquc", + "_$id": "s12w45nk", "_$type": "Box", "name": "Box(3)", "x": 232, @@ -43457,7 +43790,7 @@ ], "_$child": [ { - "_$id": "vum4kfua", + "_$id": "ze0mtlu8", "_$type": "Sprite", "name": "Sprite", "x": 58, @@ -43466,6 +43799,7 @@ "height": 180, "anchorX": 0.5, "anchorY": 0.5, + "scaleX": 0.95, "mouseThrough": true, "_gcmds": [ { @@ -43482,6 +43816,47 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "g2xhjo73", + "_$type": "Label", + "name": "label", + "x": -2, + "y": 18, + "width": 100, + "height": 108, + "mouseThrough": true, + "top": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 108, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "47cg52ty", + "_$type": "Label", + "name": "label_left", + "x": -2, + "y": 126, + "width": 100, + "height": 36, + "mouseThrough": true, + "bottom": 18, + "centerX": -5, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] @@ -43489,508 +43864,6 @@ ] } ] - }, - { - "_$id": "jeyh2go0", - "_$type": "HBox", - "name": "candy_labels", - "x": 438, - "y": 1274, - "width": 1044, - "height": 180, - "_mouseState": 2, - "mouseThrough": true, - "centerX": 0, - "centerY": 824, - "space": 0, - "align": "middle", - "_$child": [ - { - "_$id": "9qmytprr", - "_$type": "HBox", - "name": "HBox(1)", - "width": 348, - "height": 180, - "mouseThrough": true, - "space": 0, - "align": "middle", - "_$child": [ - { - "_$id": "0wc7iu92", - "_$type": "Box", - "name": "Box(1)", - "width": 116, - "height": 180, - "mouseThrough": true, - "_$child": [ - { - "_$id": "z7eljbn6", - "_$type": "Label", - "name": "label", - "x": 8, - "y": 18, - "width": 100, - "height": 108, - "mouseThrough": true, - "top": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 108, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "gzvh8lo2", - "_$type": "Label", - "name": "label_left", - "x": 8, - "y": 126, - "width": 100, - "height": 36, - "mouseThrough": true, - "bottom": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - }, - { - "_$id": "fys3q763", - "_$type": "Box", - "name": "Box(2)", - "x": 116, - "width": 116, - "height": 180, - "mouseThrough": true, - "_$child": [ - { - "_$id": "2f6ivlp6", - "_$type": "Label", - "name": "label", - "x": 8, - "y": 18, - "width": 100, - "height": 108, - "mouseThrough": true, - "top": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 108, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "2c6wxq0f", - "_$type": "Label", - "name": "label_left", - "x": 8, - "y": 126, - "width": 100, - "height": 36, - "mouseThrough": true, - "bottom": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - }, - { - "_$id": "yt9tl6yy", - "_$type": "Box", - "name": "Box(3)", - "x": 232, - "width": 116, - "height": 180, - "mouseThrough": true, - "_$child": [ - { - "_$id": "yv54ts4t", - "_$type": "Label", - "name": "label", - "x": 8, - "y": 18, - "width": 100, - "height": 108, - "mouseThrough": true, - "top": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 108, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "7q08neo1", - "_$type": "Label", - "name": "label_left", - "x": 8, - "y": 126, - "width": 100, - "height": 36, - "mouseThrough": true, - "bottom": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - } - ] - }, - { - "_$id": "nt847qcp", - "_$type": "HBox", - "name": "HBox(2)", - "x": 348, - "width": 348, - "height": 180, - "mouseThrough": true, - "space": 0, - "align": "middle", - "_$child": [ - { - "_$id": "svq7l160", - "_$type": "Box", - "name": "Box(1)", - "width": 116, - "height": 180, - "mouseThrough": true, - "_$child": [ - { - "_$id": "e8hwyciz", - "_$type": "Label", - "name": "label", - "x": 8, - "y": 18, - "width": 100, - "height": 108, - "mouseThrough": true, - "top": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 108, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "oed1w7hc", - "_$type": "Label", - "name": "label_left", - "x": 8, - "y": 126, - "width": 100, - "height": 36, - "mouseThrough": true, - "bottom": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - }, - { - "_$id": "9181xp9t", - "_$type": "Box", - "name": "Box(2)", - "x": 116, - "width": 116, - "height": 180, - "mouseThrough": true, - "_$child": [ - { - "_$id": "09w6txy3", - "_$type": "Label", - "name": "label", - "x": 8, - "y": 18, - "width": 100, - "height": 108, - "mouseThrough": true, - "top": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 108, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "7sloe194", - "_$type": "Label", - "name": "label_left", - "x": 8, - "y": 126, - "width": 100, - "height": 36, - "mouseThrough": true, - "bottom": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - }, - { - "_$id": "pmbdn6qb", - "_$type": "Box", - "name": "Box(3)", - "x": 232, - "width": 116, - "height": 180, - "mouseThrough": true, - "_$child": [ - { - "_$id": "n7liiaqz", - "_$type": "Label", - "name": "label", - "x": 8, - "y": 18, - "width": 100, - "height": 108, - "mouseThrough": true, - "top": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 108, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "j7yc9gix", - "_$type": "Label", - "name": "label_left", - "x": 8, - "y": 126, - "width": 100, - "height": 36, - "mouseThrough": true, - "bottom": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - } - ] - }, - { - "_$id": "4oens6pf", - "_$type": "HBox", - "name": "HBox(3)", - "x": 696, - "width": 348, - "height": 180, - "mouseThrough": true, - "space": 0, - "align": "middle", - "_$child": [ - { - "_$id": "3o5tc4px", - "_$type": "Box", - "name": "Box(1)", - "width": 116, - "height": 180, - "mouseThrough": true, - "_$child": [ - { - "_$id": "1ilxvku0", - "_$type": "Label", - "name": "label", - "x": 8, - "y": 18, - "width": 100, - "height": 108, - "mouseThrough": true, - "top": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 108, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "ds71vst1", - "_$type": "Label", - "name": "label_left", - "x": 8, - "y": 126, - "width": 100, - "height": 36, - "mouseThrough": true, - "bottom": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - }, - { - "_$id": "0ryfixff", - "_$type": "Box", - "name": "Box(2)", - "x": 116, - "width": 116, - "height": 180, - "mouseThrough": true, - "_$child": [ - { - "_$id": "ppizl0ly", - "_$type": "Label", - "name": "label", - "x": 8, - "y": 18, - "width": 100, - "height": 108, - "mouseThrough": true, - "top": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 108, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "5wawjai1", - "_$type": "Label", - "name": "label_left", - "x": 8, - "y": 126, - "width": 100, - "height": 36, - "mouseThrough": true, - "bottom": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - }, - { - "_$id": "iq6y77qs", - "_$type": "Box", - "name": "Box(3)", - "x": 232, - "width": 116, - "height": 180, - "mouseThrough": true, - "_$child": [ - { - "_$id": "j6l2msum", - "_$type": "Label", - "name": "label", - "x": 8, - "y": 18, - "width": 100, - "height": 108, - "mouseThrough": true, - "top": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 108, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "t2sawlni", - "_$type": "Label", - "name": "label_left", - "x": 8, - "y": 126, - "width": 100, - "height": 36, - "mouseThrough": true, - "bottom": 18, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - } - ] - } - ] } ] } \ No newline at end of file diff --git a/assets/resources/Stage_H.lh b/assets/resources/Stage_H.lh index 703eb8f..8856384 100644 --- a/assets/resources/Stage_H.lh +++ b/assets/resources/Stage_H.lh @@ -41,9 +41,6 @@ "obj_candys": { "_$ref": "fmnkhvuy" }, - "obj_candy_labels": { - "_$ref": "6soivbgd" - }, "btn_undo": { "_$ref": "5tjil58p" }, @@ -42784,6 +42781,7 @@ "y": 264, "width": 912, "height": 444, + "drawCallOptimize": true, "bottom": 144, "centerX": 0, "space": 24, @@ -42838,12 +42836,51 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "tw2rwa95", + "_$type": "Label", + "name": "label", + "y": 12, + "width": 288, + "height": 72, + "mouseThrough": true, + "top": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 72, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "vtmwtzpe", + "_$type": "Label", + "name": "label_left", + "y": 84, + "width": 288, + "height": 36, + "mouseThrough": true, + "bottom": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] }, { - "_$id": "rwvcmpyc", + "_$id": "k2agre19", "_$type": "Box", "name": "Box(2)", "x": 312, @@ -42857,7 +42894,7 @@ ], "_$child": [ { - "_$id": "sgj96rj6", + "_$id": "8i53ai7d", "_$type": "Sprite", "name": "Sprite", "x": 144, @@ -42882,12 +42919,51 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "hnrnzxq1", + "_$type": "Label", + "name": "label", + "y": 12, + "width": 288, + "height": 72, + "mouseThrough": true, + "top": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 72, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "ymbuqf0i", + "_$type": "Label", + "name": "label_left", + "y": 84, + "width": 288, + "height": 36, + "mouseThrough": true, + "bottom": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] }, { - "_$id": "d4qobser", + "_$id": "ov8zyk4w", "_$type": "Box", "name": "Box(3)", "x": 624, @@ -42901,7 +42977,7 @@ ], "_$child": [ { - "_$id": "gxoxm33e", + "_$id": "xv972cn5", "_$type": "Sprite", "name": "Sprite", "x": 144, @@ -42926,6 +43002,45 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "eyvsp4uv", + "_$type": "Label", + "name": "label", + "y": 12, + "width": 288, + "height": 72, + "mouseThrough": true, + "top": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 72, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "rxfb0r24", + "_$type": "Label", + "name": "label_left", + "y": 84, + "width": 288, + "height": 36, + "mouseThrough": true, + "bottom": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] @@ -42933,7 +43048,7 @@ ] }, { - "_$id": "3fo750og", + "_$id": "44dtxtj5", "_$type": "HBox", "name": "HBox(2)", "y": 156, @@ -42944,7 +43059,7 @@ "align": "middle", "_$child": [ { - "_$id": "gtuu0ec7", + "_$id": "xn8mm8rz", "_$type": "Box", "name": "Box(1)", "width": 288, @@ -42957,7 +43072,7 @@ ], "_$child": [ { - "_$id": "1d6m45ub", + "_$id": "jdki4qby", "_$type": "Sprite", "name": "Sprite", "x": 144, @@ -42982,12 +43097,51 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "rrvvs3wb", + "_$type": "Label", + "name": "label", + "y": 12, + "width": 288, + "height": 72, + "mouseThrough": true, + "top": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 72, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "615gu9t2", + "_$type": "Label", + "name": "label_left", + "y": 84, + "width": 288, + "height": 36, + "mouseThrough": true, + "bottom": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] }, { - "_$id": "t509xycm", + "_$id": "mdhtax6b", "_$type": "Box", "name": "Box(2)", "x": 312, @@ -43001,7 +43155,7 @@ ], "_$child": [ { - "_$id": "66kkhwcj", + "_$id": "nwgk3ujp", "_$type": "Sprite", "name": "Sprite", "x": 144, @@ -43026,12 +43180,51 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "q56jt7m5", + "_$type": "Label", + "name": "label", + "y": 12, + "width": 288, + "height": 72, + "mouseThrough": true, + "top": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 72, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "shf2pceh", + "_$type": "Label", + "name": "label_left", + "y": 84, + "width": 288, + "height": 36, + "mouseThrough": true, + "bottom": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] }, { - "_$id": "0mei4952", + "_$id": "rthxrc6h", "_$type": "Box", "name": "Box(3)", "x": 624, @@ -43045,7 +43238,7 @@ ], "_$child": [ { - "_$id": "gb1d3g50", + "_$id": "y3ykmte6", "_$type": "Sprite", "name": "Sprite", "x": 144, @@ -43070,6 +43263,45 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "xowjtmt7", + "_$type": "Label", + "name": "label", + "y": 12, + "width": 288, + "height": 72, + "mouseThrough": true, + "top": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 72, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "dlvz14ar", + "_$type": "Label", + "name": "label_left", + "y": 84, + "width": 288, + "height": 36, + "mouseThrough": true, + "bottom": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] @@ -43077,7 +43309,7 @@ ] }, { - "_$id": "y497kggz", + "_$id": "7gmoro9s", "_$type": "HBox", "name": "HBox(3)", "y": 312, @@ -43088,7 +43320,7 @@ "align": "middle", "_$child": [ { - "_$id": "u4m3mokt", + "_$id": "2a4115t4", "_$type": "Box", "name": "Box(1)", "width": 288, @@ -43101,7 +43333,7 @@ ], "_$child": [ { - "_$id": "5escrnms", + "_$id": "y6k6sq0m", "_$type": "Sprite", "name": "Sprite", "x": 144, @@ -43126,12 +43358,51 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "ekly8wek", + "_$type": "Label", + "name": "label", + "y": 12, + "width": 288, + "height": 72, + "mouseThrough": true, + "top": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 72, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "klx1sche", + "_$type": "Label", + "name": "label_left", + "y": 84, + "width": 288, + "height": 36, + "mouseThrough": true, + "bottom": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] }, { - "_$id": "nznwumb7", + "_$id": "z6uwk8yn", "_$type": "Box", "name": "Box(2)", "x": 312, @@ -43145,7 +43416,7 @@ ], "_$child": [ { - "_$id": "8w7ie5xw", + "_$id": "a0cg4cxg", "_$type": "Sprite", "name": "Sprite", "x": 144, @@ -43170,12 +43441,51 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "sobq6uqu", + "_$type": "Label", + "name": "label", + "y": 12, + "width": 288, + "height": 72, + "mouseThrough": true, + "top": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 72, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "w9lf1y1z", + "_$type": "Label", + "name": "label_left", + "y": 84, + "width": 288, + "height": 36, + "mouseThrough": true, + "bottom": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] }, { - "_$id": "0pazsfrh", + "_$id": "75hsgmcz", "_$type": "Box", "name": "Box(3)", "x": 624, @@ -43189,7 +43499,7 @@ ], "_$child": [ { - "_$id": "jkauafxp", + "_$id": "5s99v90f", "_$type": "Sprite", "name": "Sprite", "x": 144, @@ -43214,6 +43524,45 @@ "lineWidth": 1, "fillColor": "#FFFFFF" } + ], + "_$child": [ + { + "_$id": "jjy61oc9", + "_$type": "Label", + "name": "label", + "y": 12, + "width": 288, + "height": 72, + "mouseThrough": true, + "top": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 72, + "color": "rgba(37, 89, 192, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0", + "strokeColor": "rgba(0, 0, 0, 1)" + }, + { + "_$id": "eswp8g2f", + "_$type": "Label", + "name": "label_left", + "y": 84, + "width": 288, + "height": 36, + "mouseThrough": true, + "bottom": 12, + "centerX": 0, + "text": "9", + "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", + "fontSize": 36, + "color": "rgba(123, 129, 140, 1)", + "align": "center", + "valign": "middle", + "padding": "0,0,0,0" + } ] } ] @@ -43222,491 +43571,6 @@ } ] }, - { - "_$id": "6soivbgd", - "_$type": "VBox", - "name": "candy_labels", - "y": 264, - "width": 912, - "height": 444, - "mouseThrough": true, - "bottom": 144, - "centerX": 0, - "space": 24, - "align": "center", - "_$child": [ - { - "_$id": "saf0gcgu", - "_$type": "HBox", - "name": "HBox(1)", - "width": 912, - "height": 132, - "_mouseState": 2, - "mouseThrough": true, - "space": 24, - "align": "middle", - "_$child": [ - { - "_$id": "tpxsewms", - "_$type": "Box", - "name": "Box(1)", - "width": 288, - "height": 132, - "mouseThrough": true, - "_$child": [ - { - "_$id": "tw2rwa95", - "_$type": "Label", - "name": "label", - "y": 12, - "width": 288, - "height": 72, - "mouseThrough": true, - "top": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 72, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "vtmwtzpe", - "_$type": "Label", - "name": "label_left", - "y": 84, - "width": 288, - "height": 36, - "mouseThrough": true, - "bottom": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - }, - { - "_$id": "z8me9qib", - "_$type": "Box", - "name": "Box(2)", - "x": 312, - "width": 288, - "height": 132, - "mouseThrough": true, - "_$child": [ - { - "_$id": "6iaixkux", - "_$type": "Label", - "name": "label", - "y": 12, - "width": 288, - "height": 72, - "mouseThrough": true, - "top": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 72, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "12b5spe4", - "_$type": "Label", - "name": "label_left", - "y": 84, - "width": 288, - "height": 36, - "mouseThrough": true, - "bottom": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - }, - { - "_$id": "qnzmnwc6", - "_$type": "Box", - "name": "Box(3)", - "x": 624, - "width": 288, - "height": 132, - "mouseThrough": true, - "_$child": [ - { - "_$id": "ftyqhc42", - "_$type": "Label", - "name": "label", - "y": 12, - "width": 288, - "height": 72, - "mouseThrough": true, - "top": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 72, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "gqlmk0qs", - "_$type": "Label", - "name": "label_left", - "y": 84, - "width": 288, - "height": 36, - "mouseThrough": true, - "bottom": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - } - ] - }, - { - "_$id": "flmh6tz2", - "_$type": "HBox", - "name": "HBox(2)", - "y": 156, - "width": 912, - "height": 132, - "_mouseState": 2, - "mouseThrough": true, - "space": 24, - "align": "middle", - "_$child": [ - { - "_$id": "yzcybv89", - "_$type": "Box", - "name": "Box(1)", - "width": 288, - "height": 132, - "mouseThrough": true, - "_$child": [ - { - "_$id": "sefab7ni", - "_$type": "Label", - "name": "label", - "y": 12, - "width": 288, - "height": 72, - "mouseThrough": true, - "top": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 72, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "crbj68aw", - "_$type": "Label", - "name": "label_left", - "y": 84, - "width": 288, - "height": 36, - "mouseThrough": true, - "bottom": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - }, - { - "_$id": "ux6dx9gk", - "_$type": "Box", - "name": "Box(2)", - "x": 312, - "width": 288, - "height": 132, - "mouseThrough": true, - "_$child": [ - { - "_$id": "hoinchqg", - "_$type": "Label", - "name": "label", - "y": 12, - "width": 288, - "height": 72, - "mouseThrough": true, - "top": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 72, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "kkyxyhp3", - "_$type": "Label", - "name": "label_left", - "y": 84, - "width": 288, - "height": 36, - "mouseThrough": true, - "bottom": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - }, - { - "_$id": "sxno53go", - "_$type": "Box", - "name": "Box(3)", - "x": 624, - "width": 288, - "height": 132, - "mouseThrough": true, - "_$child": [ - { - "_$id": "9dcbv83k", - "_$type": "Label", - "name": "label", - "y": 12, - "width": 288, - "height": 72, - "mouseThrough": true, - "top": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 72, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "1goy9u0m", - "_$type": "Label", - "name": "label_left", - "y": 84, - "width": 288, - "height": 36, - "mouseThrough": true, - "bottom": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - } - ] - }, - { - "_$id": "a7qgh7ir", - "_$type": "HBox", - "name": "HBox(3)", - "y": 312, - "width": 912, - "height": 132, - "_mouseState": 2, - "mouseThrough": true, - "space": 24, - "align": "middle", - "_$child": [ - { - "_$id": "keqwg6g2", - "_$type": "Box", - "name": "Box(1)", - "width": 288, - "height": 132, - "mouseThrough": true, - "_$child": [ - { - "_$id": "0nov0jfk", - "_$type": "Label", - "name": "label", - "y": 12, - "width": 288, - "height": 72, - "mouseThrough": true, - "top": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 72, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "ze22iq15", - "_$type": "Label", - "name": "label_left", - "y": 84, - "width": 288, - "height": 36, - "mouseThrough": true, - "bottom": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - }, - { - "_$id": "b7129v1q", - "_$type": "Box", - "name": "Box(2)", - "x": 312, - "width": 288, - "height": 132, - "mouseThrough": true, - "_$child": [ - { - "_$id": "jb9blzao", - "_$type": "Label", - "name": "label", - "y": 12, - "width": 288, - "height": 72, - "mouseThrough": true, - "top": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 72, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "38qqqlrk", - "_$type": "Label", - "name": "label_left", - "y": 84, - "width": 288, - "height": 36, - "mouseThrough": true, - "bottom": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - }, - { - "_$id": "s3rj9u39", - "_$type": "Box", - "name": "Box(3)", - "x": 624, - "width": 288, - "height": 132, - "mouseThrough": true, - "_$child": [ - { - "_$id": "9kg8dr88", - "_$type": "Label", - "name": "label", - "y": 12, - "width": 288, - "height": 72, - "mouseThrough": true, - "top": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 72, - "color": "rgba(37, 89, 192, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0", - "strokeColor": "rgba(0, 0, 0, 1)" - }, - { - "_$id": "6o8ygx4y", - "_$type": "Label", - "name": "label_left", - "y": 84, - "width": 288, - "height": 36, - "mouseThrough": true, - "bottom": 12, - "centerX": 0, - "text": "9", - "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", - "fontSize": 36, - "color": "rgba(123, 129, 140, 1)", - "align": "center", - "valign": "middle", - "padding": "0,0,0,0" - } - ] - } - ] - } - ] - }, { "_$id": "qegjy7c7", "_$type": "Box", diff --git a/src/views/Candy.ts b/src/views/Candy.ts index f02cdeb..eb3a0cc 100644 --- a/src/views/Candy.ts +++ b/src/views/Candy.ts @@ -11,11 +11,11 @@ export class Candy extends Laya.Script { private show: number private left: number - public onInit(label_obj: Laya.Box, handler: any, func: any): void { + public onInit(handler: any, func: any): void { this.owner.on(Laya.Event.CLICK, handler, func) this.show_sprite = this.owner.getChildByName("Sprite") as Laya.Sprite - this.label_show = label_obj.getChildByName("label") as Laya.Label - this.label_left = label_obj.getChildByName("label_left") as Laya.Label + this.label_show = this.show_sprite.getChildByName("label") as Laya.Label + this.label_left = this.show_sprite.getChildByName("label_left") as Laya.Label } public setNoteStatus(note_open: boolean) { diff --git a/src/views/Stage.ts b/src/views/Stage.ts index 7a832ae..56d4801 100644 --- a/src/views/Stage.ts +++ b/src/views/Stage.ts @@ -47,9 +47,6 @@ export class Stage extends Laya.Script { @property(Laya.Box) public obj_candys: Laya.Box - @property(Laya.Box) - public obj_candy_labels: Laya.Box - private candys: Array = [] @property(Laya.Button) @@ -125,12 +122,10 @@ export class Stage extends Laya.Script { } for (let i = 0; i < this.obj_candys.numChildren; i++) { const hbox = this.obj_candys.getChildAt(i) - const l_hbox = this.obj_candy_labels.getChildAt(i) for (let j = 0; j < hbox.numChildren; j++) { const candy = hbox.getChildAt(j).getComponent(Candy) this.candys.push(candy) - const box = l_hbox.getChildAt(j) as Laya.Box - candy.onInit(box, this, this.onClickCandy) + candy.onInit(this, this.onClickCandy) } }