UIPageLayout
Memory category | Instances |
---|
Member index 17
Description
Creates a paged viewing window, like the home screen of a mobile device. You can use a UIPageLayout by parenting it to a GuiObject. The UIPageLayout will then apply itself to all of its GuiObject siblings.
History 61
- 573 Change ReturnType of Previous from void to null
- 573 Change ReturnType of Next from void to null
- 573 Change ReturnType of JumpToIndex from void to null
- 573 Change ReturnType of JumpTo from void to null
- 553 Change Default of TweenTime from to 1
- 553 Change Default of TouchInputEnabled from to true
- 553 Change Default of ScrollWheelInputEnabled from to true
- 553 Change Default of Padding from to UDim(0, 0)
- 553 Change Default of GamepadInputEnabled from to true
- 553 Change Default of EasingStyle from to Back
- 553 Change Default of EasingDirection from to Out
- 553 Change Default of CurrentPage from to
- 553 Change Default of Circular from to false
- 553 Change Default of Animated from to true
- 486 Change ThreadSafety of TweenTime from ReadOnly to ReadSafe
- 486 Change ThreadSafety of TouchInputEnabled from ReadOnly to ReadSafe
- 486 Change ThreadSafety of ScrollWheelInputEnabled from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Padding from ReadOnly to ReadSafe
- 486 Change ThreadSafety of GamepadInputEnabled from ReadOnly to ReadSafe
- 486 Change ThreadSafety of EasingStyle from ReadOnly to ReadSafe
- 486 Change ThreadSafety of EasingDirection from ReadOnly to ReadSafe
- 486 Change ThreadSafety of CurrentPage from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Circular from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Animated from ReadOnly to ReadSafe
- 462 Change ThreadSafety of Stopped from to Unsafe
- 462 Change ThreadSafety of PageLeave from to Unsafe
- 462 Change ThreadSafety of PageEnter from to Unsafe
- 462 Change ThreadSafety of Previous from to Unsafe
- 462 Change ThreadSafety of Next from to Unsafe
- 462 Change ThreadSafety of JumpToIndex from to Unsafe
- 462 Change ThreadSafety of JumpTo from to Unsafe
- 462 Change ThreadSafety of TweenTime from to ReadOnly
- 462 Change ThreadSafety of TouchInputEnabled from to ReadOnly
- 462 Change ThreadSafety of ScrollWheelInputEnabled from to ReadOnly
- 462 Change ThreadSafety of Padding from to ReadOnly
- 462 Change ThreadSafety of GamepadInputEnabled from to ReadOnly
- 462 Change ThreadSafety of EasingStyle from to ReadOnly
- 462 Change ThreadSafety of EasingDirection from to ReadOnly
- 462 Change ThreadSafety of CurrentPage from to ReadOnly
- 462 Change ThreadSafety of Circular from to ReadOnly
- 462 Change ThreadSafety of Animated from to ReadOnly
- 334 Change ValueType of CurrentPage from Instance to GuiObject
- 329 Change ValueType of CurrentPage from Object to Instance
- 310 Add TouchInputEnabled
- 310 Add ScrollWheelInputEnabled
- 310 Add GamepadInputEnabled
- 284 Add Stopped
- 284 Add PageLeave
- 284 Add PageEnter
- 284 Add Previous
- 284 Add Next
- 284 Add JumpToIndex
- 284 Add JumpTo
- 284 Add TweenTime
- 284 Add Padding
- 284 Add EasingStyle
- 284 Add EasingDirection
- 284 Add CurrentPage
- 284 Add Circular
- 284 Add Animated
- 284 Add UIPageLayout
Members 17
Animated
Type | Default | |
---|---|---|
bool | true |
Whether or not to animate transitions between pages.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
Circular
Type | Default | |
---|---|---|
bool | false |
Whether or not the page layout wraps around at the ends.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
CurrentPage
Type | Default | |
---|---|---|
GuiObject |
The page that is either currently being displayed or is the target of the current animation.
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | false/true |
History 6
- 553 Change Default of CurrentPage from to
- 486 Change ThreadSafety of CurrentPage from ReadOnly to ReadSafe
- 462 Change ThreadSafety of CurrentPage from to ReadOnly
- 334 Change ValueType of CurrentPage from Instance to GuiObject
- 329 Change ValueType of CurrentPage from Object to Instance
- 284 Add CurrentPage
EasingDirection
Type | Default | |
---|---|---|
EasingDirection | Out |
The easing direction to use when performing an animation.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
History 4
- 553 Change Default of EasingDirection from to Out
- 486 Change ThreadSafety of EasingDirection from ReadOnly to ReadSafe
- 462 Change ThreadSafety of EasingDirection from to ReadOnly
- 284 Add EasingDirection
EasingStyle
Type | Default | |
---|---|---|
EasingStyle | Back |
The easing style to use when performing an animation.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
History 4
- 553 Change Default of EasingStyle from to Back
- 486 Change ThreadSafety of EasingStyle from ReadOnly to ReadSafe
- 462 Change ThreadSafety of EasingStyle from to ReadOnly
- 284 Add EasingStyle
GamepadInputEnabled
Type | Default | |
---|---|---|
bool | true |
Controls the overrides of NextSelection{Up,Down,Left,Right}
. Defaults to
true.
Thread safety | ReadSafe |
---|---|
Category | Input |
Loaded/Saved | true |
History 4
- 553 Change Default of GamepadInputEnabled from to true
- 486 Change ThreadSafety of GamepadInputEnabled from ReadOnly to ReadSafe
- 462 Change ThreadSafety of GamepadInputEnabled from to ReadOnly
- 310 Add GamepadInputEnabled
JumpTo
Parameters (1) | ||
---|---|---|
page | Instance | |
Returns (1) | ||
null |
If the page
is in the UIPageLayout, then it sets
UIPageLayout.CurrentPage to it and animates to it. If the circular
layout is enabled, it will take the shortest path to this page.
Thread safety | Unsafe |
---|
JumpToIndex
Parameters (1) | ||
---|---|---|
index | int | |
Returns (1) | ||
null |
If the index is >= 0
and less than the size of the layout, this method
acts like UIPageLayout:JumpTo(). If it's out of bounds and
circular is set, it will animate the full distance between the in-bounds
index of UIPageLayout.CurrentPage and the new index.
Thread safety | Unsafe |
---|
History 3
- 573 Change ReturnType of JumpToIndex from void to null
- 462 Change ThreadSafety of JumpToIndex from to Unsafe
- 284 Add JumpToIndex
Next
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Sets UIPageLayout.CurrentPage to the page after the current page and animates to it, or does nothing if there isn't a next page.
Thread safety | Unsafe |
---|
Padding
Type | Default | |
---|---|---|
UDim | 0, 0 |
Determines the amount that pages are separated from each other by. Can be set either using scale (Percentage of parent's size in the current direction) or offset (a static spacing value, similar to pixel size).
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
PageEnter
Parameters (1) | |
---|---|
page | Instance |
Fires when a page comes into view, and is going to be rendered.
Thread safety | Unsafe |
---|
PageLeave
Parameters (1) | |
---|---|
page | Instance |
Fires when a page leaves view, and will not be rendered.
Thread safety | Unsafe |
---|
Previous
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Sets UIPageLayout.CurrentPage to the page before the current page and animates to it, or does nothing if there isn't a previous page.
Thread safety | Unsafe |
---|
ScrollWheelInputEnabled
Type | Default | |
---|---|---|
bool | true |
Controls the use of scroll wheel, in case that it is intended for something else. Defaults to true.
Thread safety | ReadSafe |
---|---|
Category | Input |
Loaded/Saved | true |
History 4
- 553 Change Default of ScrollWheelInputEnabled from to true
- 486 Change ThreadSafety of ScrollWheelInputEnabled from ReadOnly to ReadSafe
- 462 Change ThreadSafety of ScrollWheelInputEnabled from to ReadOnly
- 310 Add ScrollWheelInputEnabled
Stopped
Parameters (1) | |
---|---|
currentPage | Instance |
Fires when an animation to UIPageLayout.CurrentPage is completed without being canceled, and the view stops scrolling.
Thread safety | Unsafe |
---|
TouchInputEnabled
Type | Default | |
---|---|---|
bool | true |
Controls touch scrolling, in case this is a non-interactive layout. Defaults to true.
Thread safety | ReadSafe |
---|---|
Category | Input |
Loaded/Saved | true |
History 4
- 553 Change Default of TouchInputEnabled from to true
- 486 Change ThreadSafety of TouchInputEnabled from ReadOnly to ReadSafe
- 462 Change ThreadSafety of TouchInputEnabled from to ReadOnly
- 310 Add TouchInputEnabled
TweenTime
Type | Default | |
---|---|---|
float | 1 |
The length of the animation.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |