Image Widget

From C4 Engine Wiki
Revision as of 12:41, 15 July 2023 by Eric Lengyel (talk | contribs) (Created page with "The '''Image Widget''' displays a plain texture image. The widget color applies a tint to the texture image. == Settings == The following settings are available specifically for Image Widgets. {| {{Table}} {{Tablehead|Setting|Description}} |- {{HeadingSetting|'''Image Settings'''}} |- {{Setting|'''Texture map'''|Specifies the texture resource that is displayed by the widget.}} |- {{Setting|'''X scale'''|Applies a horizontal scale to the texture image.}} |- {{Set...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Image Widget displays a plain texture image.

The widget color applies a tint to the texture image.

Settings

The following settings are available specifically for Image Widgets.

Setting

Description

Image Settings

Texture map

Specifies the texture resource that is displayed by the widget.

X scale

Applies a horizontal scale to the texture image.

Y scale

Aapplies a vertical scale to the texture image.

X offset

Applies a horizontal offset to the texture image.

Y offset

Applies a vertical offset to the texture image.

Blend mode

Specifies the blending mode for the texture image:

  • The value Add causes the image to be added to the background.
  • The value Alpha add causes the image to be multiplied by its alpha channel and then added to the background.
  • The value Alpha blend causes the image to be multiplied by its alpha channel and then added to the background multiplied by the inverse of the image's alpha channel.
  • The value Alpha preblend causes the image to be added to the background multiplied by the inverse of the image's alpha channel.
  • The value Replace causes the image to replace the background with no blending.

Layer/depth coordinate

Applies only to 2D array textures are 3D textures, and it specifies the layer or depth coordinate used to display the image.

Cube map face index

Applies only to cube map textures, and it specifies which face is displayed by the image widget.

See Also