PGRData/Script/matrix/xui/xuirestaurant/XUiRestaurantOpening.lua
2024-09-01 22:49:41 +02:00

16 lines
526 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---@class XUiRestaurantOpening : XLuaUi
local XUiRestaurantOpening = XLuaUiManager.Register(XLuaUi, "UiRestaurantOpening")
function XUiRestaurantOpening:OnStart(isLevelUp)
self.IsLevelUp = isLevelUp
self:InitView()
end
function XUiRestaurantOpening:InitView()
--Loading的关闭黑幕会遮住开门动画所以直接Remove
XLuaUiManager.Remove("UiLoading")
self:PlayAnimationWithMask("AnimOpen", function()
XDataCenter.RestaurantManager.OpenMainView(self.IsLevelUp, true, false)
end)
end