Page MenuHomeFeedback Tracker

[Feature Request/Suggestion] class mask for GUI elements
New, NormalPublic

Description

The idea is class mask in GUI elements. This does mask the controls and controlsBackground elements with mask's Black-White balance. The white part in mask is opaque, while black part is transparent.
This will allow players to make more complex GUI elements.

Example code:

class maskDisplay
{
	access = 0;
	movingEnable = 0;
	class mask	//Just plain black by default
	{
		class logo: RscPictureKeepAspect	//White logo
		{
			text = "a3\ui_f\data\Logos\arma3_expansion_ca.paa";
			x = 0;
			y = 0;
			w = 1;
			h = 1;
		};
	};
	class controls
	{
		class BG: RscBackground
		{
			x = safeZoneX;
			y = safeZoneY;
			w = safeZoneW;
			h = safeZoneH;
			colorBackground[] = {1,0.5,0,1};
		};
		class logo: RscPicture
		{
			text = "a3\ui_f\data\IGUI\RscIngameUI\RscUnitInfo\gradient_ca.paa";
			x = safeZoneX;
			y = 0;
			w = safeZoneW;
			h = 1;
			colorText[] = {0.5,0.5,0.5,1};
		};
	};
};

And the result (top: mask image, middle: controls, bottom: result)

I'm not even sure about the possibility to do this in RV engine nowadays, but this is actually I wanted to see in the game.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Ingame UI

Event Timeline

POLPOX created this task.Jan 29 2021, 8:00 AM