UIRuneShop页面

This commit is contained in:
fatiao 2026-02-05 20:05:37 +08:00
parent 351d06b394
commit e6bf173c7c
3 changed files with 635 additions and 144 deletions

File diff suppressed because it is too large Load Diff

View File

@ -334,11 +334,13 @@ function UIRuneShopView:OnClickBottomTab(index)
title = "礼包"
type = Enum.RuneShopType.Gifts
subtype = Enum.RuneShopSubType.Daily
self.giftsBox.rectTransform.sizeDelta = Vector2(1080, 1200)
self.giftTabBar:SetActive(true)
elseif index == 3 then --金币
title = "金币"
type = Enum.RuneShopType.Gifts
subtype = Enum.RuneShopSubType.Gold
self.giftsBox.rectTransform.sizeDelta = Vector2(1080, 1028)
self.giftTabBar:SetActive(false)
end
self.text_title.text.text = title

View File

@ -75,10 +75,15 @@
---@class UIRuneShop__Generate_timeBox_textTime
---@field public gameObject UnityEngine.GameObject
---@field public text TMPro.TextMeshProUGUI
---@class UIRuneShop__Generate_timeBox_textTime2
---@field public gameObject UnityEngine.GameObject
---@field public text UnityEngine.UI.Text
---@class UIRuneShop__Generate_timeBox
---@field public gameObject UnityEngine.GameObject
---@field public textTime2 UIRuneShop__Generate_timeBox_textTime2
---@field public textTime UIRuneShop__Generate_timeBox_textTime
---@class UIRuneShop__Generate_giftTabBar_tabGiftMonthly
@ -105,6 +110,7 @@
---@class UIRuneShop__Generate_giftsBox
---@field public gameObject UnityEngine.GameObject
---@field public rectTransform UnityEngine.RectTransform
---@field public scrollView UIRuneShop__Generate_giftsBox_scrollView
---@class UIRuneShop__Generate_monthCard2_presentPrice_icon
@ -504,6 +510,7 @@ function UIRuneShopView:InitGenerate(Root, data)
self:InitGenerate__88(Root,data)
self:InitGenerate__89(Root,data)
self:InitGenerate__90(Root,data)
self:InitGenerate__91(Root,data)
end
@ -1291,6 +1298,8 @@ function UIRuneShopView:InitGenerate__58(Root, data)
tolua.setpeer(tmp, {})
end
self.giftsBox = tmp
tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
end
---@private
@ -1399,6 +1408,20 @@ end
---@private
function UIRuneShopView:InitGenerate__67(Root, data)
--[[
UIAnimator/Window/GiftsBox/TimeBox/TextTime2
--]]
local tmp = Root:Find("UIAnimator/Window/GiftsBox/TimeBox/TextTime2").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.timeBox.textTime2 = tmp
tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
end
---@private
function UIRuneShopView:InitGenerate__68(Root, data)
--[[
UIAnimator/Window/GiftsBox/TimeBox/TextTime
--]]
@ -1408,11 +1431,11 @@ function UIRuneShopView:InitGenerate__67(Root, data)
end
self.timeBox.textTime = tmp
tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
end
---@private
function UIRuneShopView:InitGenerate__68(Root, data)
function UIRuneShopView:InitGenerate__69(Root, data)
--[[
UIAnimator/Window/GiftsBox/ScrollView
--]]
@ -1426,7 +1449,7 @@ function UIRuneShopView:InitGenerate__68(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__69(Root, data)
function UIRuneShopView:InitGenerate__70(Root, data)
--[[
UIAnimator/Window/GiftsBox/ScrollView/Viewport/Content/RuneShopGoodsItem
--]]
@ -1441,7 +1464,7 @@ function UIRuneShopView:InitGenerate__69(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__70(Root, data)
function UIRuneShopView:InitGenerate__71(Root, data)
--[[
UIAnimator/Window/LimitedBox
--]]
@ -1453,7 +1476,7 @@ function UIRuneShopView:InitGenerate__70(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__71(Root, data)
function UIRuneShopView:InitGenerate__72(Root, data)
--[[
UIAnimator/Window/LimitedBox/ScrollView
--]]
@ -1467,7 +1490,7 @@ function UIRuneShopView:InitGenerate__71(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__72(Root, data)
function UIRuneShopView:InitGenerate__73(Root, data)
--[[
UIAnimator/Window/LimitedBox/ScrollView/Viewport/Content/RuneShopLimitedItem
--]]
@ -1482,7 +1505,7 @@ function UIRuneShopView:InitGenerate__72(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__73(Root, data)
function UIRuneShopView:InitGenerate__74(Root, data)
--[[
UIAnimator/Window/RewardsBox
--]]
@ -1494,7 +1517,7 @@ function UIRuneShopView:InitGenerate__73(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__74(Root, data)
function UIRuneShopView:InitGenerate__75(Root, data)
--[[
UIAnimator/Window/RewardsBox/RewardsExpBox
--]]
@ -1507,7 +1530,7 @@ function UIRuneShopView:InitGenerate__74(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__75(Root, data)
function UIRuneShopView:InitGenerate__76(Root, data)
--[[
UIAnimator/Window/RewardsBox/RewardsExpBox/ExpBox/rewardslv
--]]
@ -1521,7 +1544,7 @@ function UIRuneShopView:InitGenerate__75(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__76(Root, data)
function UIRuneShopView:InitGenerate__77(Root, data)
--[[
UIAnimator/Window/RewardsBox/RewardsExpBox/ExpBox/rewardsmax
--]]
@ -1536,7 +1559,7 @@ function UIRuneShopView:InitGenerate__76(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__77(Root, data)
function UIRuneShopView:InitGenerate__78(Root, data)
--[[
UIAnimator/Window/RewardsBox/RewardsExpBox/ExpBox/numexp
--]]
@ -1550,7 +1573,7 @@ function UIRuneShopView:InitGenerate__77(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__78(Root, data)
function UIRuneShopView:InitGenerate__79(Root, data)
--[[
UIAnimator/Window/RewardsBox/RewardsExpBox/ExpBox/ExpSlider
--]]
@ -1564,7 +1587,7 @@ function UIRuneShopView:InitGenerate__78(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__79(Root, data)
function UIRuneShopView:InitGenerate__80(Root, data)
--[[
UIAnimator/Window/RewardsBox/BtnTaskExp
--]]
@ -1578,7 +1601,7 @@ function UIRuneShopView:InitGenerate__79(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__80(Root, data)
function UIRuneShopView:InitGenerate__81(Root, data)
--[[
UIAnimator/Window/RewardsBox/BtnTaskExp/Icon
--]]
@ -1590,7 +1613,7 @@ function UIRuneShopView:InitGenerate__80(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__81(Root, data)
function UIRuneShopView:InitGenerate__82(Root, data)
--[[
UIAnimator/Window/RewardsBox/ExpUpBlue
--]]
@ -1602,7 +1625,7 @@ function UIRuneShopView:InitGenerate__81(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__82(Root, data)
function UIRuneShopView:InitGenerate__83(Root, data)
--[[
UIAnimator/Window/RewardsBox/ExpUpBlue/RedPoint/LvUp/num
--]]
@ -1616,7 +1639,7 @@ function UIRuneShopView:InitGenerate__82(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__83(Root, data)
function UIRuneShopView:InitGenerate__84(Root, data)
--[[
UIAnimator/Window/BottomTabBar
--]]
@ -1630,7 +1653,7 @@ function UIRuneShopView:InitGenerate__83(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__84(Root, data)
function UIRuneShopView:InitGenerate__85(Root, data)
--[[
UIAnimator/Window/BottomTabBar/BtnBack
--]]
@ -1644,7 +1667,7 @@ function UIRuneShopView:InitGenerate__84(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__85(Root, data)
function UIRuneShopView:InitGenerate__86(Root, data)
--[[
UIAnimator/Window/BottomTabBar/TabMonthCard
--]]
@ -1658,7 +1681,7 @@ function UIRuneShopView:InitGenerate__85(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__86(Root, data)
function UIRuneShopView:InitGenerate__87(Root, data)
--[[
UIAnimator/Window/BottomTabBar/TabMonthCard/RedPoint
--]]
@ -1670,7 +1693,7 @@ function UIRuneShopView:InitGenerate__86(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__87(Root, data)
function UIRuneShopView:InitGenerate__88(Root, data)
--[[
UIAnimator/Window/BottomTabBar/TabGift
--]]
@ -1684,7 +1707,7 @@ function UIRuneShopView:InitGenerate__87(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__88(Root, data)
function UIRuneShopView:InitGenerate__89(Root, data)
--[[
UIAnimator/Window/BottomTabBar/TabGift/RedPoint
--]]
@ -1696,7 +1719,7 @@ function UIRuneShopView:InitGenerate__88(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__89(Root, data)
function UIRuneShopView:InitGenerate__90(Root, data)
--[[
UIAnimator/Window/BottomTabBar/TabCoin
--]]
@ -1710,7 +1733,7 @@ function UIRuneShopView:InitGenerate__89(Root, data)
end
---@private
function UIRuneShopView:InitGenerate__90(Root, data)
function UIRuneShopView:InitGenerate__91(Root, data)
--[[
UIAnimator/Window/BottomTabBar/TabCoin/RedPoint
--]]
@ -1756,6 +1779,9 @@ function UIRuneShopView:GenerateDestroy()
if tolua.getpeer(self.timeBox.textTime) ~= nil then
tolua.setpeer(self.timeBox.textTime, nil)
end
if tolua.getpeer(self.timeBox.textTime2) ~= nil then
tolua.setpeer(self.timeBox.textTime2, nil)
end
if tolua.getpeer(self.giftTabBar.tabGiftMonthly.redPoint1) ~= nil then
tolua.setpeer(self.giftTabBar.tabGiftMonthly.redPoint1, nil)
end