Hornet58 0 Posted March 31, 2020 Hello to all. Tell me through what to make a button with an icon? Like this https://prnt.sc/rq2wk0 Share this post Link to post Share on other sites
Larrow 2822 Posted April 4, 2020 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
7erra 629 Posted April 4, 2020 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; }; }; 1 Share this post Link to post Share on other sites
Larrow 2822 Posted April 5, 2020 8 hours ago, Larrow said: you can make anything 1 Share this post Link to post Share on other sites