Jump to content
Sign in to follow this  
cfsfirefighter

Dialog Help

Recommended Posts

Hey guys im trying to make a dialog and i want it to behave like the Inventory dialog does like you open your inventory and your still able to run around then after a couple of seconds of running around the dialog closes. can anyone help me with this problem?? because atm with my dialog i get it open but the player is unable to move.

Cheers CfsFireFighter

Share this post


Link to post
Share on other sites

Or anyone know how to get into contact with the devs to see if they have some time to explain how they get the inventory dialog to allow you to continue walking around

Share this post


Link to post
Share on other sites

put this:

enableSimulation = true;

into the dialog's setup in your hpp file. Eg. like this:

class MyDialog
{
       idd = -1;
       movingenable = false;
       enableSimulation = true;
       onLoad = "uiNamespace setVariable ['MyDialogId', _this select 0];";

       class Controls
       {                
                 //.....
   }
}

More about such here: http://community.bistudio.com/wiki/Dialog_Control

Edited by zapat

Share this post


Link to post
Share on other sites

Yup i have tried that and i cannot run around still

class RscDisplayPhone
{
   onLoad = "uiNamespace setVariable ['RscDisplayPhone', _this select 0];";
   idd = 9800;
   enableSimulation = true;
   movingEnable = false;
   class controls
   {
	class snb_background: RscPicture
	{
		idc = -1;
		text = "\AustDialog\Images\iphone.paa";
		x = -0.00531252 * safezoneW + safezoneX;
		y = 0.39 * safezoneH + safezoneY;
		w = 0.345469 * safezoneW;
		h = 0.616 * safezoneH;
	};
/........

Then i call it with createDialog "RscDisplayPhone";

Share this post


Link to post
Share on other sites

You cannot run around, since your dialog ha focus, the dialog gets the key and mouse events.

My bet would be that you'll need to re-handle all moving while in a dialog. If you try it, not all functions are working while BIS gear is opened, only movement.

It may not be true though...

Share this post


Link to post
Share on other sites

cfsfirefighter: have you - by any chance - found a way to do this in the end?

Share this post


Link to post
Share on other sites

Can someone that is good with dialogs rip apart the inventory dialog and find how that is called and how it allows you to run around as it is a dialog not a HUD, ive tried looking but i must be missing something

Cheers

FireFighter

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×