DImageButton.GetImage

From GMod Wiki

Jump to: navigation, search
Function
Syntax DImageButton:GetImage( )
Description:
Returns image name
Returns: String
In Object: DImageButton
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DImageButton.GetImage]DImageButton.GetImage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionReturns image name.
Used onNewerClient.png
Code
local DImageButton= vgui.Create( "DImageButton" )
DImageButton:SetImage( "VGUI/entities/npc_antlion" )
print(DImageButton:GetImage())
OutputReturns "VGUI/entities/npc_antlion" in the console.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox