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
GUILast updated