#How would I make a custom page layout?
25 messages · Page 1 of 1 (latest)
I'm not asking for a script, I need someone to explain to me how it'd be done
** You are now Level 12! **
because I also want to be able to have :Previous in my custom layout and I don't know how to do it
You could just have regular frames instead of Pages
And then create a custom handler to go from page to page
For :Previous, just store the history of the opened pages
Yeah, thing is, I don't know how to do that
ill give it a try and get back to you
made some solid progress
couldn't get the previous page to "save"..
Just have a table
Ya
I'm a beginner so I haven't used much of
table
what would I do when changing the previous page?
Look up Roblox how to use tables
Insert the current page into the history
And then change to the next page
Oh mb I thought u meant going to the next page
Find the frame of the previous page
Hide the current page
And show the previous page
function Page:MoveTo(pagetomove)
PrevPage.Value = CurrPage.Value
CurrPage.Value = pagetomove
local backtween = TS:Create(CurrPage.Value, TI, {Position = UDim2.fromScale(0.5, 0.5)})
local prevtween = TS:Create(PrevPage.Value, TI, {Position = UDim2.fromScale(-2, 0.5)})
prevtween:Play()
backtween:Play()
local prev = PrevPage.Value
prevtween.Completed:Connect(function()
prev.Position = UDim2.fromScale(2, 0.5)
end)
end