ui library

Constants

kHeartSprite → const List<String>

Properties

achievementEffect → SimulatedEffect
final
coinCollectEffect → SimulatedEffect
final
comboCounterEffect → SimulatedEffect
final
confettiEffect → SimulatedEffect
final
countdownEffect → SimulatedEffect
final
critNumberEffect → SimulatedEffect
final
damageNumberEffect → SimulatedEffect
final
exclamationEffect → SimulatedEffect
final
healthBarHitEffect → SimulatedEffect
final
heartLostEffect → SimulatedEffect
final
levelUpEffect → SimulatedEffect
final
questCompleteEffect → SimulatedEffect
final
uiEffects → List<PixelEffect>
final

Functions

drawWord(Painter p, List<WordLetter> items, WordStyle st) → void
Draw letters as one word with 1 px bevel, 1 px outline, drop shadow, optional diagonal shine & white flash.
haloActor(Painter p, ActorDefinition? a, int c, double k, [double t = 0.0]) → void
A glowing 1 px line just outside a character, flickering.
heartPal(List<int> c) → Map<String, Object>
lightActor(Painter p, ActorDefinition? a, int c, double k, [double rim = 0.0, double t = 0.0]) → void
Light a character: warm additive light over its body and bright rim inside its dark outline.
panel(Painter p, double x, double y, double w, double h, PanelColors col, {double r = 3.0, double a = 1.0, double? shine}) → void
shake(double t, double amp, [double t0 = 0.0, double len = 0.3, int seed = 1, double hz = 32.0]) → (int, int)
spell(String str, [PixelFontKind font = PixelFontKind.big]) → SpelledWord
Lay out str left to right in font pixels.
tintActor(Painter p, ActorDefinition? a, double k, List<int> ramp) → void
Flash a character in light: pixels recolored by brightness into ramp.