PGRData/Resources/Scripts/XUi/XUiDormFieldGuide/XUiDormFieldGuideTab.lua
2022-12-26 14:06:01 +05:30

21 lines
No EOL
599 B
Lua

local XUiDormFieldGuideTab = XClass(nil, "XUiDormFieldGuideTab")
function XUiDormFieldGuideTab:Ctor(ui)
self.GameObject = ui.gameObject
self.Transform = ui.transform
XTool.InitUiObject(self)
end
function XUiDormFieldGuideTab:SetName(name)
self.BtnTab:SetName(name)
end
function XUiDormFieldGuideTab:SetSuitBgm(bgm)
self.ImgSongNormal.gameObject:SetActiveEx(bgm ~= nil)
self.ImgSongPress.gameObject:SetActiveEx(bgm ~= nil)
self.ImgSongSelect.gameObject:SetActiveEx(bgm ~= nil)
self.ImgSongDisable.gameObject:SetActiveEx(bgm ~= nil)
end
return XUiDormFieldGuideTab