Jump to content

Recommended Posts

By using controlsGroup's and the basic UI types available, you can make anything, as complicated as you like.

TEST_MISSION

Share this post


Link to post
Share on other sites

No need for controlsgroups or more than one control. RscButtonMenu supports images by default:
 

class RscButtonMenuPicture: RscButtonMenu
{
	idc = -1;
	text = "Text";
	x = 8.5 * GUI_GRID_CENTER_W + GUI_GRID_CENTER_X;
	y = 22 * GUI_GRID_CENTER_H + GUI_GRID_CENTER_Y;
	w = 10.5 * GUI_GRID_CENTER_W;
	h = 2 * GUI_GRID_CENTER_H;
	textureNoShortcut = "path\to\image.paa"; // This is the image to be displayed
	// Position of the text:
	class TextPos
	{
		// Positions in ui coordinates are relative to the button
		left = 2 * GUI_GRID_W;
		top = 0.5 * GUI_GRID_H;
		right = 0.005;
		bottom = 0;
	};
	// Position of the image:
	class ShortcutPos
	{
		left = 0;
		top = 0;
		w = 2 * GUI_GRID_W;
		h = 2 * GUI_GRID_H;
	};
};

 

  • Like 1

Share this post


Link to post
Share on other sites
8 hours ago, Larrow said:

you can make anything

 

  • Haha 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×