Files
OptiScaler/plugin_sdk/sample
Michael Robles 9302028ebe Plugin API: ComboEx and ItemDeactivatedAfterEdit (#1275)
* Plugin API: ComboEx and ItemDeactivatedAfterEdit

Two widget functions appended to the end of OptiPluginApi. The API
version stays 1 and no field moves.

- ComboEx: Combo with greyed out items, bit i of disabledItems disables
  items[i]. Lets a plugin keep an option in the list while it's not
  available instead of hiding it. Combo now calls it with no items
  disabled.
- ItemDeactivatedAfterEdit: true on the frame the previous widget stopped
  being edited, a slider was released for example, so a plugin can apply
  a value once instead of on every frame of a drag.

The sample uses both: Ultra quality is greyed out below 8 samples and
the strength is logged once when its slider is released. A plain Combo
picks the counter's log level, so the sample still calls every function.

* Plugin API: 64 bit ComboEx mask, sample steps Ultra down

ComboEx takes a uint64_t disabledItemsMask, so the first 64 items can be greyed out. In the sample, lowering Samples below 8 while Ultra is selected moves Quality to High.
2026-11-03 15:40:21 +01:00
..