Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
samatra

Dialogs: Is it possible to make specific controls\elements hidden from beginning?

Recommended Posts

TSIA: Is it possible to make specific controls\elements hidden from beginning?

Sure i can hide them with ctrlShow but when dialog opens you still see these buttons for fraction of a second, I would love to have them hidden by default. Thank you.

Share this post


Link to post
Share on other sites

Hide them from within the onLoad event:

class MyDialog
{
  onLoad = "(_this select 0) call compile preprocessFileLineNumbers ""hideControls.sqf""";
  //...
};

{
  (_this displayCtrl _x) ctrlShow false;
} forEach [11, 55, 741];

Share this post


Link to post
Share on other sites
Hide them from within the onLoad event:

class MyDialog
{
  onLoad = "(_this select 0) call compile preprocessFileLineNumbers ""hideControls.sqf""";
  //...
};

{
  (_this displayCtrl _x) ctrlShow false;
} forEach [11, 55, 741];

Good idea, thanks a lot!

Share this post


Link to post
Share on other sites

So where do you put this?..........

{
  (_this displayCtrl _x) ctrlShow false;
} forEach [11, 55, 741];  

Share this post


Link to post
Share on other sites

in a sqf-file named "hideControls.sqf" which is in your missions folder (as per Deadfast's example).

Share this post


Link to post
Share on other sites
Sign in to follow this  

×