Weighted Pages and Back Method
This commit is contained in:
parent
e6fc3210ca
commit
d65d4d260f
1 changed files with 8 additions and 0 deletions
|
@ -8,6 +8,8 @@ local module = {}
|
|||
function module.new(name: string): types.Page
|
||||
local self = setmetatable({
|
||||
Name= name,
|
||||
Weight = 0,
|
||||
|
||||
Buttons = {
|
||||
Active = {},
|
||||
Stored = {},
|
||||
|
@ -174,6 +176,12 @@ function page:Open()
|
|||
end
|
||||
end
|
||||
|
||||
function page:Back()
|
||||
if self.Parent then
|
||||
self.Parent:OpenLastPage()
|
||||
end
|
||||
end
|
||||
|
||||
function page:Close()
|
||||
if self.Frame then
|
||||
self.Frame.Visible = false
|
||||
|
|
Loading…
Reference in a new issue