UIPageLayoutクラス
ひとことで言うと
UIPageLayoutは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):Positions sibling UI elements as full-size pages in a single row or column that users can scroll or animate through one page at a time.
クラスの関係
受け継いでいるクラス:Object → Instance → UIBase → UIComponent → UILayout → UIGridStyleLayout → UIPageLayout
プロパティ(10)
| 名前と書き方 | 説明 |
|---|---|
AnimatedUIPageLayout.Animated: boolean | Whether or not to animate transitions between pages. |
CircularUIPageLayout.Circular: boolean | Whether or not the page layout wraps around at the ends. |
CurrentPageUIPageLayout.CurrentPage: GuiObject | The page that is either currently being displayed or is the target of the current animation. |
EasingDirectionUIPageLayout.EasingDirection: EasingDirection | The easing direction to use when performing an animation. |
EasingStyleUIPageLayout.EasingStyle: EasingStyle | The easing style to use when performing an animation. |
GamepadInputEnabledUIPageLayout.GamepadInputEnabled: boolean | Controls the overrides of NextSelection{Up, Down, Left, Right}. Defaults to true. |
PaddingUIPageLayout.Padding: UDim | Determines the amount that pages are separated from each other by. |
ScrollWheelInputEnabledUIPageLayout.ScrollWheelInputEnabled: boolean | Controls the use of scroll wheel, in case that it is intended for something else. Defaults to true. |
TouchInputEnabledUIPageLayout.TouchInputEnabled: boolean | Controls touch scrolling, in case this is a non-interactive layout. Defaults to true. |
TweenTimeUIPageLayout.TweenTime: float | The length of the animation. |
メソッド(4)
| 名前と書き方 | 説明 |
|---|---|
JumpToUIPageLayout:JumpTo(page: Instance): () | 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. |
JumpToIndexUIPageLayout:JumpToIndex(index: int): () | If the index is >= 0 and less than the size of the layout, this method acts like Class.UIPageLayout:JumpTo(). Out-of-bounds indices are wrapped modulo the page count to determine the target page. |
NextUIPageLayout: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. |
PreviousUIPageLayout: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. |
イベント(3)
| 名前と書き方 | 説明 |
|---|---|
PageEnterUIPageLayout.PageEnter(page: Instance) | Fires when a page comes into view, and is going to be rendered. |
PageLeaveUIPageLayout.PageLeave(page: Instance) | Fires when a page leaves view, and will not be rendered. |
StoppedUIPageLayout.Stopped(currentPage: Instance) | Fires when an animation to UIPageLayout.CurrentPage is completed without being canceled, and the view stops scrolling. |
受け継いでいるメンバー
UIGridStyleLayout から受け継いでいるもの(5)
AbsoluteContentSize・FillDirection・HorizontalAlignment・SortOrder・VerticalAlignment
Instance から受け継いでいるもの(46)
Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged
Object から受け継いでいるもの(4)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(UIPageLayout)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。