Class SoundMixerExposedParametersTableGui
The exposed-parameter row table (mixer parameter name to GameSettings Id) drawn by
CreateSoundMixerSettingsWindow's Parameters step. Mirrors
Serenity.Score.Infrastructure.Editor.ScoreMetricsTableGui's row/Add/Remove/undo shape, applied
to ConfigurationEntry rows, with live duplicate/empty-name validation via
Serenity.Global.Infrastructure.Editor.SerenityWizardFieldRules.UniqueWithinRows(System.Int32,System.Collections.Generic.IReadOnlyList{System.String},System.String,System.Func{System.Int32,System.String,System.String}). Pure IMGUI presentation: the caller owns the
rows list and decides what (if anything) backs undo.
Inherited Members
Namespace: Serenity.SoundMixer.Installation.Settings.Editor.Builder
Assembly: Serenity.UnitySoundMixer.Installation.Editor.dll
Syntax
public static class SoundMixerExposedParametersTableGui
Methods
AddMissingNamesFromMixer(List<ConfigurationEntry>, IReadOnlyList<string>, Object)
Appends a row for every name in mixerParameterNames that
rows does not already contain — the "Read exposed parameters from the mixer"
button's action. Never touches an existing row's GameSettings Id column, so re-reading the mixer
after some parameters are already mapped does not wipe that work. Returns how many rows were added.
Declaration
public static int AddMissingNamesFromMixer(List<ConfigurationEntry> rows, IReadOnlyList<string> mixerParameterNames, Object undoTarget)
Parameters
| Type | Name | Description |
|---|---|---|
| List<ConfigurationEntry> | rows | |
| IReadOnlyList<string> | mixerParameterNames | |
| Object | undoTarget |
Returns
| Type | Description |
|---|---|
| int |
Draw(List<ConfigurationEntry>, Object)
Draws the table over rows in place, plus an "Add Row" button below it.
undoTarget is the persisted asset changes are recorded and saved against — pass
null while the rows are a wizard's not-yet-committed scratch list.
Declaration
public static void Draw(List<ConfigurationEntry> rows, Object undoTarget)
Parameters
| Type | Name | Description |
|---|---|---|
| List<ConfigurationEntry> | rows | |
| Object | undoTarget |