EventInspectorPanel class
#include <Jazz2/Editor/Shell/EventPanels.h>
Properties of the selected events, or of the event to place when none is selected.
Constructors, destructors, conversion operators
- EventInspectorPanel(IEditorContext& session) explicit
Public functions
- void Update(float timeMult) override
-
auto GetPrimary(Formats::
EventRecord& event) const -> bool - Returns the event whose properties are shown,
falseif there is none. - auto HasMixedKinds() const -> bool
- Returns
trueif the selected events are of different kinds. -
auto GetOtherKind() const -> std::
uint16_t - Returns the kind of a selected event other than the shown one, if they're of different kinds, 0 otherwise.
-
void Change(StringView name,
Function<void(Formats::
EventRecord&)>&& change, bool sameTypeOnly, bool final = true) - Changes the selected events, or the event to place.
Function documentation
bool Jazz2:: Editor:: EventInspectorPanel:: HasMixedKinds() const
Returns true if the selected events are of different kinds.
Their parameters mean something else for each kind, so only what all events have in common is shown then — the difficulties and the flags.
void Jazz2:: Editor:: EventInspectorPanel:: Change(StringView name,
Function<void(Formats:: EventRecord&)>&& change,
bool sameTypeOnly,
bool final = true)
Changes the selected events, or the event to place.
| Parameters | |
|---|---|
| name | Name of the change, translated, changes of the same name are merged while a value is dragged, so it has to be different for each property |
| change | Changes an event |
| sameTypeOnly | Whether only the events of the type of the shown one are changed, nothing is changed then while the selected events are of different kinds, see HasMixedKinds() |
| final | Whether it ends the step, false only while a value is dragged |