super-truite 54 Posted October 9, 2013 (edited) I want to make an alert message that includes a picture. I am aware of the possibility to use images with a hint and parsetext, but I am not really satisfied with the result. I would like to put my picture where I want on the screen. With a dialog, it is possible like this: class RscPicture { access = 0; type = CT_STATIC; idc = -1; style = 48;//ST_PICTURE colorBackground[] = {0,0,0,0}; colorText[] = {1,1,1,1}; font = "TahomaB"; sizeEx = 0; lineSpacing = 0; text = ""; fixedWidth = 0; shadow = 0; }; class Bacteriologicdialog { idd = -1; movingenable = false; enableSimulation = true; controlsBackground[] = { }; controls[] ={Picture}; class Picture: RscPicture { text = "Biohazard.paa"; x = -27 * GUI_GRID_W + GUI_GRID_X; y = -9 * GUI_GRID_H + GUI_GRID_Y; w = 4.5 * GUI_GRID_W; h = 3.5 * GUI_GRID_H; colorText[] = {0.4,0.6745,0.2784,1.0}; }; }; But it seems that I always have, well, to hold a dialogue with the dialog :) and it wants some feedback from the player (at least hitting escape to quit for instance), which I don't want: I just want the picture to pop up and then disappear. So I would like: either to make the dialog disappear like a hint, without asking the player to hit escape, or make some tweaks to the hint (move the position and remove the backgroung for instance). Is one of the two possible? Edited October 9, 2013 by super-truite Share this post Link to post Share on other sites
das attorney 858 Posted October 9, 2013 You can add the GUI as a display rather than as a dialog. Displays are non-interactable so will not force the player to interact and they can carry on playing the game. Use cutRsc to display the resource (defined in the description.ext) http://community.bistudio.com/wiki/cutRsc Eg: 0 cutRsc ["super_truite_display_one","PLAIN",0,false]; sleep 5; 0 cutRsc ["default","PLAIN",0,false]; Share this post Link to post Share on other sites
super-truite 54 Posted October 9, 2013 Excellent, it works, thank you. In fact there was already a thread about the very same problem, but it was difficult to find without knowing about resources. There is also some useful examples of resource definitions for those having the same issue (not the same syntax as dialog controls). Here is the link: http://forums.bistudio.com/showthread.php?148213-User-interface-issues-cutRsc-gives-resource-title-not-found Share this post Link to post Share on other sites