34 lines
828 B
Lua
34 lines
828 B
Lua
---@class WB_TipPassageway_C:UUserWidget
|
|
---@field CanvasPanel_Main UCanvasPanel
|
|
---@field TextBlock_Name UTextBlock
|
|
--Edit Below--
|
|
local WB_TipPassageway = { bInitDoOnce = false; };
|
|
|
|
--[==[ Construct
|
|
function WB_TipPassageway:Construct()
|
|
|
|
end
|
|
-- Construct ]==]
|
|
|
|
-- function WB_TipPassageway:Tick(MyGeometry, InDeltaTime)
|
|
|
|
-- end
|
|
|
|
-- function WB_TipPassageway:Destruct()
|
|
|
|
-- end
|
|
function WB_TipPassageway:SetVis(IsShow, Index)
|
|
self:SetShowName(Index)
|
|
UGCLogSystem.Log("[WB_TipPassageway_SetVis] IsShow:%s", tostring(IsShow))
|
|
if IsShow then
|
|
self:SetVisibility(ESlateVisibility.HitTestInvisible)
|
|
else
|
|
self:SetVisibility(ESlateVisibility.Collapsed)
|
|
end
|
|
end
|
|
|
|
function WB_TipPassageway:SetShowName(Index)
|
|
string.format("通过%s通道", string.char(65 + Index))
|
|
end
|
|
|
|
return WB_TipPassageway; |