mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
filter/displacement: Add missing deprecation notice
This commit is contained in:
parent
5ea8aa2acc
commit
b5195c580c
3 changed files with 16 additions and 0 deletions
|
@ -379,6 +379,7 @@ Filter.Denoising.NVIDIA.Denoising.Strength.Strong="Strong"
|
|||
|
||||
# Filter - Displacement
|
||||
Filter.Displacement="Displacement Mapping"
|
||||
Filter.Displacement.Deprecated="This filter is deprecated and has been removed. Users are urged to migrate to the 'Shader' filter with the 'displace.effect' example immediately."
|
||||
Filter.Displacement.File="File"
|
||||
Filter.Displacement.Scale="Scale"
|
||||
Filter.Displacement.Scale.Type="Scaling Type"
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
//--------------------------------------------------------------------------------//
|
||||
// THIS FEATURE IS DEPRECATED. SUBMITTED PATCHES WILL BE REJECTED.
|
||||
//--------------------------------------------------------------------------------//
|
||||
|
||||
#include "filter-displacement.hpp"
|
||||
#include "strings.hpp"
|
||||
#include <stdexcept>
|
||||
|
@ -39,6 +43,7 @@
|
|||
#endif
|
||||
|
||||
#define ST_I18N "Filter.Displacement"
|
||||
#define ST_I18N_DEPRECATED ST_I18N ".Deprecated"
|
||||
#define ST_I18N_FILE "Filter.Displacement.File"
|
||||
#define ST_KEY_FILE "Filter.Displacement.File"
|
||||
#define ST_I18N_SCALE "Filter.Displacement.Scale"
|
||||
|
@ -174,6 +179,12 @@ obs_properties_t* displacement_factory::get_properties2(displacement_instance* d
|
|||
{
|
||||
obs_properties_t* pr = obs_properties_create();
|
||||
|
||||
{
|
||||
auto p = obs_properties_add_text(pr, "[[deprecated]]", D_TRANSLATE(ST_I18N_DEPRECATED), OBS_TEXT_INFO);
|
||||
obs_property_text_set_info_type(p, OBS_TEXT_INFO_WARNING);
|
||||
obs_property_text_set_info_word_wrap(p, true);
|
||||
}
|
||||
|
||||
std::string path = "";
|
||||
if (data) {
|
||||
path = data->get_file();
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
//--------------------------------------------------------------------------------//
|
||||
// THIS FEATURE IS DEPRECATED. SUBMITTED PATCHES WILL BE REJECTED.
|
||||
//--------------------------------------------------------------------------------//
|
||||
|
||||
#pragma once
|
||||
#include "common.hpp"
|
||||
#include "obs/gs/gs-effect.hpp"
|
||||
|
|
Loading…
Reference in a new issue