PushedImage||doc136493

September 20, 2022

Format

Button.PushedImage

Describe

This attribute determines the picture displayed when the button is pressed.

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--Get the Button control for testing according to the name
local button = APIRootWindow.APIButton

--Set the picture displayed in the pressed state of the button control
button.PushedImage = "asset/Texture/GUI/slider_thumb.png"