ReadoutStyle class final
How a game wants its readouts drawn.
One object rather than a dozen parameters, so a game states its look once and passes the same object to every readout — and so a readout that grows a fourth thing to colour does not change the shape of six call sites.
Constructors
Properties
- barHeight → double
-
final
- barWidth → double
-
final
- dim → Color
-
The empty part of a bar, and anything the player is not being asked to
look at.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → TextStyle
-
What numbers and names are drawn in.
final
- warning → Color
-
What a bar turns when it is nearly empty. See HealthBar.lowAt.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited