UI, obs-plugins: Add spinbox suffixes where necessary

This commit is contained in:
Clayton Groeneveld
2019-07-18 02:38:50 -05:00
parent 8af49016fa
commit 3ea354b4e4
19 changed files with 172 additions and 136 deletions

View File

@@ -76,8 +76,9 @@ static obs_properties_t *gain_properties(void *data)
{
obs_properties_t *ppts = obs_properties_create();
obs_properties_add_float_slider(ppts, S_GAIN_DB, TEXT_GAIN_DB, -30.0,
30.0, 0.1);
obs_property_t *p = obs_properties_add_float_slider(
ppts, S_GAIN_DB, TEXT_GAIN_DB, -30.0, 30.0, 0.1);
obs_property_float_set_suffix(p, " dB");
UNUSED_PARAMETER(data);
return ppts;