Jump to content

Recommended Posts

Want to display a notification window via titleRsc but can`t change its text.

 

class Notification
{
  idd= 55000;
  duration = 5;
  onLoad= "uiNamespace setVariable ['JF_Notification', _this]";

    controlsBackground[]=
    {
    };

    controls[]=
    {
        RscNotification
    };

    objects[]=
    {
    };

    class RscNotification: RscText
    {
          idc = 1;
          colorBackground[] =	{0,0,0,1};
          colorText[] =	{1,1,1,1};
          font = "PuristaMedium";
          x = 0;
          y = 0;
          h = 1/15 * safezoneH;
          w = 1/8 * safezoneW;
    };

};

 

And my function to create it:

...
titleRsc ["Notification","PLAIN"];

...
private _parent = uiNamespace getVariable "JF_Notification";
private _ctrl = _parent displayCtrl 1;

...
_ctrl ctrlSetText "HI";

 

Any Ideas?

 

Thanks in advance

Jacob

  • Like 1

Share this post


Link to post
Share on other sites

Also the lower idc number ranges are reserved for engine behaviour. Afaik 

0: OK

1: CANCEL

2: CANCEL too?

might be more

 

So to be safe start with your idcs at 100

  • Like 5

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

×