cocos-engine
cocos-engine copied to clipboard
fix #17484: 修复tsx文件对象层自定义属性读取错误
Greptile Summary
This pull request addresses issue #17484 by fixing the error in reading custom properties of object layers from TSX files.
- Added
propertiesfield toTMXObjectinterface incocos/tiledmap/tiled-types.ts. - Updated
getPropertyListfunction incocos/tiledmap/tmx-xml-parser.tsto usequerySelectorAllfor better property selection. - Modified
parseObjectGroupmethod incocos/tiledmap/tmx-xml-parser.tsto correctly assign properties to object layers.
Interface Check Report
! WARNING this pull request has changed these public interfaces:
@@ -19753,9 +19753,9 @@
export class frustum extends Frustum {
constructor();
}
}
- export const VERSION = "3.8.4";
+ export const VERSION = "3.8.5";
/**
* @en
* The main namespace of Cocos engine, all engine core classes, functions, properties and constants are defined in this namespace.
* @zh
@@ -63959,15 +63959,15 @@
* @en The event type indicates mouse leaves the window or canvas. Only Windows, macOS or web PC can
* trigger this event.
* @zh 当鼠标离开窗口或者 canvas 时发出该消息。只有 Windows、macOS 或者 PC web 会触发该事件。
*/
- MOUSE_LEAVE = "mouse-leave-window",
+ MOUSE_LEAVE = "mouse-leave",
/**
* @en The event type indicates mouse enters the window or canvas. Only Windows, macOS or web PC can
* trigger this event.
* @zh 当鼠标进入窗口或者 canvas 时发出该消息。只有 Windows、macOS 或者 PC web 会触发该事件。
*/
- MOUSE_ENTER = "mouse-enter-window",
+ MOUSE_ENTER = "mouse-enter",
/**
* @en
* The event type for mouse wheel events
*
@@ -69631,8 +69631,9 @@
*/
TEXT = 5
}
export interface _cocos_tiledmap_tiled_types__TMXObject {
+ properties: _cocos_tiledmap_tiled_types__PropertiesInfo;
id: number | string;
name: string;
width: number;
height: number;
@Jerry457 There is also a ci error