alleycat 28 Posted February 15, 2015 class cat_template { idd = 7000; duration = 1e+006; movingenable = true; onLoad = "uiNamespace setVariable ['cat_template_display', _this select 0];"; class Controls { //////////////////////////////////////////////////////// // GUI EDITOR OUTPUT START (by cat, v1.063, #Zodaku) //////////////////////////////////////////////////////// class cat_ps_frame: RscFrame { idc = 1800; text = "cat_ps_frame"; //--- ToDo: Localize; x = 1 * GUI_GRID_W + GUI_GRID_X; y = 1 * GUI_GRID_H + GUI_GRID_Y; w = 38 * GUI_GRID_W; h = 23 * GUI_GRID_H; }; class test_pic: RscPicture { idc = 1200; text = "#(argb,8,8,3)color(0,1,1,1)"; x = 2 * GUI_GRID_W + GUI_GRID_X; y = 2 * GUI_GRID_H + GUI_GRID_Y; w = 14 * GUI_GRID_W; h = 12 * GUI_GRID_H; }; //////////////////////////////////////////////////////// // GUI EDITOR OUTPUT END //////////////////////////////////////////////////////// }; }; I keep running into this issue. When creating something in the GUI editor the default setting is GUI_GRID. When calling the dialog it is off screen because nothing shows. When I switch over to Safezone during creation it does show correctly. However when re-importing dialogs into the GUI editor it defaults to GUI_GRID which means I have to change every rsc item to safezone if I want to export after adjusting it. Any tips on fixing this? What is the quickest workflow to quickly load existing dialogs back into the GUI editor? Share this post Link to post Share on other sites
fight9 14 Posted February 15, 2015 You have to define the GUI_ variables at the top. I'm not at my computer to give the exact value but start with 0 and move from there Share this post Link to post Share on other sites
dreadedentity 278 Posted February 15, 2015 However when re-importing dialogs into the GUI editor it defaults to GUI_GRID Is this reproduce-able? I haven't had this problem. Although, I export all of my dialogs in GUI editor format as well as class format, for easy importing and editing. Share this post Link to post Share on other sites
alleycat 28 Posted February 15, 2015 Can you detail how you do it? I dont know what the difference between GUI format or class format means Share this post Link to post Share on other sites
fight9 14 Posted February 16, 2015 Come back later tonight... I'll post the defines I use when I get off work. ---------- Post added at 00:25 ---------- Previous post was at 22:32 ---------- Here is what I have to my GUI_GRID_x defines. Just put them with your other basic definitions. #define GUI_GRID_X (0) #define GUI_GRID_Y (0) #define GUI_GRID_W (0.025) #define GUI_GRID_H (0.04) #define GUI_GRID_WAbs (1) #define GUI_GRID_HAbs (1) Share this post Link to post Share on other sites
alleycat 28 Posted February 16, 2015 Thanks, that is very useful. Is there a difference between using GUI_GRID or safezones? Share this post Link to post Share on other sites