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.

屬性 繼承自 UIGridStyleLayout

方法

活動

屬性

Animated

平行讀取

Whether or not to animate transitions between pages.

Circular

平行讀取

Whether or not the page layout wraps around at the ends.

CurrentPage

唯讀
未複製
平行讀取

The page that is either currently being displayed or is the target of the current animation.

EasingDirection

平行讀取

The easing direction to use when performing an animation.

EasingStyle

平行讀取

The easing style to use when performing an 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.

TweenTime

平行讀取

The length of the animation.

方法

JumpTo

void

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.

參數

page: Instance

返回

void

JumpToIndex

void

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.

參數

index: number

返回

void

Next

void

Sets UIPageLayout.CurrentPage to the page after the current page and animates to it, or does nothing if there isn't a next page.


返回

void

Previous

void

Sets UIPageLayout.CurrentPage to the page before the current page and animates to it, or does nothing if there isn't a previous page.


返回

void

活動

PageEnter

Fires when a page comes into view, and is going to be rendered.

參數

page: Instance

PageLeave

Fires when a page leaves view, and will not be rendered.

參數

page: Instance

Stopped

Fires when an animation to UIPageLayout.CurrentPage is completed without being canceled, and the view stops scrolling.

參數

currentPage: Instance