feat: 添加地图信息显示功能并更新资源文件
- 在SingletonModuleComp中添加showInfo字段控制信息显示 - 在HInfoComp中实现showInfo方法显示/隐藏信息面板 - 更新umps.png和umps.plist资源文件,添加多个背景素材 - 调整loading.prefab和map_rpg.prefab的配置参数
This commit is contained in:
@@ -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]) {
|
||||
|
||||
Reference in New Issue
Block a user