coolfact 10 Posted April 1, 2017 I'm trying to create a display (dialog did not work due control was blocked) where I can move around (using WASD) while having a mouse cursor on screen and using it to move around together with camera control. However something is missing with the displays parent, because when creating the display with "CreateDisplay" the GUI does not show. Furthermore if someone have an Idea how to ad mouse I would also like to know :D description.ext: #include "GUI\define.hpp" #include "GUI\dialogs.hpp" init.sqf: player addaction ["Open GUI","GUI\fn_open_dialog.sqf"]; fn_open_dialog.sqf: //Create Camera cam_Center_POS = (getpos player); cam_Center = "heliHempty" createvehicle cam_Center_POS; cam_View_POS = [(cam_Center_POS select 0),(cam_Center_POS select 1),10]; cam = "camcurator" CamCreate cam_View_POS; // camcurator Camera cam CameraEffect ["INTERNAL","Back"]; cam CamSetTarget cam_Center_POS; cam CamCommit 0.1; //Create Display disableSerialization; //createDialog "COOL_MainPoint_Display"; //Dialog, no control! [] spawn {findDisplay 9999 createDisplay "RscTitles"}; //cutRsc ["COOL_MainPoint_Display", "PLAIN",20]; // Creates the display but no mouse //waituntil {!isnull (findDisplay 9999);}; hint "Display done"; dialogs.hpp: class RscTitles { class COOL_MainPoint_Display { idd = 9999; duration = 10; movingenabled = false; class controls { class COOL_rscButton: RscButton { idc = 1600; text = "Points"; x = 0.005 * safezoneW + safezoneX; y = 0.016 * safezoneH + safezoneY; w = 0.0309375 * safezoneW; h = 0.033 * safezoneH; action = closeDisplay 1; }; }; }; }; Share this post Link to post Share on other sites
soolie 189 Posted April 1, 2017 _display = findDisplay 46 createDisplay "COOL_MainPoint_Display"; You're creating your display using the main display as parent. 46 is the idd for the main display. Share this post Link to post Share on other sites
coolfact 10 Posted April 1, 2017 2 hours ago, soolie said: _display = findDisplay 46 createDisplay "COOL_MainPoint_Display"; You're creating your display using the main display as parent. 46 is the idd for the main display. Yeah I tried that but the GUI does not spawn Share this post Link to post Share on other sites
soolie 189 Posted April 2, 2017 Ok, I took the liberty of rewriting it for you. http://bit.ly/CoolfactDisplay Feel free to check out my GUI tutorial - 1 Share this post Link to post Share on other sites
coolfact 10 Posted April 3, 2017 Thanks soolie helped a lot. Lets say Instead of closing the the GUI I want to create more buttons while still keeping the original point button, how would you do that? When I create the new buttons with "createDisplay" with the parent 46 the new display erases the old (which does make sense I guess) Share this post Link to post Share on other sites