Skip to content

Local Overrides Sample: Left click no longer returns to group

bp2008 edited this page May 9, 2022 · 2 revisions

This script makes it so that left clicking the video player when a camera is maximized, it will not return you to the camera group.

To learn more about ui3-local-overrides, see: Local Overrides Scripts and Styles

ui3-local-overrides.js

BI_CustomEvent.AddListener("UI_Loading_End", function ()
{
	var originalImgClick_Camera = videoPlayer.ImgClick_Camera;
	videoPlayer.ImgClick_Camera = function (camData)
	{
		if (camData.optionValue === videoPlayer.Loaded().image.id)
			return;
		originalImgClick_Camera.apply(this, arguments);
	}
});
Clone this wiki locally