Files
Endfield-Data/LuaScripts/UI/Widgets/BottomNodeWaterMarkUI.lua
2025-12-02 20:37:18 +07:00

38 lines
1.0 KiB
Lua

local UIWidgetBase = require_ex('Common/Core/UIWidgetBase')
BottomNodeWaterMarkUI = HL.Class('BottomNodeWaterMarkUI', UIWidgetBase)
BottomNodeWaterMarkUI._OnFirstTimeInit = HL.Override() << function(self)
end
BottomNodeWaterMarkUI.InitBottomNodeWaterMarkUI = HL.Method(HL.Table) << function(self, arg)
self:_FirstTimeInit()
self.view.logoImage:LoadSprite(UIConst.UI_COMMON_SHARE_LOGO_SPRITE_PATH, "deco_endfield_logo")
if arg.type then
self.view.stateController:SetState(arg.type)
self.view.playerNameText.text = GameInstance.player.playerInfoSystem.playerName
self.view.uidText.text = GameInstance.player.playerInfoSystem.roleId
if arg.type == "Blueprint" then
self.view.codeIdTxt.text = arg.codeId
self.view.shareText.text = arg.title
elseif arg.type == "PhotoShot" then
self.view.apertureText.text = arg.aperture
self.view.focusText.text = arg.focus
end
end
end
HL.Commit(BottomNodeWaterMarkUI)
return BottomNodeWaterMarkUI