Files
BusyRabbit/Content/Lua/HomeLand/UI/HomeLandMainUI.lua

14 lines
424 B
Lua
Raw Normal View History

2025-07-12 13:07:01 +08:00
local GameplayStatics = import("GameplayStatics")
2025-07-13 15:47:08 +08:00
local WidgetUtils = require("Utils.UI.WidgetUtils")
2025-07-12 13:07:01 +08:00
local HomeLandMainUI = {}
2025-07-13 15:47:08 +08:00
function HomeLandMainUI:OnInitialized()
2025-07-12 13:07:01 +08:00
self.Gateway.OnClicked:Add(function()
GameplayStatics.OpenLevel(self, "FalconPlain", false, "")
end)
2025-07-13 15:47:08 +08:00
self.Hearth.OnClicked:Add(function()
WidgetUtils.Show(self, "HearthMain")
end)
2025-07-12 13:07:01 +08:00
end
return Class(nil, nil, HomeLandMainUI)