Skip to content
Matthias Görges edited this page Apr 15, 2015 · 2 revisions

glgui-image draws an image texture with given dimensions. The image is converted from a PNG image stored in the application's textures folder.

Parameter Description
g Graphical User Interface (GUI) for this widget
x Lower left corner along the x-axis in pixels
y Lower left corner along the y-axis in pixels
w Width of the element in pixels
h Height of the element in pixels
image The image texture
color The widget color
bgcolor Optional: The widget background color

Example

Example 1: Create a splash screen widget with x=0, y=0, width=60, height=50, and specified image file

(glgui-image gui 0 0 60 50 splash White)
Clone this wiki locally