#How would I make a custom page layout?

25 messages · Page 1 of 1 (latest)

formal needle
#

I'm asking because my UIPageLayout is super buggy on console for some reason

formal needle
#

I'm not asking for a script, I need someone to explain to me how it'd be done

long flickerBOT
#

studio** You are now Level 12! **studio

formal needle
#

because I also want to be able to have :Previous in my custom layout and I don't know how to do it

restive helm
#

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

formal needle
#

ill give it a try and get back to you

formal needle
#

made some solid progress

formal needle
#

couldn't get the previous page to "save"..

restive helm
formal needle
#

?

formal needle
#

what would I do when changing the previous page?

restive helm
restive helm
#

And then change to the next page

#

Oh mb I thought u meant going to the next page

restive helm
#

Hide the current page

#

And show the previous page

formal needle
#
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