Browse Source

Merge pull request #2419 from cg2121/update-id

obs-scripting: Update text source IDs
Jim 5 years ago
parent
commit
2f22139670

+ 1 - 1
UI/frontend-plugins/frontend-tools/data/scripts/countdown.lua

@@ -112,7 +112,7 @@ function script_properties()
 	if sources ~= nil then
 		for _, source in ipairs(sources) do
 			source_id = obs.obs_source_get_id(source)
-			if source_id == "text_gdiplus" or source_id == "text_ft2_source" then
+			if source_id == "text_gdiplus" or source_id == "text_ft2_source" or source_id == "text_gdiplus_v2" or source_id == "text_ft2_source_v2" then
 				local name = obs.obs_source_get_name(source)
 				obs.obs_property_list_add_string(p, name, name)
 			end

+ 1 - 1
UI/frontend-plugins/frontend-tools/data/scripts/url-text.py

@@ -67,7 +67,7 @@ def script_properties():
 	if sources is not None:
 		for source in sources:
 			source_id = obs.obs_source_get_id(source)
-			if source_id == "text_gdiplus" or source_id == "text_ft2_source":
+			if source_id == "text_gdiplus" or source_id == "text_ft2_source" or source_id == "text_gdiplus_v2" or source_id == "text_ft2_source_v2":
 				name = obs.obs_source_get_name(source)
 				obs.obs_property_list_add_string(p, name, name)