【ios推荐】白片处理
parent
fa61ea1317
commit
f1c10a99e9
|
@ -23,6 +23,7 @@ local timer = Timer.New()
|
|||
local curAllHeros = {}
|
||||
local isMaterial = true
|
||||
local curPanelHerosSortNum = 1
|
||||
local tabsImg = {"z_icon_01_zh", "r_hero_huo 1_zh", "r_hero_feng 1_zh", "r_hero_shui 1_zh", "r_hero_dadi 1_zh"}
|
||||
--初始化组件(用于子类重写)
|
||||
function FindTreasureDispatchPanel:InitComponent()
|
||||
self.spLoader = SpriteLoader.New()
|
||||
|
@ -43,6 +44,9 @@ function FindTreasureDispatchPanel:InitComponent()
|
|||
self.selectBtn = Util.GetGameObject(self.gameObject, "Tabs/selectBtn")
|
||||
for i = 0, 6 do
|
||||
tabs[i] = Util.GetGameObject(self.transform, "Tabs/grid/Btn" .. i)
|
||||
if tabsImg[i + 1] then
|
||||
Util.GetGameObject(tabs[i], "Image"):GetComponent("Image").sprite = this.spLoader:LoadSprite(tabsImg[i + 1])
|
||||
end
|
||||
end
|
||||
|
||||
for i = 1, 5 do
|
||||
|
|
|
@ -13,6 +13,8 @@ function BattleFailPopup:InitComponent()
|
|||
|
||||
orginLayer = 0
|
||||
this.btnClose = Util.GetGameObject(self.gameObject, "Lose")
|
||||
this.failImg = Util.GetGameObject(self.gameObject, "Lose/image/ziti"):GetComponent("Image")
|
||||
this.failImg.sprite = this.spLoader:LoadSprite("UI_effect_JJC_JieSuan_ShiBai_png_zh")
|
||||
this.btnBattleBack = Util.GetGameObject(this.btnClose, "btnBattleBack")
|
||||
end
|
||||
|
||||
|
|
|
@ -481,7 +481,7 @@ function this:SetSelectBtn(index)
|
|||
this.selectBtn.transform:SetParent(tabsList[index].transform)
|
||||
this.selectBtn.transform.localScale = Vector3.one
|
||||
this.selectBtn.transform.localPosition=Vector3.zero
|
||||
this.selectBtn:GetComponent.sprite = this.spLoader:LoadSprite("r_hero_xuanze_001")
|
||||
this.selectBtn:GetComponent("Image").sprite = this.spLoader:LoadSprite("r_hero_xuanze_001")
|
||||
Util.GetGameObject(this.selectBtn.transform, "Text"):GetComponent("Text").text = GetCurLanguage() == 0 and tabs[index].title or "<size=45>"..tabs[index].title.."</size>"--tabs[index].title--
|
||||
Util.GetGameObject(self.transform,"talentBtn/tipStr"):SetActive(false)
|
||||
if index == 2 then
|
||||
|
|
Loading…
Reference in New Issue