UIPageLayout
*เนื้อหานี้จะพร้อมใช้งานในภาษาที่คุณเลือกในเร็วๆ นี้
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.
สรุป
คุณสมบัติ
Whether or not to animate transitions between pages.
Whether or not the page layout wraps around at the ends.
The page that is either currently being displayed or is the target of the current animation.
The easing direction to use when performing an animation.
The easing style to use when performing an animation.
Controls the overrides of NextSelection{Up, Down, Left, Right}. Defaults to true.
Determines the amount that pages are separated from each other by.
Controls the use of scroll wheel, in case that it is intended for something else. Defaults to true.
Controls touch scrolling, in case this is a non-interactive layout. Defaults to true.
The length of the animation.
The absolute size of space being taken up by the grid layout.
Determines the axis in which UI objects are laid out.
Determines the horizontal alignment of UI elements within the parent element.
Determines the order in which child UI objects are placed in a layout.
Determines the vertical alignment of UI elements within the parent element.
วิธีการ
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.
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.
Sets UIPageLayout.CurrentPage to the page after the current page and animates to it, or does nothing if there isn't a next page.
Sets UIPageLayout.CurrentPage to the page before the current page and animates to it, or does nothing if there isn't a previous page.
อีเวนต์
Fires when a page comes into view, and is going to be rendered.
Fires when a page leaves view, and will not be rendered.
Fires when an animation to UIPageLayout.CurrentPage is completed without being canceled, and the view stops scrolling.
คุณสมบัติ
CurrentPage
The page that is either currently being displayed or is the target of the current animation.
GamepadInputEnabled
Controls the overrides of NextSelection{Up,Down,Left,Right}. Defaults to true.
Padding
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).
ScrollWheelInputEnabled
Controls the use of scroll wheel, in case that it is intended for something else. Defaults to true.
TouchInputEnabled
Controls touch scrolling, in case this is a non-interactive layout. Defaults to true.
วิธีการ
JumpTo
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.
พารามิเตอร์
ส่งค่ากลับ
JumpToIndex
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.
พารามิเตอร์
ส่งค่ากลับ
Next
Sets UIPageLayout.CurrentPage to the page after the current page and animates to it, or does nothing if there isn't a next page.
ส่งค่ากลับ
Previous
Sets UIPageLayout.CurrentPage to the page before the current page and animates to it, or does nothing if there isn't a previous page.
ส่งค่ากลับ
อีเวนต์
Stopped
Fires when an animation to UIPageLayout.CurrentPage is completed without being canceled, and the view stops scrolling.