Skip to content

presetFloats ​

Function of @v12-engine/client/common

ts
export declare function presetFloats(kinds?: readonly PresetFloatKind[], over?: {
    [kind in PresetFloatKind]?: Partial<FloatDef>;
}): {
    [kind in PresetFloatKind]?: FloatDef;
};

The ready-made floats (PRESET_FLOATS) a game takes for GameView.hud.floats: all of them, or the kinds named, each with fields of the game's over it (presetFloats(['damage', 'heal'], { damage: { style: { color: '#ffe' } } }))