MrCopyright 107 Posted February 14, 2016 Hello. I recently switched from Morten's dialog creator to Arma 3's GUI editor and the text does not display on the buttons when I export the dialog. However, when I'm in the GUI editor itself, the text displays fine. Defines.hpp class RscButton { deletable = 0; fade = 0; access = 0; type = 1; text = ""; colorText[] = { 1, 1, 1, 1 }; colorDisabled[] = { 0.35, 0.35, 0.35, 0.75 }; colorBackground[] = { 0.35, 0.35, 0.35, 0.75 }; colorBackgroundDisabled[] = { 0.35, 0.35, 0.35, 0.75 }; colorBackgroundActive[] = { 0.35, 0.35, 0.35, 0.85 }; colorFocused[] = { 0.35, 0.35, 0.35, 0.85 }; colorShadow[] = { 0, 0, 0, 0 }; colorBorder[] = { 0, 0, 0, 1 }; soundEnter[] = { "\A3\ui_f\data\sound\RscButton\soundEnter", 0.09, 1 }; soundPush[] = { "\A3\ui_f\data\sound\RscButton\soundPush", 0.09, 1 }; soundClick[] = { "\A3\ui_f\data\sound\RscButton\soundClick", 0.09, 1 }; soundEscape[] = { "\A3\ui_f\data\sound\RscButton\soundEscape", 0.09, 1 }; style = 2; x = 0; y = 0; w = 0.095589; h = 0.039216; shadow = 2; font = "RobotoCondensed"; sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)"; offsetX = 0; offsetY = 0; offsetPressedX = 0; offsetPressedY = 0; borderSize = 0; }; TestDialog.hpp class MyTestDialog { idd = -1; movingEnable = 1; objects[] = {}; controlsBackground[] = { }; onLoad="systemChat 'Test Dialog Done'"; controls[] = { RscPicture_1200,RscPicture_1201,RscPicture_1202,RscPicture_1203,RscPicture_1204,RscPicture_1205,RscPicture_1206,RscPicture_1207,RscPicture_1208,RscPicture_1209,RscPicture_1210,RscPicture_1211,RscPicture_1212,RscPicture_1213,RscButton_1600,RscButton_1601,RscButton_1602,RscButton_1603,RscButton_1604 }; class RscPicture_1200: RscPicture { idc = 1200; text = "#(argb,8,8,3)color(1,1,1,1)"; x = 0.314375 * safezoneW + safezoneX; y = 0.225 * safezoneH + safezoneY; w = 0.37125 * safezoneW; h = 0.55 * safezoneH; colorText[] = {1,1,1,0.5}; }; class RscPicture_1201: RscPicture { idc = 1201; text = "#(argb,8,8,3)color(1,1,1,1)"; x = 0.314375 * safezoneW + safezoneX; y = 0.181 * safezoneH + safezoneY; w = 0.37125 * safezoneW; h = 0.033 * safezoneH; colorText[] = {1,1,1,0.5}; }; class RscPicture_1202: RscPicture { idc = 1202; text = "#(argb,8,8,3)color(1,1,1,1)"; x = 0.288594 * safezoneW + safezoneX; y = 0.181 * safezoneH + safezoneY; w = 0.020625 * safezoneW; h = 0.033 * safezoneH; colorText[] = {1,1,1,0.5}; }; class RscPicture_1204: RscPicture { idc = 1204; text = "#(argb,8,8,3)color(1,1,1,1)"; x = 0.175156 * safezoneW + safezoneX; y = 0.225 * safezoneH + safezoneY; w = 0.134062 * safezoneW; h = 0.55 * safezoneH; colorText[] = {1,1,1,0.5}; }; class RscPicture_1203: RscPicture { idc = 1203; text = "#(argb,8,8,3)color(1,1,1,1)"; x = 0.690781 * safezoneW + safezoneX; y = 0.181 * safezoneH + safezoneY; w = 0.020625 * safezoneW; h = 0.033 * safezoneH; colorText[] = {1,1,1,0.5}; }; class RscPicture_1205: RscPicture { idc = 1205; text = "#(argb,8,8,3)color(1,1,1,1)"; x = 0.690781 * safezoneW + safezoneX; y = 0.522 * safezoneH + safezoneY; w = 0.134062 * safezoneW; h = 0.253 * safezoneH; colorText[] = {1,1,1,0.5}; }; class RscPicture_1207: RscPicture { idc = 1207; text = "#(argb,8,8,3)color(1,1,1,1)"; x = 0.690781 * safezoneW + safezoneX; y = 0.225 * safezoneH + safezoneY; w = 0.134062 * safezoneW; h = 0.286 * safezoneH; colorText[] = {1,1,1,0.5}; }; class RscPicture_1206: RscPicture { idc = 1206; text = "#(argb,8,8,3)color(1,1,1,1)"; x = 0.176187 * safezoneW + safezoneX; y = 0.2272 * safezoneH + safezoneY; w = 0.132031 * safezoneW; h = 0.546407 * safezoneH; colorText[] = {0.14,0.14,0.14,0.85}; }; class RscPicture_1208: RscPicture { idc = 1208; text = "#(argb,8,8,3)color(1,1,1,1)"; x = 0.315509 * safezoneW + safezoneX; y = 0.22698 * safezoneH + safezoneY; w = 0.368646 * safezoneW; h = 0.546297 * safezoneH; colorText[] = {0.14,0.14,0.14,0.85}; }; class RscPicture_1209: RscPicture { idc = 1209; text = "#(argb,8,8,3)color(1,1,1,1)"; x = 0.691503 * safezoneW + safezoneX; y = 0.22698 * safezoneH + safezoneY; w = 0.1325 * safezoneW; h = 0.282295 * safezoneH; colorText[] = {0.14,0.14,0.14,0.85}; }; class RscPicture_1210: RscPicture { idc = 1210; text = "#(argb,8,8,3)color(1,1,1,1)"; x = 0.691709 * safezoneW + safezoneX; y = 0.52398 * safezoneH + safezoneY; w = 0.1325 * safezoneW; h = 0.249295 * safezoneH; colorText[] = {0.14,0.14,0.14,0.85}; }; class RscPicture_1212: RscPicture { idc = 1212; text = "#(argb,8,8,3)color(1,1,1,1)"; x = 0.289625 * safezoneW + safezoneX; y = 0.18276 * safezoneH + safezoneY; w = 0.0185937 * safezoneW; h = 0.0290741 * safezoneH; colorText[] = {0.14,0.14,0.14,0.85}; }; class RscPicture_1213: RscPicture { idc = 1213; text = "#(argb,8,8,3)color(1,1,1,1)"; x = 0.315612 * safezoneW + safezoneX; y = 0.18232 * safezoneH + safezoneY; w = 0.368646 * safezoneW; h = 0.0292963 * safezoneH; colorText[] = {0.14,0.14,0.14,0.85}; }; class RscButton_1600: RscButton { idc = 1600; text = "Consumables"; //--- ToDo: Localize; x = 0.1766 * safezoneW + safezoneX; y = 0.22676 * safezoneH + safezoneY; w = 0.131302 * safezoneW; h = 0.0349631 * safezoneH; sizeEx = 0.8 * GUI_GRID_H; }; class RscButton_1601: RscButton { idc = 1601; text = "Tools"; //--- ToDo: Localize; x = 0.176703 * safezoneW + safezoneX; y = 0.26262 * safezoneH + safezoneY; w = 0.131302 * safezoneW; h = 0.0349631 * safezoneH; sizeEx = 0.8 * GUI_GRID_H; }; class RscButton_1602: RscButton { idc = 1602; text = "Miscellaneous"; //--- ToDo: Localize; x = 0.1766 * safezoneW + safezoneX; y = 0.29892 * safezoneH + safezoneY; w = 0.131302 * safezoneW; h = 0.0349631 * safezoneH; sizeEx = 0.8 * GUI_GRID_H; }; class RscPicture_1211: RscPicture { idc = 1211; text = "#(argb,8,8,3)color(1,1,1,1)"; x = 0.691812 * safezoneW + safezoneX; y = 0.18276 * safezoneH + safezoneY; w = 0.0185937 * safezoneW; h = 0.0290741 * safezoneH; colorText[] = {0.14,0.14,0.14,0.85}; }; class RscButton_1603: RscButtonClear { idc = 1603; text = "X"; //--- ToDo: Localize; x = 0.692328 * safezoneW + safezoneX; y = 0.18364 * safezoneH + safezoneY; w = 0.0178125 * safezoneW; h = 0.0290741 * safezoneH; colorBackground[] = {0,0,0,0}; colorActive[] = {0,0,0,0}; tooltip = "Close"; //--- ToDo: Localize; sizeEx = 1.2 * GUI_GRID_H; }; class RscButton_1604: RscButtonClear { idc = 1604; text = "<"; //--- ToDo: Localize; x = 0.290037 * safezoneW + safezoneX; y = 0.18034 * safezoneH + safezoneY; w = 0.0178125 * safezoneW; h = 0.0290741 * safezoneH; colorBackground[] = {0,0,0,0}; colorActive[] = {0,0,0,0}; tooltip = "Back"; //--- ToDo: Localize; sizeEx = 1.75 * GUI_GRID_H; }; }; Share this post Link to post Share on other sites
dreadedentity 278 Posted February 14, 2016 GUI_GRID_H is not defined anywhere. #define GUI_GRID_H and the text should appear Share this post Link to post Share on other sites
MrCopyright 107 Posted February 15, 2016 Thank you very much, that worked. It's weird how Arma's very own GUI editor doesn't define the grid dimensions. Share this post Link to post Share on other sites
dreadedentity 278 Posted February 15, 2016 It's scalability, not everybody has the same size monitor Share this post Link to post Share on other sites