十绝阵UI

xiejun 2023-11-06 17:26:18 +08:00
parent f25e213b73
commit 4c382362a7
2 changed files with 4883 additions and 1091 deletions

View File

@ -18,8 +18,8 @@ local guildName--公会名称
local guildServer--公会服
local TabBox = require("Modules/Common/TabBox")
local _TabImgData = {select = "r_tongyong_xiaanniu_01", default = "r_tongyong_xiaanniu_02",}
local _TabFontColor = { default = Color.New(130 / 255, 128 / 255, 120 / 255, 1),
select = Color.New(243 / 255, 235 / 255, 202 / 255, 1) }
local _TabFontColor = { default = Color.New(255 / 255, 255 / 255, 255 / 255, 1),
select = Color.New(255 / 255, 255 / 255, 255 / 255, 1) }
local _TabData = {
[1]= {txt = Language[11006]},
[2]= {txt = Language[11007]},
@ -144,7 +144,9 @@ end
function this.TabAdapter(tab, index, status)
local img = Util.GetGameObject(tab, "Image")
local txt = Util.GetGameObject(tab, "Text")
img:GetComponent("Image").sprite = this.spLoader:LoadSprite(_TabImgData[status])
local select=Util.GetGameObject(tab, "select")
--img:GetComponent("Image").sprite = this.spLoader:LoadSprite(_TabImgData[status])
select:SetActive(status=="select")
txt:GetComponent("Text").text = _TabData[index].txt
txt:GetComponent("Text").color = _TabFontColor[status]
end
@ -210,7 +212,7 @@ function this.SetFormation()
for i, v in pairs(monsterGroup[monsterGroupId].Contents[1]) do
local o=this.heroPreList[i]
o.transform.parent:GetComponent("Image").sprite=this.spLoader:LoadSprite("t_chengyuankuang_kuang")
-- o.transform.parent:GetComponent("Image").sprite=this.spLoader:LoadSprite("t_chengyuankuang_kuang")
if v ~= 0 then
local id=monsterConfig[v].MonsterId
this.SetCardSingleData(o, id, i, monsterConfig[v])
@ -254,7 +256,7 @@ function this.SetCardSingleData(o, heroId, _pos, heroData)
if zsName == "" then
zs:SetActive(false)
else
zs:SetActive(true)
-- zs:SetActive(true)
zs:GetComponent("Image").sprite = this.spLoader:LoadSprite(zsName)
end
@ -400,7 +402,7 @@ function this.SetReward()
if not rewardList[index] then
rewardList[index]=SubUIManager.Open(SubUIConfig.ItemView,this.rewardGrid.transform)
end
rewardList[index]:OnOpen(false,value,1.1,false,false,false)
rewardList[index]:OnOpen(false,value,0.9,false,false,false)
rewardList[index].gameObject:GetComponent("RectTransform").pivot=Vector2.New(0.5,0.5)
end
end