UI遮挡问题

This commit is contained in:
2025-05-30 14:46:49 +08:00
parent 23a2f686cb
commit c191f8c747
5 changed files with 18 additions and 26 deletions

View File

@@ -7,8 +7,8 @@
"top": 0, "top": 0,
"bottom": 0, "bottom": 0,
"name": "Scene2D", "name": "Scene2D",
"width": 1080, "width": 1920,
"height": 1920, "height": 1080,
"_$comp": [ "_$comp": [
{ {
"_$type": "7bad1742-6eed-4d8d-81c0-501dc5bf03d6", "_$type": "7bad1742-6eed-4d8d-81c0-501dc5bf03d6",
@@ -17,7 +17,7 @@
{ {
"_$type": "cd70cd5e-b4cd-4277-ac0a-2224cfbe89ac", "_$type": "cd70cd5e-b4cd-4277-ac0a-2224cfbe89ac",
"scriptPath": "../src/models/UIManager.ts", "scriptPath": "../src/models/UIManager.ts",
"debug": false, "debug": true,
"mask": { "mask": {
"_$ref": "2668mvhf" "_$ref": "2668mvhf"
}, },
@@ -31,8 +31,6 @@
"_$id": "4rxcl2w3", "_$id": "4rxcl2w3",
"_$type": "Panel", "_$type": "Panel",
"name": "UIRoot", "name": "UIRoot",
"x": -420,
"y": 420,
"width": 1920, "width": 1920,
"height": 1080, "height": 1080,
"_mouseState": 2, "_mouseState": 2,
@@ -43,8 +41,8 @@
"_$id": "2668mvhf", "_$id": "2668mvhf",
"_$type": "Image", "_$type": "Image",
"name": "mask", "name": "mask",
"width": 1080, "width": 1920,
"height": 1920, "height": 1080,
"alpha": 0, "alpha": 0,
"left": 0, "left": 0,
"right": 0, "right": 0,
@@ -57,8 +55,8 @@
"_$id": "c5p596do", "_$id": "c5p596do",
"_$type": "Box", "_$type": "Box",
"name": "btn_clean", "name": "btn_clean",
"x": 440, "x": 860,
"y": 1860, "y": 1020,
"width": 200, "width": 200,
"height": 60, "height": 60,
"bottom": 0, "bottom": 0,

View File

@@ -6,6 +6,7 @@
"width": 1920, "width": 1920,
"height": 120, "height": 120,
"top": 0, "top": 0,
"centerX": 0,
"_$comp": [ "_$comp": [
{ {
"_$type": "cadd567d-5099-49b9-a9b3-b7c404d5fe1b", "_$type": "cadd567d-5099-49b9-a9b3-b7c404d5fe1b",

View File

@@ -7,9 +7,8 @@
"width": 1920, "width": 1920,
"height": 960, "height": 960,
"_mouseState": 2, "_mouseState": 2,
"left": 0, "top": 120,
"right": 0, "centerX": 0,
"bottom": 0,
"_$comp": [ "_$comp": [
{ {
"_$type": "3f68d98d-3867-41a7-b277-a24d279a22fa", "_$type": "3f68d98d-3867-41a7-b277-a24d279a22fa",

View File

@@ -7,9 +7,8 @@
"width": 1920, "width": 1920,
"height": 960, "height": 960,
"_mouseState": 2, "_mouseState": 2,
"left": 0, "top": 120,
"right": 0, "centerX": 0,
"bottom": 0,
"_$comp": [ "_$comp": [
{ {
"_$type": "554595b0-0dd8-4e4b-8073-8d775219659c", "_$type": "554595b0-0dd8-4e4b-8073-8d775219659c",
@@ -41,20 +40,15 @@
"_$type": "Panel", "_$type": "Panel",
"name": "Panel", "name": "Panel",
"width": 1920, "width": 1920,
"height": 960, "height": 842,
"_mouseState": 2, "_mouseState": 2,
"left": 0,
"right": 0,
"top": 0,
"bottom": 0,
"scrollType": 2, "scrollType": 2,
"_$child": [ "_$child": [
{ {
"_$id": "f1u9ghcd", "_$id": "f1u9ghcd",
"_$type": "VBox", "_$type": "VBox",
"name": "items", "name": "items",
"x": 45, "width": 1920,
"width": 1830,
"height": 960, "height": 960,
"centerX": 0, "centerX": 0,
"space": 40, "space": 40,
@@ -65,7 +59,7 @@
"_$prefab": "c1b8084e-7edd-4519-9680-5deaab191d1d", "_$prefab": "c1b8084e-7edd-4519-9680-5deaab191d1d",
"name": "TrophyRoomYear_H", "name": "TrophyRoomYear_H",
"active": true, "active": true,
"x": 0, "x": 45,
"y": 0, "y": 0,
"visible": true, "visible": true,
"_$child": [ "_$child": [
@@ -115,12 +109,12 @@
"_$type": "Panel", "_$type": "Panel",
"name": "Back", "name": "Back",
"x": 48, "x": 48,
"y": 825, "y": 842,
"width": 220, "width": 220,
"height": 90, "height": 90,
"_mouseState": 2, "_mouseState": 2,
"left": 48, "left": 48,
"top": 825, "top": 842,
"_$child": [ "_$child": [
{ {
"_$id": "jdgsds0q", "_$id": "jdgsds0q",

View File

@@ -158,7 +158,7 @@ export class DailyChallenge extends Laya.Script {
public static EventUpdateTrophyButton(arg: any): void { public static EventUpdateTrophyButton(arg: any): void {
if (DailyChallenge._instance) { if (DailyChallenge._instance) {
DailyChallenge._instance.btn_trophy.visible = arg DailyChallenge._instance.owner.visible = arg
} }
} }