29 lines
765 B
Lua
Raw Permalink Normal View History

2025-01-18 21:26:02 +08:00
---@class WB_ShowPlaceCode_C:UUserWidget
---@field Button_ClosePanel UNewButton
---@field EditableText_ShowPlaceCode UWidget_NewEditableText_C
--Edit Below--
local WB_ShowPlaceCode = { bInitDoOnce = false; };
function WB_ShowPlaceCode:Construct()
WidgetLibrary.BindButtonClicked(self.Button_ClosePanel, self.CloseSelf, self)
end
function WB_ShowPlaceCode:OnShowPanel()
local PlaceCode = PlacementModeConfig.GetPlaceManager():ExportPlacementCode()
self.EditableText_ShowPlaceCode:SetText(PlaceCode)
end
function WB_ShowPlaceCode:CloseSelf()
WidgetManager:ClosePanel(WidgetConfig.EUIType.ShowPlaceCode)
end
-- function WB_ShowPlaceCode:Tick(MyGeometry, InDeltaTime)
-- end
-- function WB_ShowPlaceCode:Destruct()
-- end
return WB_ShowPlaceCode;