Diabolical1001 10 Posted November 24, 2013 Hello again all was just wondering how one would go about changing a gui background from a color to a texture, and if so are there any limitations on file sizes and such? idc = -1; x = -28.5 * GUI_GRID_W + GUI_GRID_X; y = -10.5 * GUI_GRID_H + GUI_GRID_Y; w = 28.5 * GUI_GRID_W; h = 45.5 * GUI_GRID_H; colorBackground[] = ?????? i tryed just directing the color background to the paa but when i load up the mission the background is white ---------- Post added at 03:15 ---------- Previous post was at 01:35 ---------- Just got it to work fine with a picture frame, just not the background? Share this post Link to post Share on other sites
wok 1 Posted November 24, 2013 I think textures/images only go in the text = "" field, but I may be wrong. You could use a RscPicture, set text = "path/to/file.paa" and then put it in controlsBackground[] = { };, that should work. Share this post Link to post Share on other sites
Diabolical1001 10 Posted November 25, 2013 what i did was replace the background with a picture class, then text= etcetc. seems to be working Share this post Link to post Share on other sites
tomturner 10 Posted March 15, 2014 (edited) My background picture shows but it is transparent, what control or setting is causing this? The pic is a .paa 1024x1024 and am using RscPicture as above. Thanks class bomsf_skin: RscPicture { idc = -1; //2200; text = "images\bomsf_tablet.paa"; //--- ToDo: Localize; x = 0.176628 * safezoneW + safezoneX; y = 0.105957 * safezoneH + safezoneY; w = 0.8 * safezoneW; h = 0.8 * safezoneH; }; Edit: Solved, reloaded it in the GUI Editor using missionConfig >> "my_dialog" and moved the order of the layers. Apparently, moving the background pic to the top results in it exporting it in the controls= to the bottom, which is where the ingame dialog wants it. I had been moving the exported back to the top which resulted in it appearing as transparent. Edited March 15, 2014 by tomturner Share this post Link to post Share on other sites
Meatball0311 79 Posted November 10, 2015 I am having issues with the same thing... my picture is coming out transparent. I do not understand what you mean by moving the layers to the top. How come this is only being transparent when i use a paa.. if i do a jpeg it looks fine, just without a transparent background. FIXED: Worked on it all day and tried everything so I don't know if it was a combination of things or as simply as making my texture 512x512 Share this post Link to post Share on other sites
bull_a 44 Posted November 10, 2015 Pictures need to have dimensions to the power of 2 16x16 32x32 64x64 1024x1024 4096x4096.... and so on Also, when creating GUI's for mods you can reference external classes such as RscPicture and RscText. When creating GUI's in missions you need to define you own set of classes to reference. Pictures can either be in *.jpg or *.paa. I haven't tested with others but im sure that they will not work. In regards to color and picture, the picture is set using the "text" field whilst the picture color is set using the "colorText[]" field (color is defined in RGBA format). "colorBackground[]" has no effect. Check out Karel Moricky's UI Template Mission on Steam. Hope this helps, Bull 1 Share this post Link to post Share on other sites