ImagePanel
Inherits all properties from Panel.
Special Properties
- scaleImage: A boolean that determines whether to scale the image to its specified width and height.
- scaleAmount: A float that determines how much the image should scale.
- tileImage: A boolean that determines whether to tile the image.
- tileHorizontally: A boolean that determines whether to tile the image horizontally.
- tileVertically: A boolean that determines whether to tile the image vertically.
- image: The actual image. Expects a path to a .VMT file in the
/materials/vgui
folder. - fillcolor: Determines the background color behind the image. Only painted if the alpha is higher than 0.
Example
"HudHealthOverlay" { "ControlName" "ImagePanel" "fieldName" "HudHealthOverlay" "xpos" "0" "ypos" "0" "wide" "512" "tall" "128" "positionImage" "0" "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" "image" "hud/lower_left" "scaleImage" "1" "scaleAmount" "0.5" }