# GuiButton(ロブロックス クラス) > An abstract class for interactive 2D user interface elements. - URL:https://roblox.minecraft-okinawa.com/reference/classes/GuiButton/ - 公式:https://create.roblox.com/docs/reference/engine/classes/GuiButton - 受け継いでいるクラス:GuiObject ## プロパティ - `GuiButton.AutoButtonColor: boolean`:Determines whether the button automatically changes color when the mouse hovers over or clicks on it. - `GuiButton.HoverHapticEffect: HapticEffect`:A HapticEffect instance that will play when the GuiButton is being hovered. - `GuiButton.Modal: boolean`:If true while the GUI element is visible, the mouse will not be locked unless the right mouse button is down. - `GuiButton.PressHapticEffect: HapticEffect`:A HapticEffect instance that will play when the GuiButton is being pressed. - `GuiButton.Selected: boolean`:A boolean property which indicates whether the object has been selected. - `GuiButton.Style: ButtonStyle`:Sets the style of the GuiButton based on a list of pre-determined styles. ## イベント - `GuiButton.Activated(inputObject: InputObject, clickCount: int)`:Fires when the button is activated. - `GuiButton.MouseButton1Click()`:Fires when the user's mouse fully left clicks the GuiButton. - `GuiButton.MouseButton1Down(x: int, y: int)`:Fires when the user presses their left mouse button down on the GuiButton. - `GuiButton.MouseButton1Up(x: int, y: int)`:Fires when the user releases their left mouse button off of the GuiButton. - `GuiButton.MouseButton2Click()`:Fires when the user's mouse fully right clicks the GuiButton. - `GuiButton.MouseButton2Down(x: int, y: int)`:Fires when the user presses their right mouse button down on the GuiButton. - `GuiButton.MouseButton2Up(x: int, y: int)`:Fires when the user releases their right mouse button off of the GuiButton. - `GuiButton.SecondaryActivated(inputObject: InputObject)`:Fires when the button's "secondary" input is activated. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)