角色信息界面修改
parent
5ad346e8e8
commit
eb157d8b24
|
@ -74,6 +74,7 @@ function RoleGetInfoPopup:InitComponent()
|
||||||
this.talismanBtn=Util.GetGameObject(self.transform,"RoleInfo/Panel/Other/TalismanBtn")
|
this.talismanBtn=Util.GetGameObject(self.transform,"RoleInfo/Panel/Other/TalismanBtn")
|
||||||
-- this.talismanFrame=Util.GetGameObject(self.transform,"RoleInfo/Panel/Other/TalismanBtn"):GetComponent("Image")
|
-- this.talismanFrame=Util.GetGameObject(self.transform,"RoleInfo/Panel/Other/TalismanBtn"):GetComponent("Image")
|
||||||
this.talismanIcon=Util.GetGameObject(self.transform,"RoleInfo/Panel/Other/TalismanBtn/Icon"):GetComponent("Image")
|
this.talismanIcon=Util.GetGameObject(self.transform,"RoleInfo/Panel/Other/TalismanBtn/Icon"):GetComponent("Image")
|
||||||
|
Util.GetGameObject(self.transform,"RoleInfo/Panel/Other/TalismanBtn/Text"):GetComponent("Text").text="生命卡"
|
||||||
this.talentBtn=Util.GetGameObject(self.transform,"RoleInfo/Panel/Other/talentBtn")
|
this.talentBtn=Util.GetGameObject(self.transform,"RoleInfo/Panel/Other/talentBtn")
|
||||||
this.talentProgress=Util.GetGameObject(self.transform,"RoleInfo/Panel/Other/talentBtn/progress"):GetComponent("Text")
|
this.talentProgress=Util.GetGameObject(self.transform,"RoleInfo/Panel/Other/talentBtn/progress"):GetComponent("Text")
|
||||||
|
|
||||||
|
@ -214,7 +215,7 @@ function RoleGetInfoPopup:OnShow()
|
||||||
Util.GetGameObject(go.transform,"s"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetResourcePath(skillList[i].skillConfig.Icon))
|
Util.GetGameObject(go.transform,"s"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetResourcePath(skillList[i].skillConfig.Icon))
|
||||||
local sText = Util.GetGameObject(go.transform,"s/Text"):GetComponent("Text")
|
local sText = Util.GetGameObject(go.transform,"s/Text"):GetComponent("Text")
|
||||||
sText.text=GetLanguageStrById(skillList[i].skillConfig.Name)
|
sText.text=GetLanguageStrById(skillList[i].skillConfig.Name)
|
||||||
sText.fontSize = GetCurLanguage() ~= 2 and 30 or 25
|
sText.fontSize = GetCurLanguage() ~= 2 and 25 or 25
|
||||||
Util.GetGameObject(go.transform,"SkillTypeImage"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetSkillType(allSkillDatas[i]))
|
Util.GetGameObject(go.transform,"SkillTypeImage"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetSkillType(allSkillDatas[i]))
|
||||||
Util.AddOnceClick(Util.GetGameObject(go.transform,"s"), function()
|
Util.AddOnceClick(Util.GetGameObject(go.transform,"s"), function()
|
||||||
if Game.GlobalEvent:HasEvent(GameEvent.UI.OnClose, triggerCallBack) then
|
if Game.GlobalEvent:HasEvent(GameEvent.UI.OnClose, triggerCallBack) then
|
||||||
|
|
Loading…
Reference in New Issue