M2Hud Drawable
Abstract base class for HUD-style drawable elements that support explicit positioning (X/Y), sizing (width/height), color, alignment, and the standard IM2HudDrawable contract for adding to screens and groups.
M2HudDrawable sits between the raw M2Drawable foundation and concrete primitives such as M2Shape, text, and image drawables. It provides convenience methods for setting dimensions, colors, and placement.
Parameters
An optional Any tag for identifying this drawable instance.
Inheritors
Functions
Adds this drawable to a group without alignment.
Adds this drawable to a group with optional alignment.
Adds this drawable to a screen with optional alignment.
Animates the blue color channel of this HUD drawable to the given value.
Animates the gradient angle of this shape's M2GradientFill fill to an absolute targetAngleDeg.
Animates the gradient angle of this shape's M2GradientFill by a relative amountDeg.
Animates the alpha of this shape's gradient secondary color to the given toAlpha.
Animates the blue channel of this shape's gradient secondary color to the given value.
Animates the green channel of this shape's gradient secondary color to the given value.
Animates the red channel of this shape's gradient secondary color to the given value.
Animates the gradient size of this shape's M2GradientFill to a target size expressed as a percentage of the drawable's extent along the gradient axis.
Animates the green color channel of this HUD drawable to the given value.
Animates the red color channel of this HUD drawable to the given value.
Animates a scale of this drawable's transform matrix along one axis only.
Copies all visual properties from this drawable to target.
Adds this M2HudDrawable to the given M2Panel and fades it in from fully transparent to the specified targetAlpha.
Returns the Y coordinate of the bottom edge of this drawable (y + height).
The alpha, pinned to 255 while a gradient is set.
Sets the fill color of this drawable.
Sets the fill color of this drawable using a predefined M2Color.
Sets the position and size of this drawable in a single call.
Sets the height of this drawable.
Sets both width and height to the same value, creating a square bounding box.
Sets the width of this drawable.
Sets both width and height of this drawable.
Sets this drawable's width and height to match another M2HudDrawable, optionally scaled by factor.
Sets the X coordinate of this drawable relative to its parent.
Sets the position of this drawable relative to its parent.
Sets the Y coordinate of this drawable relative to its parent.