Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/game/ui/styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ The template's `assets/menu/theme.ui` is the example of tokens and styles, and i
"program_values": [0.32, 0, 0, 0], "transition": 0.08, "width": 360, "height": 56,
"text_x": "center", "text_y": "center",
"hover": {"fill": "accent"},
"focus": {"extends": "hover", "move_x": 4},
"pressed": {"scale": 0.97},
"focus": {"extends": "hover", "move_x": 4}, "pressed": {"scale": 0.97},
"disabled": {"fill": "#ffffff0d", "color": "#ffffff59"}},
"dim": {"fill": "#0e0e10e6", "fill2": "#0e0e1040", "gradient": "right", "blur": 4}
}
Expand Down
8 changes: 3 additions & 5 deletions docs/game/vfx.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ sends requests. Imports: `plugins:vfx/runtime` as `vfx`,
## One-shot effect

The prefab is one entity with `Particle_Emitter{particle=id, active=true, destroy_when_done=true}`
and `loop` off; it deletes itself once its particles are dead. Spawn it as in
[spawn and forget](core/prefabs.md#spawn-and-forget), with `transient=true`, which keeps it out of
saves.
and `loop` off; it deletes itself once its particles are dead. Spawn it as in [spawn and
forget](core/prefabs.md#spawn-and-forget), with `transient=true`, which keeps it out of saves.

## Control an emitter

Expand Down Expand Up @@ -74,8 +73,7 @@ first with `trigger` `Trail`, `sub_count` 1; a program may set `particle.ribbon`

- Nothing draws unless `"vfx"` is in `plugins` of `project.mirai`.
- A request for an entity without `Particle_Emitter` only reports `vfx.request` in
`engine.diagnostics`. An emitter that finds no room in the particle pool reports
`vfx.capacity`.
`engine.diagnostics`. An emitter that finds no room in the particle pool reports `vfx.capacity`.
- `destroy_when_done` never fires with `loop` on, unless the emitter is stopped.
- Particles that hold NaN or Inf report `vfx.nan` while `particle.instance.inspect` looks at
their emitter, naming the fields of its program that hold them.
Expand Down
Loading