名刀分解修改

onepiece_demo_arena
wangzhenxing 2024-01-16 17:22:15 +08:00
parent d221a79922
commit 9b20642e9d
2 changed files with 7 additions and 2 deletions

View File

@ -20,7 +20,8 @@ function this:InitComponent(gameObject)
this.confirmBtn=Util.GetGameObject(gameObject,"resetBtn")
this.getInfoTxt=Util.GetGameObject(gameObject,"Body/Text"):GetComponent("Text")
this.getInfoTxt.text=Language[11574]
Util.GetGameObject(gameObject,"resetBtn/Text"):GetComponent("Text").text=Language[11575]
this.resetBtnTxt=Util.GetGameObject(gameObject,"resetBtn/Text"):GetComponent("Text")
this.resetBtnTxt.text=Language[11575]
--滚动条根节点
this.root = Util.GetGameObject(gameObject, "Root")
end
@ -54,9 +55,13 @@ function this:OnShow(_parent,...)
if type==1 then
this.infoTxt.text=Language[11576]
this.titleText.text=Language[11573]
this.getInfoTxt.text=Language[11574]
this.resetBtnTxt.text=Language[11575]
else
this.infoTxt.text="确认要分解所选的名刀或名刀碎片?"
this.titleText.text="确认分解"
this.getInfoTxt.text="分解后获得"
this.resetBtnTxt.text="分解"
end
LogError("#args[1]====="..#args[1])
ResetItemView(this.root,this.root.transform,itemList,10,1,sortingOrder,false,args[1])

View File

@ -39,7 +39,7 @@ function this:InitComponent(gameObject)
this.chipNumTxt=Util.GetGameObject(gameObject, "Content/Resolve_GodWeapon/chipObj/Text"):GetComponent("Text")
this.ScrollView = SubUIManager.Open(SubUIConfig.ScrollCycleView, Util.GetGameObject(gameObject, "Content/Resolve_GodWeapon/ItemListRoot").transform,
this.cardPre, this.scrollbar, Vector2.New(v21.width, v21.height), 1, 5, Vector2.New(43,15))
this.cardPre, this.scrollbar, Vector2.New(v21.width, v21.height), 1, 5, Vector2.New(40,15))
this.ScrollView.moveTween.MomentumAmount = 1
this.ScrollView.moveTween.Strength = 1
maxSelectNum = tonumber(ConfigManager.GetConfigData(ConfigName.SpecialConfig,54).Value)