diff --git a/assets/Scene.ls b/assets/Scene.ls index 82d1cb2..03fc9cd 100644 --- a/assets/Scene.ls +++ b/assets/Scene.ls @@ -7,8 +7,8 @@ "top": 0, "bottom": 0, "name": "Scene2D", - "width": 1080, - "height": 1920, + "width": 1920, + "height": 1080, "_$comp": [ { "_$type": "7bad1742-6eed-4d8d-81c0-501dc5bf03d6", @@ -17,7 +17,7 @@ { "_$type": "cd70cd5e-b4cd-4277-ac0a-2224cfbe89ac", "scriptPath": "../src/models/UIManager.ts", - "debug": false, + "debug": true, "mask": { "_$ref": "2668mvhf" }, @@ -31,8 +31,6 @@ "_$id": "4rxcl2w3", "_$type": "Panel", "name": "UIRoot", - "x": -420, - "y": 420, "width": 1920, "height": 1080, "_mouseState": 2, @@ -43,8 +41,8 @@ "_$id": "2668mvhf", "_$type": "Image", "name": "mask", - "width": 1080, - "height": 1920, + "width": 1920, + "height": 1080, "alpha": 0, "left": 0, "right": 0, @@ -57,8 +55,8 @@ "_$id": "c5p596do", "_$type": "Box", "name": "btn_clean", - "x": 440, - "y": 1860, + "x": 860, + "y": 1020, "width": 200, "height": 60, "bottom": 0, diff --git a/assets/resources/TopBar.lh b/assets/resources/TopBar.lh index c17587b..0518310 100644 --- a/assets/resources/TopBar.lh +++ b/assets/resources/TopBar.lh @@ -6,6 +6,7 @@ "width": 1920, "height": 120, "top": 0, + "centerX": 0, "_$comp": [ { "_$type": "cadd567d-5099-49b9-a9b3-b7c404d5fe1b", diff --git a/assets/resources/dc/DailyChallenge_H.lh b/assets/resources/dc/DailyChallenge_H.lh index ccf2e11..a9dfd94 100644 --- a/assets/resources/dc/DailyChallenge_H.lh +++ b/assets/resources/dc/DailyChallenge_H.lh @@ -7,9 +7,8 @@ "width": 1920, "height": 960, "_mouseState": 2, - "left": 0, - "right": 0, - "bottom": 0, + "top": 120, + "centerX": 0, "_$comp": [ { "_$type": "3f68d98d-3867-41a7-b277-a24d279a22fa", diff --git a/assets/resources/dc/TrophyRoom_H.lh b/assets/resources/dc/TrophyRoom_H.lh index 1aff468..0f8c731 100644 --- a/assets/resources/dc/TrophyRoom_H.lh +++ b/assets/resources/dc/TrophyRoom_H.lh @@ -7,9 +7,8 @@ "width": 1920, "height": 960, "_mouseState": 2, - "left": 0, - "right": 0, - "bottom": 0, + "top": 120, + "centerX": 0, "_$comp": [ { "_$type": "554595b0-0dd8-4e4b-8073-8d775219659c", @@ -41,20 +40,15 @@ "_$type": "Panel", "name": "Panel", "width": 1920, - "height": 960, + "height": 842, "_mouseState": 2, - "left": 0, - "right": 0, - "top": 0, - "bottom": 0, "scrollType": 2, "_$child": [ { "_$id": "f1u9ghcd", "_$type": "VBox", "name": "items", - "x": 45, - "width": 1830, + "width": 1920, "height": 960, "centerX": 0, "space": 40, @@ -65,7 +59,7 @@ "_$prefab": "c1b8084e-7edd-4519-9680-5deaab191d1d", "name": "TrophyRoomYear_H", "active": true, - "x": 0, + "x": 45, "y": 0, "visible": true, "_$child": [ @@ -115,12 +109,12 @@ "_$type": "Panel", "name": "Back", "x": 48, - "y": 825, + "y": 842, "width": 220, "height": 90, "_mouseState": 2, "left": 48, - "top": 825, + "top": 842, "_$child": [ { "_$id": "jdgsds0q", diff --git a/src/views/dc/DailyChallenge.ts b/src/views/dc/DailyChallenge.ts index 5c31c5d..971745c 100644 --- a/src/views/dc/DailyChallenge.ts +++ b/src/views/dc/DailyChallenge.ts @@ -158,7 +158,7 @@ export class DailyChallenge extends Laya.Script { public static EventUpdateTrophyButton(arg: any): void { if (DailyChallenge._instance) { - DailyChallenge._instance.btn_trophy.visible = arg + DailyChallenge._instance.owner.visible = arg } }