UIPageLayout

Hiển Thị Bản Đã Lỗi Thời

*Nội dung này sẽ sớm có sẵn bằng ngôn ngữ bạn chọn.

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.

Tóm Tắt

Thuộc Tính

  • Đọc Song Song

    Whether or not to animate transitions between pages.

  • Đọc Song Song

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

  • Chỉ Đọc
    Không Sao Chép
    Đọc Song Song

    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.

  • Đọc Song Song

    Controls the overrides of NextSelection{Up, Down, Left, Right}. Defaults to true.

  • Đọc Song Song

    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.

  • Đọc Song Song

    Controls touch scrolling, in case this is a non-interactive layout. Defaults to true.

  • Đọc Song Song

    The length of the animation.

Thuộc Tính kế thừa từ UIGridStyleLayout

Phương Pháp

Sự Kiện

Thuộc Tính

Animated

Đọc Song Song

Whether or not to animate transitions between pages.

Circular

Đọc Song Song

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

CurrentPage

Chỉ Đọc
Không Sao Chép
Đọc Song Song

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

EasingDirection

Đọc Song Song

The easing direction to use when performing an animation.

EasingStyle

Đọc Song Song

The easing style to use when performing an animation.

GamepadInputEnabled

Đọc Song Song

Controls the overrides of NextSelection{Up,Down,Left,Right}. Defaults to true.

Padding

Đọc Song Song

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

Đọc Song Song

Controls the use of scroll wheel, in case that it is intended for something else. Defaults to true.

TouchInputEnabled

Đọc Song Song

Controls touch scrolling, in case this is a non-interactive layout. Defaults to true.

TweenTime

Đọc Song Song

The length of the animation.

Phương Pháp

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.

Tham Số

page: Instance

Lợi Nhuận

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.

Tham Số

index: number

Lợi Nhuận

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.


Lợi Nhuận

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.


Lợi Nhuận

void

Sự Kiện

PageEnter

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

Tham Số

page: Instance

PageLeave

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

Tham Số

page: Instance

Stopped

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

Tham Số

currentPage: Instance