feat: 添加地图信息显示功能并更新资源文件

- 在SingletonModuleComp中添加showInfo字段控制信息显示
- 在HInfoComp中实现showInfo方法显示/隐藏信息面板
- 更新umps.png和umps.plist资源文件,添加多个背景素材
- 调整loading.prefab和map_rpg.prefab的配置参数
This commit is contained in:
walkpan
2026-01-07 13:40:56 +08:00
parent 345621b57a
commit 8a9a84b133
8 changed files with 3784 additions and 1875 deletions

View File

@@ -170,6 +170,16 @@ export class HInfoComp extends CCComp {
show_lock(){
this.node.getChildByName("buy").active=!this.is_own()
}
showInfo(){
this.node.getChildByName("info").active=smc.data.showInfo
if(smc.data.showInfo){
this.node.getChildByName("info").setPosition(this.node.getChildByName("info").position.x,0)
}
}
btnShowInfo(){
smc.data.showInfo=!smc.data.showInfo
this.showInfo()
}
claear_hero(){
for (let i = 0; i < this.heroNodes.length; i++) {
if (this.heroNodes[i]) {