TextButtonクラス
ひとことで言うと
文字の付いた、押せるボタンのGUIの部品です。
公式の説明(英語):A 2D user interface element that displays interactive text.
クラスの関係
受け継いでいるクラス:Object → Instance → GuiBase → GuiBase2d → GuiObject → GuiButton → TextButton
プロパティ(21)
| 名前と書き方 | 説明 |
|---|---|
ContentTextTextButton.ContentText: string | A copy of TextButton.Text that contains exactly what is being rendered by the TextButton. |
FontFaceTextButton.FontFace: Datatype.Font | Determines the font used to render text. |
LineHeightTextButton.LineHeight: float | Scales the spacing between lines of text in the TextButton. |
MaxVisibleGraphemesTextButton.MaxVisibleGraphemes: int | The maximum number of graphemes the TextButton can show. |
OpenTypeFeaturesTextButton.OpenTypeFeatures: string | Applies OpenType font features, such as stylistic sets, to the text rendered by the TextButton. |
OpenTypeFeaturesErrorTextButton.OpenTypeFeaturesError: string | Read-only property that contains the error message, if any, produced while applying Class.TextButton.OpenTypeFeatures|OpenTypeFeatures. |
RichTextTextButton.RichText: boolean | Determines whether the TextButton renders its text using rich text formatting. |
TextTextButton.Text: string | ボタンに表示する文字。Determines the string rendered by the TextButton. |
TextBoundsTextButton.TextBounds: Vector2 | Read-only property which reflects the absolute size of rendered text in offsets. |
TextColor3TextButton.TextColor3: Color3 | Determines the color of rendered text. |
TextDirectionTextButton.TextDirection: TextDirection | Direction in which the text is rendered. |
TextFitsTextButton.TextFits: boolean | A boolean representation of whether the button's text fits within the size of it. |
TextScaledTextButton.TextScaled: boolean | Changes whether text is resized to fit within the TextButton. |
TextSizeTextButton.TextSize: float | Determines the line height of text in offsets. |
TextStrokeColor3TextButton.TextStrokeColor3: Color3 | Determines the color of the text stroke (outline). |
TextStrokeTransparencyTextButton.TextStrokeTransparency: float | Determines the transparency of the text stroke (outline). |
TextTransparencyTextButton.TextTransparency: float | Determines the transparency of rendered text. |
TextTruncateTextButton.TextTruncate: TextTruncate | Controls the truncation of the text displayed in the TextButton. |
TextWrappedTextButton.TextWrapped: boolean | Determines if text wraps to multiple lines within the TextButton element's space, truncating excess text. |
TextXAlignmentTextButton.TextXAlignment: TextXAlignment | Determines the horizontal alignment of rendered text. |
TextYAlignmentTextButton.TextYAlignment: TextYAlignment | Determines the vertical alignment of rendered text. |
受け継いでいるメンバー
GuiButton から受け継いでいるもの(14)
AutoButtonColor・HoverHapticEffect・Modal・PressHapticEffect・Selected・Style・Activated・MouseButton1Click・MouseButton1Down・MouseButton1Up・MouseButton2Click・MouseButton2Down・MouseButton2Up・SecondaryActivated
GuiObject から受け継いでいるもの(42)
Active・AnchorPoint・AutomaticSize・BackgroundColor3・BackgroundTransparency・BorderColor3・BorderMode・BorderSizePixel・ClipsDescendants・GuiState・InputSink・Interactable・LayoutOrder・NextSelectionDown・NextSelectionLeft・NextSelectionRight・NextSelectionUp・Position・Rotation・Selectable・SelectionImageObject・SelectionOrder・Size・SizeConstraint・Visible・ZIndex・InputBegan・InputChanged・InputEnded・MouseEnter・MouseLeave・MouseMoved・MouseWheelBackward・MouseWheelForward・SelectionGained・SelectionLost・TouchLongPress・TouchPan・TouchPinch・TouchRotate・TouchSwipe・TouchTap
GuiBase2d から受け継いでいるもの(11)
AbsolutePosition・AbsoluteRotation・AbsoluteSize・AutoLocalize・RootLocalizationTable・SelectionBehaviorDown・SelectionBehaviorLeft・SelectionBehaviorRight・SelectionBehaviorUp・SelectionGroup・SelectionChanged
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(TextButton)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。