Difference between revisions of "ImGui.Core:scaledImageButtonWithText"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 7: Line 7:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
ImGui:scaledImageButtonWithText(texture,text,w,h,padding,bgcolor,bgalpha,color,alpha,anchorx,anchory)
 
ImGui:scaledImageButtonWithText(texture,text,w,h,padding,bgcolor,bgalpha,color,alpha,anchorx,anchory)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 15:29, 13 July 2023

Available since: Gideros 2020.9
Class: ImGui

Description

Displays an image button scaled to fit space while keeping its aspect ratio along with some text.

ImGui:scaledImageButtonWithText(texture,text,w,h,padding,bgcolor,bgalpha,color,alpha,anchorx,anchory)

Parameters

texture: (texture) the image texture
text: (string) the button text
w: (number) the image width
h: (number) the image height
padding: (number) the image padding value
bgcolor: (number) the image background color in hex format optional
bgalpha: (number) the image background alpha optional
color: (number) the image tint color in hex format optional
alpha: (number) the image alpha optional
anchorx: (number) the image anchor x optional
anchory: (number) the image anchor y optional