Jump to content
Sign in to follow this  
N939

Dialog (Moving)

Recommended Posts

Hi

I have one question: "is it possible for example to drive a car while a dialog is displayed ?"

Cheers max

Edited by N939

Share this post


Link to post
Share on other sites

Hi,

I'm also looking for an answer to this question.

On biki I read "Dialogs are parent containers for the actual controls it contains. Their definition contains several properties on the controls it contains, how the dialog can be addressed, and whether or not the player is able to continue regular movement while the dialog is shown.".

Well, I want to gain that the player is able to continue moving while the dialog is show but I can't find how to do it.

Does anyone know what property to set.

Regards,

Fusion_Marduc

Share this post


Link to post
Share on other sites

Thanks for this answer.

Works fine so far. The only downside seems to be that control values can't be set like this. I used 'cutRsc' to instantiate my dialog object.

ctrlSetText[<idc>,'Text']; doesn't seem to work.

Is this true or is there another way of achieving this.

Share this post


Link to post
Share on other sites
((findDisplay IDD_number) displayCtrl IDC_number) ctrlSetText "Text";

Share this post


Link to post
Share on other sites

Thx Deadfast,

Big step forward. But keep getting the 'does not support serialization' error.

I use a separate sqf for instantiating the dialog with cutRsc. Tried to set disableSerialization at the beginning but no succes.

I can use the global var set in the dialog def - onLoad = "dlgVar = (_this select 0);";

(dlgVar displayCtrl 701) ctrlSetText "test"; is working too.

How to get rid of the error message?

Share this post


Link to post
Share on other sites

Got it working so I wanted to share that in this thread.

Some code snippets.

In the dialog definition:

class HUD {
   idd = 700;
   movingEnable = false;
   movingEnabled = false;
   duration = 10000;
   onLoad = "uiNamespace setVariable ['dlgHud',_this select 0]";
   controlsBackground[] = {};
   controls[] = {
         "ScoreField",
         "Indicator01",
         "Indicator02",

         etc....

Initiating the dialog and interacting with it:

disableSerialization;

cutRsc ["HUD","plain"];

((uiNamespace getVariable 'dlgHud') displayCtrl 711) ctrlSetBackgroundColor noDammageColor;

((uiNamespace getVariable 'dlgHud') displayCtrl 701) ctrlSetText format["%1",pointsScored];

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  

×