Page MenuHomeFeedback Tracker

itemSpacingH property of CT_MENU_STRIP causes text to not be aligned with image/icon
New, NormalPublic

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Visual-GUI
Steps To Reproduce
  1. Define this class in the description.ext
class RscMenuStrip
{
	idd = -1;
	movingEnable = true;
	enableSimulation = true;
	onLoad = "";
	onUnload = "";
	class Controls
	{
		class MenuStrip: ctrlMenuStrip
		{
			idc = 1000;
			x = safeZoneX;
			y = (safeZoneY + (safezoneH * 0.132));
			w =  safezoneW;
			h = (safezoneH  * 0.03);
                        itemSpacingH = 0.05; //Default 0.01
			class Items
			{
				items[] =
				{
					"Menu1"
				};
				class Menu1
				{
					text = "Menu 2";
					items[] = //Second Level Entries
					{
						"SayHello",
						"PlayMusic"
					};
				};
				class WebLink
				{
					text = "Go to Arma 3 Webpage"; //Display name of menu entry
					picture = "\A3\Ui_f\data\Logos\arma3_white_ca.paa"; //Picture shown in front of text
					weblink = "https://arma3.com/"; //Opens a web page in default webbrowser
					opensNewWindow = 1; //Adds ... after text, indicating that this menu entry will open a new display
				};
				class SayHello
				{
					text = "Say Hello";
					action = "systemChat 'Hello World!'"; //Code executed when entry is clicked
				};
				class PlayMusic
				{
					text = "Play Music";
					picture = "\a3\Modules_F_Curator\Data\portraitMusic_ca.paa";
					action = "playMusic 'Track15_MainTheme'";
				};
				class Default //Default entries, otherwise error is shown upon creation of the display (Needs further investigation)
				{
					text = "Default";
				};
			};
		};
	};
};
  1. Execute in debug console in Eden Editor

findDisplay 313 createDisplay "RscMenuStrip";

Additional Information

itemSpacingH = 0.05;

itemSpacingH = 0.01;

Event Timeline

R3vo created this task.Jun 17 2021, 10:44 AM
R3vo edited Steps To Reproduce. (Show Details)
R3vo renamed this task from itemSpacingH property of CT_MENU_STRIP causes images to not be aligned with text to itemSpacingH property of CT_MENU_STRIP causes text to not be aligned with image/icon.Jun 18 2021, 12:52 AM