xiyou_yueNanZhengshi
parent
652b01b2d8
commit
254dbc5e92
|
|
@ -20913,8 +20913,8 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0}
|
m_AnchorMin: {x: 0.5, y: 0}
|
||||||
m_AnchorMax: {x: 0.5, y: 0}
|
m_AnchorMax: {x: 0.5, y: 0}
|
||||||
m_AnchoredPosition: {x: 0, y: -20}
|
m_AnchoredPosition: {x: 0, y: -34.52}
|
||||||
m_SizeDelta: {x: 100, y: 40}
|
m_SizeDelta: {x: 100, y: 69.05}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &4120350516855940403
|
--- !u!222 &4120350516855940403
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ this.refreshShow = function()
|
||||||
local textParnet = Util.GetGameObject(go, "titileBg")
|
local textParnet = Util.GetGameObject(go, "titileBg")
|
||||||
local textName = Util.GetGameObject(textParnet, "Text"):GetComponent("Text")
|
local textName = Util.GetGameObject(textParnet, "Text"):GetComponent("Text")
|
||||||
textName.text =v.name
|
textName.text =v.name
|
||||||
SetTextVerTial(Util.GetGameObject(textParnet, "Text"),Vector3.New(295.93,-10.17,0),"MiddleRight")
|
--SetTextVerTial(Util.GetGameObject(textParnet, "Text"),Vector3.New(295.93,-10.17,0),"MiddleRight")
|
||||||
if GetCurLanguage() == 2 then
|
if GetCurLanguage() == 2 then
|
||||||
textName.fontSize = 36
|
textName.fontSize = 36
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ local Thread = nil
|
||||||
local proList = {}
|
local proList = {}
|
||||||
--初始化组件(用于子类重写)
|
--初始化组件(用于子类重写)
|
||||||
function AttriTips:InitComponent()
|
function AttriTips:InitComponent()
|
||||||
AttriTips.proPre = Util.GetGameObject(AttriTips.gameObject,"proPre")
|
AttriTips.proPre = Util.GetGameObject(AttriTips.gameObject, "proPre")
|
||||||
AttriTips.attriParent = Util.GetGameObject(AttriTips.gameObject,"AttriParent")
|
AttriTips.attriParent = Util.GetGameObject(AttriTips.gameObject, "AttriParent")
|
||||||
end
|
end
|
||||||
|
|
||||||
--添加事件监听(用于子类重写)
|
--添加事件监听(用于子类重写)
|
||||||
|
|
@ -21,9 +21,11 @@ function AttriTips:OnDestroy()
|
||||||
Thread = nil
|
Thread = nil
|
||||||
proList = {}
|
proList = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
function AttriTips:OnOpen()
|
function AttriTips:OnOpen()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--关闭弹出信息
|
--关闭弹出信息
|
||||||
function AttriTips.CloseAttriTip()
|
function AttriTips.CloseAttriTip()
|
||||||
AttriTips:ClosePanel()
|
AttriTips:ClosePanel()
|
||||||
|
|
@ -31,7 +33,7 @@ end
|
||||||
|
|
||||||
--显示弹出信息
|
--显示弹出信息
|
||||||
--type=null List[num]=属性ID#属性值; type=1 List[属性ID]=属性值;
|
--type=null List[num]=属性ID#属性值; type=1 List[属性ID]=属性值;
|
||||||
function AttriTips.ShowAttriTip(_attriList,_type)
|
function AttriTips.ShowAttriTip(_attriList, _type)
|
||||||
UIManager.OpenPanel(UIName.AttriTips)
|
UIManager.OpenPanel(UIName.AttriTips)
|
||||||
local attriList = {}
|
local attriList = {}
|
||||||
if _type then
|
if _type then
|
||||||
|
|
@ -46,19 +48,19 @@ function AttriTips.ShowAttriTip(_attriList,_type)
|
||||||
local data = attriList[i]
|
local data = attriList[i]
|
||||||
if not proList[i] then
|
if not proList[i] then
|
||||||
proList[i] = newObject(AttriTips.proPre)
|
proList[i] = newObject(AttriTips.proPre)
|
||||||
proList[i].transform.name = "proPre"..i
|
proList[i].transform.name = "proPre" .. i
|
||||||
proList[i].transform:SetParent(AttriTips.attriParent.transform)
|
proList[i].transform:SetParent(AttriTips.attriParent.transform)
|
||||||
proList[i].transform.localScale = Vector3.one
|
proList[i].transform.localScale = Vector3.one
|
||||||
proList[i].transform.localPosition = Vector3.zero
|
proList[i].transform.localPosition = Vector3.zero
|
||||||
end
|
end
|
||||||
proList[i]:SetActive(false)
|
proList[i]:SetActive(false)
|
||||||
local proData = propertyConfig[data[1]]
|
local proData = propertyConfig[data[1]]
|
||||||
Util.GetGameObject(proList[i],"name"):GetComponent("Text").text = proData.Info
|
Util.GetGameObject(proList[i], "name"):GetComponent("Text").text = GetLanguageStrById(proData.Info)
|
||||||
local str = data[2]
|
local str = data[2]
|
||||||
if proData.Style == 2 then
|
if proData.Style == 2 then
|
||||||
str = tostring(data[2]/100).."%"
|
str = tostring(data[2] / 100) .. "%"
|
||||||
end
|
end
|
||||||
Util.GetGameObject(proList[i],"value"):GetComponent("Text").text = str
|
Util.GetGameObject(proList[i], "value"):GetComponent("Text").text = str
|
||||||
end
|
end
|
||||||
if Thread then
|
if Thread then
|
||||||
coroutine.stop(Thread)
|
coroutine.stop(Thread)
|
||||||
|
|
@ -78,6 +80,4 @@ function AttriTips.ShowAttriTip(_attriList,_type)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return AttriTips
|
return AttriTips
|
||||||
|
|
@ -70,7 +70,7 @@ end
|
||||||
--获取化身卡指定星级的技能描述
|
--获取化身卡指定星级的技能描述
|
||||||
function this.GetSkillDesStr(id, Star)
|
function this.GetSkillDesStr(id, Star)
|
||||||
local skillId = ChangingCard[id].Skill[Star + 1]
|
local skillId = ChangingCard[id].Skill[Star + 1]
|
||||||
local skillDes = PassiveSkillConfig[skillId].Desc
|
local skillDes = GetLanguageStrById(PassiveSkillConfig[skillId].Desc)
|
||||||
return skillDes
|
return skillDes
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ function RoleFlyUpLayout:UpdateHeroUpStarData()
|
||||||
if aaa then
|
if aaa then
|
||||||
--this.skillInfoGrid.text="激活飞升天赋:".." "..aaa.Desc
|
--this.skillInfoGrid.text="激活飞升天赋:".." "..aaa.Desc
|
||||||
--break
|
--break
|
||||||
str = str .. aaa.Desc
|
str = str .. GetLanguageStrById(aaa.Desc)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue