From 63aa8128f6a5156bdd178b6ef644073e9a79f9f2 Mon Sep 17 00:00:00 2001 From: xiejun <467745540@qq.com> Date: Tue, 12 Dec 2023 11:43:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9B=E6=B5=B7UI=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Expedition/View/MonsterCampFormationInfo.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Expedition/View/MonsterCampFormationInfo.lua b/Assets/ManagedResources/~Lua/Modules/Expedition/View/MonsterCampFormationInfo.lua index 64cafb32bb..add3c5cf8d 100644 --- a/Assets/ManagedResources/~Lua/Modules/Expedition/View/MonsterCampFormationInfo.lua +++ b/Assets/ManagedResources/~Lua/Modules/Expedition/View/MonsterCampFormationInfo.lua @@ -45,10 +45,10 @@ function this:InitComponent(gameObject) this.returnLook=Util.GetGameObject(gameObject,"returnLook") this.returnLook.gameObject:SetActive(false) this.tip = Util.GetGameObject(gameObject,"tip"):GetComponent("Text") - Util.GetGameObject(gameObject, "RoleGrid/FrontImage"):GetComponent("Image").sprite = this.spLoader:LoadSprite("bd_xinqianpai_zh") - Util.GetGameObject(gameObject, "RoleGrid/BehindImage"):GetComponent("Image").sprite = this.spLoader:LoadSprite("bd_xinhoupai_zh") + Util.GetGameObject(gameObject, "RoleGrid/FrontImage"):GetComponent("Image").sprite = this.spLoader:LoadSprite("UI_hz_RankList_RankBg") + Util.GetGameObject(gameObject, "RoleGrid/BehindImage"):GetComponent("Image").sprite = this.spLoader:LoadSprite("UI_hz_RankList_RankBg") this.returnLook:GetComponent("Image").sprite = this.spLoader:LoadSprite("s_silingshilian_huifanganniu_zh") - Util.GetGameObject(gameObject, "Power"):GetComponent("Image").sprite = this.spLoader:LoadSprite("t_tongyong-zhanli_zh") + Util.GetGameObject(gameObject, "Power"):GetComponent("Image").sprite = this.spLoader:LoadSprite("UI_hz_shenjiang_15_zh") end function this:BindEvent() @@ -129,7 +129,7 @@ function this:SetIcon() Util.SetGray(this.sureBtn,false) this.fightBtnIcon.gameObject:SetActive(false) this.fightBtnNum.gameObject:SetActive(false) - this.sureBtn:GetComponent("Image").sprite = this.spLoader:LoadSprite("r_hero_button_002") + this.sureBtn:GetComponent("Image").sprite = this.spLoader:LoadSprite("Btn_hz_cheng_01") this.tip.text = "奖励" if waveId == MonsterCampManager.monsterWave - 1 then if freeTime > 0 then @@ -151,7 +151,7 @@ function this:SetIcon() end end elseif (waveId == MonsterCampManager.monsterWave) then - this.sureBtn:GetComponent("Image").sprite = this.spLoader:LoadSprite("r_hero_button_001") + this.sureBtn:GetComponent("Image").sprite = this.spLoader:LoadSprite("Btn_hz_cheng_01") this.fightBtnText.text = string.format("%s","17232A","挑 战") else this.fightBtnText.text =string.format("%s","17232A","确定") @@ -176,7 +176,7 @@ function this:FormationAdapter() local bossTeaminfo = ConfigManager.GetConfigData(ConfigName.MonsterGroup,configData.Monster).Contents[1] for i = 1, #heroListGo do if (bossTeaminfo[i]) and bossTeaminfo[i] > 0 then - heroListGo[i].transform.parent:GetComponent("Image").sprite= this.spLoader:LoadSprite("t_chengyuankuang_kuang") + -- heroListGo[i].transform.parent:GetComponent("Image").sprite= this.spLoader:LoadSprite("t_chengyuankuang_kuang") this.SetCardSingleData(heroListGo[i],bossTeaminfo[i],i) heroListGo[i]:SetActive(true) else @@ -226,7 +226,7 @@ function this.SetCardSingleData(o,monsterId, _pos) local liveName = GetResourcePath(heroConfig.Painting) local roleConfig = ConfigManager.GetConfigData(ConfigName.RoleConfig, heroConfig.Id) local scale = roleConfig.play_liveScale - local livePos = Vector3.New(roleConfig.offset[1], roleConfig.offset[2]+300, 0) + local livePos = Vector3.New(roleConfig.offset[1], roleConfig.offset[2], 0) live.texture = CardRendererManager.GetSpineTexture(_pos, liveName, Vector3.one * scale, livePos, true) live.transform.localScale = Vector3.one live.transform.localPosition = Vector3.zero