ImageButton

ImageButton : GuiButton

Properties

Image

string

The content id of the image to display.

Code Samples

local ScreenGui = script.Parent
local ImageButton = ScreenGui.ImageButton

ImageButton.Image = "ovdrassetid://1234"

HoverImage

string

HoverImage is the content ID of the image to display when the user's cursor is hovering over the ImageButton.

Code Samples

local ScreenGui = script.Parent
local ImageButton = ScreenGui.ImageButton

ImageButton.HoverImage = "ovdrassetid://1234"

PressImage

string

PressImage defines the content ID of the image to display when the ImageButton is pressed or clicked.

Code Samples

local ScreenGui = script.Parent
local ImageButton = ScreenGui.ImageButton

ImageButton.PressImage = "ovdrassetid://1234"

ImageTransparency

number

ImageTransparency controls the transparency level of the displayed image, ranging from 0 to 1.

Code Samples

local ScreenGui = script.Parent
local ImageButton = ScreenGui.ImageButton

ImageButton.ImageTransparency = 0.5

ImageColor3

Color3

ImageColor3 adjusts the color tint of the displayed image using a Color3 value.

Code Samples

local ScreenGui = script.Parent
local ImageButton = ScreenGui.ImageButton

ImageButton.ImageColor3 = Color3.new(1, 0, 0)

ImageContent

Content

ImageContent specifies the complete content data of the primary image displayed by the ImageButton.

Code Samples

local ScreenGui = script.Parent
local ImageButton = ScreenGui.ImageButton

ImageButton.ImageContent = "Complete content data here"

HoverImageContent

Content

HoverImageContent defines the full content data of the image to show when the user's cursor hovers over the ImageButton.

Code Samples

local ScreenGui = script.Parent
local ImageButton = ScreenGui.ImageButton

ImageButton.HoverImageContent = "Hover content data here"

PressImageContent

Content

PressImageContent provides the full content data of the image to display while the ImageButton is being pressed.

Code Samples

local ScreenGui = script.Parent
local ImageButton = ScreenGui.ImageButton

ImageButton.PressImageContent = "Press content data here"

Methods

Events

Last updated