ImageButton

ImageButton : GuiButton

Overview

ImageButton์€ ์ด๋ฏธ์ง€ ํ‘œ์‹œ ๋ฐฉ์‹์€ ImageLabel๊ณผ ๊ฐ™์ง€๋งŒ, ๋ฒ„ํŠผ์œผ๋กœ์„œ์˜ ์ƒํ˜ธ์ž‘์šฉ ๊ธฐ๋Šฅ์ด ๋”ํ•ด์ง„ ํ˜•ํƒœ์ž…๋‹ˆ๋‹ค. ์ฆ‰, ์ด๋ฏธ์ง€๋ฅผ ํ‘œ์‹œํ•˜๋ฉด์„œ๋„ ํด๋ฆญยทํ„ฐ์น˜ ๊ฐ™์€ GuiButton์˜ ์ด๋ฒคํŠธ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” UI ์š”์†Œ์ž…๋‹ˆ๋‹ค.

ImageButton์€ ํด๋ผ์ด์–ธํŠธ ํ™˜๊ฒฝ์—์„œ๋งŒ ์ œ์–ดํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Properties

HoverImage

string

ImageButton์— ๋งˆ์šฐ์Šค ์ปค์„œ๊ฐ€ ์˜ฌ๋ผ๊ฐ”์„ ๋•Œ(ํ˜ธ๋ฒ„ ์ƒํƒœ) ํ‘œ์‹œํ•  ์ด๋ฏธ์ง€ ์—์…‹์„ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค.

Code Samples

local ScreenGui = script.Parent
local ImageButton = ScreenGui:WaitForChild("ImageButton")

ImageButton.HoverImage = "ovdrassetid://1234"

HoverImageContent

Content

ํ˜„์žฌ ์ง€์›๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

Code Samples

Image

string

ImageButton์— ํ‘œ์‹œํ•  ์ด๋ฏธ์ง€ ์—์…‹์„ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค.

Code Samples

ImageColor3

Color3

์ด๋ฏธ์ง€์— ์ ์šฉ๋˜๋Š” ์ƒ‰์ƒ์„ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค.

์ƒ‰์„ ํฐ์ƒ‰์œผ๋กœ ๋‘๋ฉด ์›๋ณธ ์ด๋ฏธ์ง€๊ฐ€ ๊ทธ๋Œ€๋กœ ํ‘œ์‹œ๋˜๋ฉฐ, ๋‹ค๋ฅธ ์ƒ‰์„ ์ง€์ •ํ•˜๋ฉด ์ด๋ฏธ์ง€ ์ „์ฒด์— ๊ทธ ์ƒ‰์กฐ๊ฐ€ ์ž…ํ˜€์ง‘๋‹ˆ๋‹ค.

Code Samples

ImageContent

Content

ํ˜„์žฌ ์ง€์›๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

Code Samples

ImageTransparency

number

์ด๋ฏธ์ง€์˜ ํˆฌ๋ช…๋„๋ฅผ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค.

0์€ ์™„์ „ํ•œ ๋ถˆํˆฌ๋ช… ์ƒํƒœ๋ฅผ ์˜๋ฏธํ•˜๊ณ , 1์€ ์ „ํ˜€ ๋ณด์ด์ง€ ์•Š๋Š” ์ƒํƒœ๋ฅผ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค.

๋ฐฐ๊ฒฝ์„ ์ˆจ๊ธฐ๊ณ  ์ด๋ฏธ์ง€๋งŒ ํ‘œ์‹œํ•˜๊ณ  ์‹ถ๋‹ค๋ฉด BackgroundTransparency๋ฅผ 1๋กœ ์„ค์ •ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

Code Samples

PressImage

string

ImageButton์ด ๋ˆŒ๋ ธ์„ ๋•Œ ํ‘œ์‹œํ•  ์ด๋ฏธ์ง€ ์—์…‹์„ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค.

Code Samples

PressImageContent

Content

ํ˜„์žฌ ์ง€์›๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

Code Samples

Methods

Events

See also

GUI

Last updated