Creator Guide
English
English
  • 🚩Introduction to OVERDARE
  • 🐤Get Started
    • OVERDARE App
    • OVERDARE Studio
  • 📌Policy
    • Community Guidelines
    • UGC Creation Guidelines
    • Guidelines on the External Use of UGC
    • Logo Usage Guidelines
    • Intellectual Property Rights Policy
    • Reporting Guidelines
    • Guidelines on Disputing Suspensions and Bans
    • Creator Payout Policy
    • Monetization Guidelines
  • 🏰Studio Manual
    • Studio Interface
    • Asset Import
    • Coordinate System
    • Game Settings
    • Studio Test Play
    • World Publish
    • Collaboration
    • Script Editor
    • Align Tool
    • Animation Editor
    • Material Manager
    • Collision Groups
    • Tag Editor
    • Payout Guideline
    • Object
      • Part
      • Model
      • Character
        • Humanoid Description
      • Camera
      • Physics
      • Lighting
      • Tool
      • VFX
      • Sound
      • GUI
  • 📝Script Manual
    • Script Overview
    • Basic Guide to Lua
    • Coding Style
    • Object Reference
    • Event
    • Server-Client Communication
    • BindableEvent
    • Value Objects
    • Mobile Input Handling
    • Tween
    • Breakpoint
    • Module Script
    • TPS Strafing System
    • Saving & Loading Data
    • Unity Developer Guide
  • 📚API Reference
    • Enums
      • ActuatorRelativeTo
      • AnimationPriority
      • AspectType
      • AssetTypeVerification
      • BorderMode
      • CameraMode
      • CameraType
      • ContextActionResult
      • CoreGuiType
      • DominantAxis
      • EasingDirection
      • EasingStyle
      • ForceLimitMode
      • HttpCompression
      • HttpContentType
      • HumanoidDisplayDistanceType
      • HumanoidStateType
      • KeyCode
      • Material
      • MaterialPattern
      • NormalId
      • ParticleEmitterShape
      • ParticleEmitterShapeInOut
      • ParticleEmitterShapeStyle
      • ParticleFlipbookLayout
      • ParticleFlipbookMode
      • ParticleOrientation
      • PartType
      • PlaybackState
      • RaycastFilterType
      • RollOffMode
      • RotationType
      • UserInputState
      • UserInputType
      • VelocityConstraintMode
    • DataTypes
      • BlendSpaceSampleSata
      • BrickColor
      • CFrame
      • Color3
      • ColorSequence
      • ColorSequenceKeypoint
      • Content
      • Enum
      • EnumItem
      • NumberRange
      • NumberSequence
      • NumberSequenceKeypoint
      • OverlapParams
      • PhysicalProperties
      • Ray
      • RaycastParams
      • RaycastResult
      • ScriptConnection
      • ScriptSignal
      • TweenInfo
      • Udim
      • Udim2
      • Vector2
      • Vector3
    • Classes
      • Animation
      • AngularVelocity
      • AnimationTrack
      • Animator
      • Atmosphere
      • Attachment
      • Backpack
      • BackpackItem
      • BasePart
      • BaseScript
      • Beam
      • BindableEvent
      • BlendSpace
      • BoolValue
      • Bone
      • Camera
      • CharacterMesh
      • CollectionService
      • Constraint
      • ContextActionService
      • CoreGui
      • DataStore
      • DataModel
      • DataStoreGetOptions
      • DataStoreIncrementOptions
      • DataStoreInfo
      • DataStoreKeyPages
      • DataStoreKeyInfo
      • DataStoreService
      • DataStoreListingPages
      • DataStoreSetOptions
      • FormFactorPart
      • Frame
      • Folder
      • GlobalDataStore
      • GuiBase2d
      • GuiButton
      • GuiObject
      • HttpService
      • Humanoid
      • HumanoidDescription
      • ImageButton
      • ImageLabel
      • InputObject
      • IntValue
      • LayerCollector
      • Instance
      • Light
      • Lighting
      • LinearVelocity
      • LocalScript
      • LuaSourceContainer
      • MaterialService
      • MaterialVariant
      • MeshPart
      • Model
      • ModuleScript
      • Mouse
      • OrderedDataStore
      • Pages
      • Part
      • ParticleEmitter
      • PhysicsService
      • Player
      • PlayerGui
      • Players
      • PlayerScripts
      • PointLight
      • PVInstance
      • ReplicatedStorage
      • RemoteEvent
      • ScreenGui
      • RunService
      • Script
      • ServerStorage
      • ServiceProvider
      • Skeleton
      • ServerScriptService
      • Sound
      • SoundService
      • SoundGroup
      • SpotLight
      • SpawnLocation
      • StarterCharacterScripts
      • StarterPack
      • StarterGui
      • StarterPlayer
      • StarterPlayerScripts
      • StringValue
      • SurfaceGui
      • SurfaceGuiBase
      • Team
      • Teams
      • TextLabel
      • TextButton
      • Tool
      • Trail
      • Tween
      • TweenService
      • TweenBase
      • UIAspectRatioConstraint
      • UserGameSettings
      • UserInputService
      • UserSettings
      • VectorForce
      • Workspace
      • WrapLayer
      • WorldRoot
      • WrapTarget
  • 🅰️OVERDARE Glossary
  • 📰Release Note
Powered by GitBook
On this page
  • Overview
  • Description
  • Properties
  • Image
  • HoverImage
  • PressImage
  • ImageTransparency
  • ImageColor3
  • ImageContent
  • HoverImageContent
  • PressImageContent
  • Methods
  • Events
  1. API Reference
  2. Classes

ImageButton

ImageButton : GuiButton

Overview

The ImageButton class is a type of GUI object that displays an interactive image, allowing users to click or tap on it to trigger events. It combines the image-rendering capabilities of an ImageLabel with the interactive features of a GuiButton, making it a versatile component for creating visually engaging and interactive user interfaces.

Description

The ImageButton class is designed to function as a clickable or tappable image, providing both visual and interactive elements. It supports various properties and events that allow developers to customize its appearance and behavior.

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

PreviousHumanoidDescriptionNextImageLabel

Last updated 25 days ago

📚