Page MenuHomeFeedback Tracker

Config error when creating RscTestControlStyles
New, NormalPublic

Description

The following config errors are shown in the .rpt when creating RscTestControlStyles.

11:51:23 Warning Message: No entry 'bin\config.bin/RscTestControlStyles/Controls/_ST_UPPERCASE.sizeEx'.
11:51:23 Warning Message: '/' is not a value
11:51:23 Warning Message: No entry 'bin\config.bin/RscTestControlStyles/Controls/_ST_LOWERCASE.sizeEx'.
11:51:23 Warning Message: '/' is not a value

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Ingame UI
Additional Information

Event Timeline

R3vo created this task.Oct 27 2020, 11:53 AM
R3vo added a comment.Tue, Nov 17, 6:22 PM

Just add

sizeEx = "((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";

to

configFile >> "RscTestControlStyles" >> "Controls" >> "_ST_LOWERCASE"
R3vo added a comment.Wed, Nov 18, 11:17 AM
  • Fixed all missing config properties
  • Disabled moving of the GUI since it was causing some bugs
  • Replaced debugLog with working diag_log
class RscTestControlStyles
{
	scriptName = "RscTestControlStyles";
	scriptPath = "GUI";
	onLoad = "[""onLoad"",_this,""RscTestControlStyles"",'GUI'] call (uinamespace getvariable 'BIS_fnc_initDisplay')";
	onUnload = "[""onUnload"",_this,""RscTestControlStyles"",'GUI'] call (uinamespace getvariable 'BIS_fnc_initDisplay')";
	idd = 999;
	enableSimulation = 1;
  movingEnable = 0;
	class ControlsBackground
	{
		class Background
		{
			idc = -1;
			type = 0;
			style = 0;
			x = GUI_GRID_CENTER_X;
			y = GUI_GRID_CENTER_Y;
			w = GUI_GRID_WAbs;
			h = GUI_GRID_HAbs;
			colorBackground[] = {1,1,1,1};
			colorText[] = {0,0,0,0};
			font = "RobotoCondensed";
			sizeEx = GUI_GRID_H;
			text = "";
			moving = 0;
		};
	};
	class Controls
	{
		class _ST_LEFT
		{
			type = 0;
			idc = 0;
			style = 0;
			x = 1 * GUI_GRID_W + GUI_GRID_CENTER_X;
			y = 1 * GUI_GRID_H + GUI_GRID_CENTER_Y;
			w = 10 * GUI_GRID_W;
			h = 2 * GUI_GRID_H;
			text = "ST_LEFT";
			sizeEx = GUI_GRID_H;
			font = "RobotoCondensed";
			lineSpacing = 1;
			colorText[] = {0,0,0,1};
			colorBackground[] = {1,0.5,0,1};
		};
		class _ST_RIGHT: _ST_LEFT
		{
			idc = 1;
			style = 1;
			text = "ST_RIGHT";
			y = 4 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _ST_CENTER: _ST_LEFT
		{
			idc = 2;
			style = 2;
			text = "ST_CENTER";
			y = 7 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _ST_MULTI: _ST_LEFT
		{
			idc = 16;
			style = 16;
			text = "ST_MULTI\nST_MULTI";
			y = 10 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _ST_TITLE_BAR: _ST_LEFT
		{
			idc = 32;
      moving = 0;
			style = 32;
			text = "ST_TITLE_BAR";
			y = 13 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _ST_PICTURE: _ST_LEFT
		{
			idc = 48;
			style = 48;
			text = "\A3\Ui_f\data\GUI\Cfg\Ranks\general_gs.paa";
			y = 16 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _ST_PICTURE_video: _ST_LEFT
		{
			idc = "0x30 + 1000";
			style = 48;
			text = "\A3\Missions_F_Bootcamp\video\VR_BOOT.ogv";
			colorText[] = {1,1,1,1};
			y = 19 * GUI_GRID_H + GUI_GRID_CENTER_Y;
			w = 8 * GUI_GRID_W;
			h = 5 * GUI_GRID_H;
			autoplay = 1;
			loops = 1;
		};
		class _ST_FRAME: _ST_LEFT
		{
			idc = 64;
			style = 64;
			text = "ST_FRAME";
			x = 12 * GUI_GRID_W + GUI_GRID_CENTER_X;
			y = 1 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _ST_BACKGROUND: _ST_FRAME
		{
			idc = 80;
			style = 80;
			text = "ST_BACKGROUND";
			y = 4 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _ST_GROUP_BOX: _ST_FRAME
		{
			idc = 96;
			style = 96;
			text = "ST_GROUP_BOX";
			y = 7 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _ST_GROUP_BOX2: _ST_FRAME
		{
			idc = 112;
			style = 112;
			text = "ST_GROUP_BOX2";
			y = 10 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _ST_HUD_BACKGROUND: _ST_FRAME
		{
			idc = 128;
			style = 128;
			text = "ST_HUD_BACKGROUND";
			y = 13 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _ST_TILE_PICTURE: _ST_FRAME
		{
			idc = 144;
			style = 144;
			text = "\A3\Ui_f\data\GUI\Cfg\Ranks\general_gs.paa";
			y = 16 * GUI_GRID_H + GUI_GRID_CENTER_Y;
			tileW = 10;
			tileH = 2;
		};
		class _ST_WITH_RECT: _ST_FRAME
		{
			idc = 160;
			style = 160;
			text = "ST_WITH_RECT";
			y = 19 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _ST_LINE: _ST_FRAME
		{
			idc = 176;
			style = 176;
			text = "ST_LINE";
			y = 22 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _ST_UPPERCASE
		{
			idc = 192;
			style = 192;
			type = 16;
			text = "st_UPPERCASE";
			x = 23 * GUI_GRID_W + GUI_GRID_CENTER_X;
			y = 1 * GUI_GRID_H + GUI_GRID_CENTER_Y;
			w = 10 * GUI_GRID_W;
			h = 2 * GUI_GRID_H;
			colorBackground[] = {0.2,0.2,0.2,1};
			colorBackground2[] = {0,0,0,1};
			colorBackgroundFocused[] = {1,0.5,0,1};
			colorBackgroundActive[] = {0,0,0,1};
			sizeEx = GUI_GRID_H;
			font = "RobotoCondensed";
			shadow = 1;
			color[] = {1,1,1,1};
			color2[] = {1,1,1,1};
			colorFocused[] = {1,1,1,1};
			colorDisabled[] = {1,1,1,0.5};
			animTextureNormal = "#(argb,8,8,3)color(1,1,1,1)";
			animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
			animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
			animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
			animTextureDisabled = "#(argb,8,8,3)color(1,1,1,1)";
			animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
			tooltip = "CT_SHORTCUTBUTTON";
			tooltipColorShade[] = {0,0,0,1};
			tooltipColorText[] = {1,1,1,1};
			tooltipColorBox[] = {1,1,1,1};
			period = 1;
			periodFocus = 1;
			periodOver = 0.5;
			shortcuts[] = {"0x00050000 + 0",28,57,156};
			textureNoShortcut = "#(argb,8,8,3)color(1,1,1,0)";
			soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1};
			soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1};
			soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1};
			soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1};
			class Attributes
			{
				align = "left";
				color = "#ffffff";
				font = "RobotoCondensed";
				shadow = 0;
			};
			class HitZone
			{
				left = 0;
				top = 0;
				right = 0;
				bottom = 0;
			};
			class TextPos
			{
				left = 0;
				top = 0;
				right = 0;
				bottom = 0;
			};
			class ShortcutPos
			{
				left = 0;
				top = 0;
				w = GUI_GRID_W;
				h = GUI_GRID_H;
			};
		};
		class _ST_LOWERCASE: _ST_UPPERCASE
		{
			idc = 208;
			style = 208;
			text = "st_LOWERCASE";
			y = 4 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _ST_SHADOW: _ST_LEFT
		{
			idc = 256;
			style = 256;
			text = "ST_SHADOW";
			x = 23 * GUI_GRID_W + GUI_GRID_CENTER_X;
			y = 7 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _ST_NO_RECT: _ST_SHADOW
		{
			idc = 512;
			style = 512;
			text = "ST_NO_RECT";
			y = 10 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _ST_KEEP_ASPECT_RATIO: _ST_SHADOW
		{
			idc = 2048;
			style = "0x30 + 0x800";
			text = "\A3\Ui_f\data\GUI\Cfg\Ranks\general_gs.paa";
			y = 13 * GUI_GRID_H + GUI_GRID_CENTER_Y;
		};
		class _SL_HORZ
		{
			type = 3;
			idc = "3 + 0x400";
			style = 1024;
			x = 23 * GUI_GRID_W + GUI_GRID_CENTER_X;
			y = 16 * GUI_GRID_H + GUI_GRID_CENTER_Y;
			w = 10 * GUI_GRID_W;
			h = 1 * GUI_GRID_H;
			color[] = {0,0,0,1};
			colorDisabled[] = {1,1,1,0.5};
			colorActive[] = {1,0.5,0,1};
			tooltip = "SL_HORZ";
		};
		class _SL_VERT: _SL_HORZ
		{
			idc = "3 + 0";
			style = 0;
			x = 35 * GUI_GRID_W + GUI_GRID_CENTER_X;
			y = 14 * GUI_GRID_H + GUI_GRID_CENTER_Y;
			w = 1 * GUI_GRID_W;
			h = 10 * GUI_GRID_H;
			tooltip = "SL_VERT";
		};
		class _ST_HORIZONTAL
		{
			type = 8;
			idc = "8 + 0";
			style = 0;
			x = 23 * GUI_GRID_W + GUI_GRID_CENTER_X;
			y = 18 * GUI_GRID_H + GUI_GRID_CENTER_Y;
			w = 10 * GUI_GRID_W;
			h = 1 * GUI_GRID_H;
			texture = "#(argb,8,8,3)color(1,1,1,1)";
			colorBar[] = {0,0,0,1};
			colorFrame[] = {0,0,0,1};
			tooltip = "ST_HORIZONTAL";
		};
		class _ST_VERTICAL: _ST_HORIZONTAL
		{
			idc = "8 + 0x01";
			style = 1;
			x = 37 * GUI_GRID_W + GUI_GRID_CENTER_X;
			y = 14 * GUI_GRID_H + GUI_GRID_CENTER_Y;
			w = 1 * GUI_GRID_W;
			h = 10 * GUI_GRID_H;
			tooltip = "ST_VERTICAL";
		};
	};
};