N939 10 Posted March 28, 2010 (edited) Hi I have one question: "is it possible for example to drive a car while a dialog is displayed ?" Cheers max Edited March 28, 2010 by N939 Share this post Link to post Share on other sites
Fusion_Marduc 10 Posted April 22, 2010 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
Bon 12 Posted April 22, 2010 http://forums.bistudio.com/showthread.php?t=80392 Share this post Link to post Share on other sites
Fusion_Marduc 10 Posted April 24, 2010 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
Deadfast 43 Posted April 24, 2010 ((findDisplay IDD_number) displayCtrl IDC_number) ctrlSetText "Text"; Share this post Link to post Share on other sites
Fusion_Marduc 10 Posted April 24, 2010 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
jw custom 56 Posted April 24, 2010 Oops, just noticed you already tried disableSerialization, sorry. Share this post Link to post Share on other sites
Fusion_Marduc 10 Posted June 5, 2010 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