好感度天赋修改提交

dev_chengFeng
yuanshuai 2022-12-01 16:26:39 +08:00
parent 99243d3f40
commit ab06f65c78
2 changed files with 37 additions and 5 deletions

View File

@ -334,7 +334,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 361.65, y: -0.000009119595}
m_AnchoredPosition: {x: 361.65, y: -0.0000137346315}
m_SizeDelta: {x: 723.3, y: 0}
m_Pivot: {x: 0.5, y: 1}
--- !u!114 &7575507291051525301
@ -1985,7 +1985,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &7647837852959861211
RectTransform:
m_ObjectHideFlags: 0
@ -2003,8 +2003,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 387, y: -473.6}
m_SizeDelta: {x: 706.8, y: 458.6}
m_AnchoredPosition: {x: 387, y: -581.7}
m_SizeDelta: {x: 706.8, y: 350.4}
m_Pivot: {x: 0.5, y: 1}
--- !u!114 &3558985047716541038
MonoBehaviour:

View File

@ -85,7 +85,24 @@ function LikeabilityPopup:UpDataProList(lv)
self.proList[i].go.gameObject:SetActive(false)
end
self:UpDataProSingleList(pro1,1,self.proGrid1)
--self:UpDataProSingleList(pro2,2,self.proGrid2,lv)
local skillData={}
skillData.title = "<color=#fed97f> 好感度天赋:</color>"
local likeAbility=ConfigManager.GetConfigDataByKey(ConfigName.LikeAbility,"Level",lv)
local skillArr=likeAbility.Skill
skillData.content=""
if skillArr~=nil then
for i = 1, #skillArr do
local passiveSkillConfig=ConfigManager.GetConfigData(ConfigName.PassiveSkillConfig,skillArr[i])
if skillData.content=="" then
skillData.content=string.format(" %s",passiveSkillConfig.Desc)
else
skillData.content=string.format("%s\n %s",skillData.content,passiveSkillConfig.Desc)
end
end
end
self:UpdateUnLockSkill(skillData,2,self.proGrid2)
end
function LikeabilityPopup:UpDataProSingleList(data,index,parent,lv)
@ -137,6 +154,21 @@ function LikeabilityPopup:UpDataProSingleList(data,index,parent,lv)
end
end
function LikeabilityPopup:UpdateUnLockSkill(data,index,parent,lv)
if not self.proList[index] then
self.proList[index] = {}
self.proList[index].go = newObjToParent(self.pro,parent.transform)
self.proList[index].title = Util.GetGameObject(self.proList[index].go, "title"):GetComponent("Text")
self.proList[index].content = Util.GetGameObject(self.proList[index].go, "content"):GetComponent("Text")
self.proList[index].fenge = Util.GetGameObject(self.proList[index].go, "Image")
self.proList[index].fengePre = Util.GetGameObject(self.proList[index].go, "fenge")
end
self.proList[index].go.gameObject:SetActive(true)
self.proList[index].content.gameObject:SetActive(true)
self.proList[index].title.text = data.title
self.proList[index].content.text=data.content
end
function LikeabilityPopup:OnClose()
end