开始接入厨房
This commit is contained in:
11
Content/Lua/HomeLand/UI/Hearth/HearthMain.lua
Normal file
11
Content/Lua/HomeLand/UI/Hearth/HearthMain.lua
Normal file
@ -0,0 +1,11 @@
|
||||
local WidgetUtils = require("Utils.UI.WidgetUtils")
|
||||
local HearthMain = {}
|
||||
|
||||
function HearthMain:OnInitialized()
|
||||
self.BtnBack.OnClicked:Add(function()
|
||||
WidgetUtils.Hide(self, "HearthMain")
|
||||
end)
|
||||
|
||||
end
|
||||
|
||||
return Class(nil, nil, HearthMain)
|
||||
@ -1,11 +1,14 @@
|
||||
local GameplayStatics = import("GameplayStatics")
|
||||
local WidgetUtils = require("Utils.UI.WidgetUtils")
|
||||
local HomeLandMainUI = {}
|
||||
|
||||
function HomeLandMainUI:Construct()
|
||||
function HomeLandMainUI:OnInitialized()
|
||||
self.Gateway.OnClicked:Add(function()
|
||||
GameplayStatics.OpenLevel(self, "FalconPlain", false, "")
|
||||
end)
|
||||
|
||||
self.Hearth.OnClicked:Add(function()
|
||||
WidgetUtils.Show(self, "HearthMain")
|
||||
end)
|
||||
end
|
||||
|
||||
return Class(nil, nil, HomeLandMainUI)
|
||||
Reference in New Issue
Block a user