神兵改成名刀

onepiece_demo_arena
wangzhenxing 2024-01-16 17:02:06 +08:00
parent 9dcd29e6a3
commit 59796d72df
8 changed files with 13 additions and 13 deletions

View File

@ -2873,8 +2873,8 @@ ExpeditionNodeType = {
[50] = "万能碎片", [50] = "万能碎片",
[51] = "法相", [51] = "法相",
[52] = "置换卡", [52] = "置换卡",
[53] = "神兵", [53] = "名刀",
[54] = "神兵碎片", [54] = "名刀碎片",
[55] = "法术", [55] = "法术",
[56] = "礼物", [56] = "礼物",
} }

View File

@ -12,7 +12,7 @@ function GodWeaponGetInfoPopup:InitComponent()
this.spLoader = SpriteLoader.New() this.spLoader = SpriteLoader.New()
this.BtnBack=Util.GetGameObject(self.transform, "bg/btnBack") this.BtnBack=Util.GetGameObject(self.transform, "bg/btnBack")
Util.GetGameObject(self.transform, "bg/title"):GetComponent("Text").text="查看神兵" Util.GetGameObject(self.transform, "bg/title"):GetComponent("Text").text="查看名刀"
this.liveRoot=Util.GetGameObject(self.transform, "bg/liveRoot"):GetComponent("Image") this.liveRoot=Util.GetGameObject(self.transform, "bg/liveRoot"):GetComponent("Image")
this.heroName = Util.GetGameObject(self.transform, "bg/nameInfo/nameText"):GetComponent("Text") this.heroName = Util.GetGameObject(self.transform, "bg/nameInfo/nameText"):GetComponent("Text")
this.starGrid = Util.GetGameObject(self.transform, "bg/PokemonInfo/starGrid(Clone)") this.starGrid = Util.GetGameObject(self.transform, "bg/PokemonInfo/starGrid(Clone)")

View File

@ -6,7 +6,7 @@ local shenBingConfig = ConfigManager.GetConfig(ConfigName.ShenBing)
local TabBox = require("Modules/Common/TabBox") local TabBox = require("Modules/Common/TabBox")
local _TabData={ local _TabData={
[1] = { default = "UI_hz_gonghui_19", select = "UI_hz_gonghui_18", name = Language[10201] }, [1] = { default = "UI_hz_gonghui_19", select = "UI_hz_gonghui_18", name = Language[10201] },
--[2] = { default = "r_hero_xuanze_002", select = "r_hero_xuanze_001", name = "神兵" }, --[2] = { default = "r_hero_xuanze_002", select = "r_hero_xuanze_001", name = "名刀" },
} }
local _TabFontColor = { default = Color.New(130 / 255, 128 / 255, 120 / 255, 1), local _TabFontColor = { default = Color.New(130 / 255, 128 / 255, 120 / 255, 1),
select = Color.New(243 / 255, 235 / 255, 202 / 255, 1)} select = Color.New(243 / 255, 235 / 255, 202 / 255, 1)}
@ -20,7 +20,7 @@ local redPointList = {}
function this:InitComponent(gameObject) function this:InitComponent(gameObject)
this.spLoader = SpriteLoader.New() this.spLoader = SpriteLoader.New()
this.ChipItemList={}--存储itemview 重复利用 this.ChipItemList={}--存储itemview 重复利用
Util.GetGameObject(gameObject, "GodWeaponListPanel_List/name"):GetComponent("Text").text = "神兵列表" Util.GetGameObject(gameObject, "GodWeaponListPanel_List/name"):GetComponent("Text").text = "名刀列表"
this.tabBox = Util.GetGameObject(gameObject, "GodWeaponListPanel_List/TabBox") this.tabBox = Util.GetGameObject(gameObject, "GodWeaponListPanel_List/TabBox")
this.ScrollParentView1 = Util.GetGameObject(gameObject, "GodWeaponListPanel_List/ScrollParentView1") this.ScrollParentView1 = Util.GetGameObject(gameObject, "GodWeaponListPanel_List/ScrollParentView1")
@ -97,7 +97,7 @@ function this.OnClickTabBtn(_curIndex)
this.SingPokemonDataShow(go, pokemonList[index]) this.SingPokemonDataShow(go, pokemonList[index])
end) end)
this.NoneImage:SetActive(#pokemonList <= 0) this.NoneImage:SetActive(#pokemonList <= 0)
this.NoneImageText.text = "未获得神兵" this.NoneImageText.text = "未获得名刀"
elseif curIndex == 1 then elseif curIndex == 1 then
this.ScrollParentView1:SetActive(false) this.ScrollParentView1:SetActive(false)
this.ScrollParentView2:SetActive(true) this.ScrollParentView2:SetActive(true)
@ -113,7 +113,7 @@ function this.OnClickTabBtn(_curIndex)
this.SingPokemonChipDataShow(go, pokemonChipList[index]) this.SingPokemonChipDataShow(go, pokemonChipList[index])
end) end)
this.NoneImage:SetActive(#pokemonChipList <= 0) this.NoneImage:SetActive(#pokemonChipList <= 0)
this.NoneImageText.text = "未获得神兵碎片" this.NoneImageText.text = "未获得名刀碎片"
end end
-- this.ScrollView:ForeachItemGO(function(index, go) -- this.ScrollView:ForeachItemGO(function(index, go)
-- Timer.New(function() -- Timer.New(function()

View File

@ -9,7 +9,7 @@ local upZhenIndex
function this:InitComponent(gameObject) function this:InitComponent(gameObject)
this.spLoader = SpriteLoader.New() this.spLoader = SpriteLoader.New()
Util.GetGameObject(gameObject, "GodWeaponListPanel_UpWar/name"):GetComponent("Text").text = "选择上阵神兵" Util.GetGameObject(gameObject, "GodWeaponListPanel_UpWar/name"):GetComponent("Text").text = "选择上阵名刀"
this.ItemPre = Util.GetGameObject(gameObject, "GodWeaponListPanel_UpWar/ItemPre") this.ItemPre = Util.GetGameObject(gameObject, "GodWeaponListPanel_UpWar/ItemPre")
local v2 = Util.GetGameObject(gameObject, "GodWeaponListPanel_UpWar/ScrollParentView"):GetComponent("RectTransform").rect local v2 = Util.GetGameObject(gameObject, "GodWeaponListPanel_UpWar/ScrollParentView"):GetComponent("RectTransform").rect
@ -19,7 +19,7 @@ function this:InitComponent(gameObject)
this.ScrollView.moveTween.Strength = 1 this.ScrollView.moveTween.Strength = 1
this.NoneImage = Util.GetGameObject(gameObject, "GodWeaponListPanel_UpWar/NoneImage") this.NoneImage = Util.GetGameObject(gameObject, "GodWeaponListPanel_UpWar/NoneImage")
this.NoneImageText = Util.GetGameObject(gameObject, "GodWeaponListPanel_UpWar/NoneImage/TextImage/Text"):GetComponent("Text") this.NoneImageText = Util.GetGameObject(gameObject, "GodWeaponListPanel_UpWar/NoneImage/TextImage/Text"):GetComponent("Text")
this.NoneImageText.text = "无可上阵神兵" this.NoneImageText.text = "无可上阵名刀"
end end
function this:BindEvent() function this:BindEvent()

View File

@ -611,7 +611,7 @@ function RewardItemSingleShowPopup:OnShow()
this.checkHeroText.text = "查看灵兽" this.checkHeroText.text = "查看灵兽"
elseif rg and rg.ShowItem and itemConfigData.ItemType == ItemType.GodWeaponChip then elseif rg and rg.ShowItem and itemConfigData.ItemType == ItemType.GodWeaponChip then
this.checkHero:SetActive(true) this.checkHero:SetActive(true)
this.checkHeroText.text = "查看神兵" this.checkHeroText.text = "查看名刀"
else else
this.checkHero:SetActive(false) this.checkHero:SetActive(false)
end end

View File

@ -67,7 +67,7 @@ function this:OnShow(_parent,...)
this.titleText.text=Language[11569] this.titleText.text=Language[11569]
this.confirmBtnText.text=Language[11570] this.confirmBtnText.text=Language[11570]
else else
this.titleText.text="神兵回炉" this.titleText.text="名刀回炉"
this.confirmBtnText.text="回炉" this.confirmBtnText.text="回炉"
end end
this.numImage.sprite = SetIcon(this.spLoader, id) this.numImage.sprite = SetIcon(this.spLoader, id)

View File

@ -55,7 +55,7 @@ function this:OnShow(_parent,...)
this.infoTxt.text=Language[11576] this.infoTxt.text=Language[11576]
this.titleText.text=Language[11573] this.titleText.text=Language[11573]
else else
this.infoTxt.text="确认要分解所选的神兵或神兵碎片?" this.infoTxt.text="确认要分解所选的名刀或名刀碎片?"
this.titleText.text="确认分解" this.titleText.text="确认分解"
end end
LogError("#args[1]====="..#args[1]) LogError("#args[1]====="..#args[1])

View File

@ -32,7 +32,7 @@ function this:InitComponent(gameObject)
this.scrollbar = Util.GetGameObject(gameObject,"Content/Resolve_GodWeapon/Scrollbar"):GetComponent("Scrollbar") this.scrollbar = Util.GetGameObject(gameObject,"Content/Resolve_GodWeapon/Scrollbar"):GetComponent("Scrollbar")
this.Empty = Util.GetGameObject(gameObject,"Content/Resolve_GodWeapon/Empty") this.Empty = Util.GetGameObject(gameObject,"Content/Resolve_GodWeapon/Empty")
local v21 = Util.GetGameObject(gameObject, "Content/Resolve_GodWeapon/ItemListRoot"):GetComponent("RectTransform").rect local v21 = Util.GetGameObject(gameObject, "Content/Resolve_GodWeapon/ItemListRoot"):GetComponent("RectTransform").rect
Util.GetGameObject(gameObject, "Content/Resolve_GodWeapon/Empty/Bg/Text"):GetComponent("Text").text="无可分解神兵" Util.GetGameObject(gameObject, "Content/Resolve_GodWeapon/Empty/Bg/Text"):GetComponent("Text").text="无可分解名刀"
this.chipObj=Util.GetGameObject(gameObject, "Content/Resolve_GodWeapon/chipObj") this.chipObj=Util.GetGameObject(gameObject, "Content/Resolve_GodWeapon/chipObj")
this.btn_remove=Util.GetGameObject(gameObject, "Content/Resolve_GodWeapon/chipObj/btn_remove") this.btn_remove=Util.GetGameObject(gameObject, "Content/Resolve_GodWeapon/chipObj/btn_remove")
this.btn_add=Util.GetGameObject(gameObject, "Content/Resolve_GodWeapon/chipObj/btn_add") this.btn_add=Util.GetGameObject(gameObject, "Content/Resolve_GodWeapon/chipObj/btn_add")