PGRData/Resources/Scripts/XUi/XUiRpgMakerGame/Hint/XUiGridRpgMakerGameRecord.lua
2022-12-26 14:06:01 +05:30

22 lines
No EOL
661 B
Lua

local CSXTextManagerGetText = CS.XTextManager.GetText
--图标的说明
local XUiGridRpgMakerGameRecord = XClass(nil, "XUiGridRpgMakerGameRecord")
function XUiGridRpgMakerGameRecord:Ctor(ui, uiRoot)
self.GameObject = ui.gameObject
self.Transform = ui.transform
self.UiRoot = uiRoot
XTool.InitUiObject(self)
end
function XUiGridRpgMakerGameRecord:Refresh(hintIconKey)
local icon = XRpgMakerGameConfigs.GetRpgMakerGameHintIcon(hintIconKey)
self.ImgIconContent:SetRawImage(icon)
local iconName = XRpgMakerGameConfigs.GetRpgMakerGameHintIconName(hintIconKey)
self.TxtContent.text = iconName
end
return XUiGridRpgMakerGameRecord