diff --git a/audio-move.c b/audio-move.c index 516c1fc..1e70c3a 100644 --- a/audio-move.c +++ b/audio-move.c @@ -711,6 +711,8 @@ static obs_properties_t *audio_move_properties(void *data) p = obs_properties_add_float_slider(ppts, "threshold", obs_module_text("Threshold"), 0.0, 100.0, 0.01); + obs_properties_add_text(ppts, "plugin_info", PLUGIN_INFO, + OBS_TEXT_INFO); return ppts; } diff --git a/move-action-filter.c b/move-action-filter.c index ecdc040..de546df 100644 --- a/move-action-filter.c +++ b/move-action-filter.c @@ -244,7 +244,6 @@ static obs_properties_t *move_action_properties(void *data) //obs_frontend_open_properties move_filter_properties(data, ppts); - return ppts; } diff --git a/move-filter.c b/move-filter.c index 3fc4368..6cb6d22 100644 --- a/move-filter.c +++ b/move-filter.c @@ -517,6 +517,8 @@ void move_filter_properties(struct move_filter *move_filter, obs_properties_add_button(ppts, "move_filter_start", obs_module_text("Start"), move_filter_start_button); + obs_properties_add_text(ppts, "plugin_info", PLUGIN_INFO, + OBS_TEXT_INFO); } void move_filter_activate(void *data) diff --git a/move-source-filter.c b/move-source-filter.c index 426207d..7ef58ce 100644 --- a/move-source-filter.c +++ b/move-source-filter.c @@ -801,7 +801,8 @@ static void *move_source_create(obs_data_t *settings, obs_source_t *source) { struct move_source_info *move_source = bzalloc(sizeof(struct move_source_info)); - move_filter_init(&move_source->move_filter, source, (void (*)(void *))move_source_start); + move_filter_init(&move_source->move_filter, source, + (void (*)(void *))move_source_start); move_source->move_filter.get_alternative_source = move_source_get_source; move_source_update(move_source, settings); @@ -1168,9 +1169,12 @@ static obs_properties_t *move_source_properties(void *data) if (!scene) scene = obs_group_from_source(parent); if (!scene) { - obs_properties_add_button(ppts, "warning", - obs_module_text("ScenesOnlyFilter"), - NULL); + obs_property_t *w = obs_properties_add_text( + ppts, "warning", obs_module_text("ScenesOnlyFilter"), + OBS_TEXT_INFO); + obs_property_text_set_info_type(w, OBS_TEXT_INFO_WARNING); + obs_properties_add_text(ppts, "plugin_info", PLUGIN_INFO, + OBS_TEXT_INFO); return ppts; } if (!move_source->scene_item && move_source->source_name && @@ -1470,6 +1474,8 @@ static obs_properties_t *move_source_properties(void *data) p = obs_properties_add_group(ppts, S_ACTIONS, obs_module_text("Actions"), OBS_GROUP_NORMAL, group); + obs_properties_add_text(ppts, "plugin_info", PLUGIN_INFO, + OBS_TEXT_INFO); return ppts; } diff --git a/move-transition-override-filter.c b/move-transition-override-filter.c index 1f7a489..812c38d 100644 --- a/move-transition-override-filter.c +++ b/move-transition-override-filter.c @@ -21,7 +21,8 @@ void move_filter_source_rename(void *data, calldata_t *call_data) obs_data_release(settings); } -static void *move_override_filter_create(obs_data_t *settings, obs_source_t *source) +static void *move_override_filter_create(obs_data_t *settings, + obs_source_t *source) { struct move_filter_info *move_filter = bzalloc(sizeof(struct move_filter_info)); @@ -307,7 +308,8 @@ static obs_properties_t *move_override_filter_properties(void *data) obs_properties_add_group(ppts, S_MOVE_OUT, obs_module_text("MoveOut"), OBS_GROUP_NORMAL, group); - + obs_properties_add_text(ppts, "plugin_info", PLUGIN_INFO, + OBS_TEXT_INFO); return ppts; } diff --git a/move-transition.c b/move-transition.c index 9c31ff1..3a5e5a9 100644 --- a/move-transition.c +++ b/move-transition.c @@ -4,7 +4,6 @@ #include "graphics/math-defs.h" #include "graphics/matrix4.h" #include "easing.h" -#include "version.h" struct move_info { obs_source_t *source; @@ -2580,7 +2579,8 @@ static obs_properties_t *move_properties(void *data) obs_properties_add_group(ppts, S_MOVE_OUT, obs_module_text("MoveOut"), OBS_GROUP_NORMAL, group); - + obs_properties_add_text(ppts, "plugin_info", PLUGIN_INFO, + OBS_TEXT_INFO); UNUSED_PARAMETER(data); return ppts; } diff --git a/move-transition.h b/move-transition.h index a540033..6c9e90b 100644 --- a/move-transition.h +++ b/move-transition.h @@ -2,6 +2,7 @@ #include #include +#include "version.h" #define MOVE_SOURCE_FILTER_ID "move_source_filter" #define MOVE_VALUE_FILTER_ID "move_value_filter" @@ -11,6 +12,10 @@ #define MOVE_AUDIO_ACTION_FILTER_ID "move_audio_action_filter" #define MOVE_DIRECTSHOW_FILTER_ID "move_directshow_filter" +#define PLUGIN_INFO \ + "Move Transition (" PROJECT_VERSION \ + ") by Exeldro" + #define S_MATCH "match" #define S_MOVE_ALL "move_all" #define S_MOVE_MATCH "move_match" @@ -240,12 +245,13 @@ struct move_filter { long long next_move_on; bool reverse; bool enabled_match_moving; - void(* move_start)(void * data); - obs_source_t *(* get_alternative_source)(void * data); + void (*move_start)(void *data); + obs_source_t *(*get_alternative_source)(void *data); }; bool is_move_filter(const char *filter_id); -void move_filter_init(struct move_filter *move_filter, obs_source_t *source,void (*move_start)(void * data)); +void move_filter_init(struct move_filter *move_filter, obs_source_t *source, + void (*move_start)(void *data)); void move_filter_destroy(struct move_filter *move_filter); void move_filter_update(struct move_filter *move_filter, obs_data_t *settings); void move_filter_start(struct move_filter *move_filter); @@ -254,7 +260,8 @@ bool move_filter_start_internal(struct move_filter *move_filter); void move_filter_stop(struct move_filter *move_filter); void move_filter_ended(struct move_filter *move_filter); bool move_filter_tick(struct move_filter *move_filter, float seconds, float *t); -void move_filter_properties(struct move_filter *move_filter, obs_properties_t *ppts); +void move_filter_properties(struct move_filter *move_filter, + obs_properties_t *ppts); void move_filter_activate(void *data); void move_filter_deactivate(void *data);