DecayKnowledgebase
functiongenerated

Ui.set_class

Gives an element a stylesheet class (true) or takes it away: it is restyled on the next frame, and an animation the class names starts.

Signature

Ui.set_class(element: Entity, class: String, on: bool) -> unit

Member of Ui

Related types

Entity

Source
docs/generated/decay-api.json
Schema
v1
Engine version
0.1.0
Source commit
909aca81368b