开始开发大厅烹饪功能

This commit is contained in:
2025-08-01 00:33:26 +08:00
parent 608486444e
commit 44fc2371be
25 changed files with 360 additions and 2 deletions

View File

@ -0,0 +1,19 @@
local WidgetUtils = require("Utils.UI.WidgetUtils")
local RecipeMenu = {}
function RecipeMenu:OnInitialized()
self.BtnConfirm.OnClicked:Add(function()
WidgetUtils.Hide(self, "RecipeMenu")
local work_top = WidgetUtils.Show(self, "HearthWorkTop")
if work_top ~= nil then
work_top:setup_task()
end
end)
self.BtnClose.OnClicked:Add(function()
WidgetUtils.Hide(self, "RecipeMenu")
end)
end
return Class(nil, nil, RecipeMenu)