Jump to content
Sign in to follow this  
gersen

createDisplay

Recommended Posts

Someone can post some working example on the creation of Displays.

I can't get it work;

Share this post


Link to post
Share on other sites

what i need is how to define the class called

Share this post


Link to post
Share on other sites

You can only use one from config.cpp command doesnt work with descriotion.ext if this is what you are asking.

Share this post


Link to post
Share on other sites
You can only use one from config.cpp command doesnt work with descriotion.ext if this is what you are asking.

so I need to create an addon with the class in the config?

Share this post


Link to post
Share on other sites
so I need to create an addon with the class in the config?

You could also use createDialog instead.

Share this post


Link to post
Share on other sites
pretty much or use existing one

I can't find anyone empty

You could also use createDialog instead.

I want to be able to move while opened, interacting with the object you are looking

Share this post


Link to post
Share on other sites
I want to be able to move while opened, interacting with the object you are looking

Have you tried loading your display as a resource and then using cutRsc?

Share this post


Link to post
Share on other sites

Moving with it open is possible. I made a basic progress bar below that is a display, and will appear in the bottom right corner:

init.sqf

cutRsc ["CLOAK_BAR","PLAIN"];

description.ext

#define CT_PROGRESS         8
class RscTitles 
{ 
   class RscProgress 
   { 
       type = 8; 
       style = 0; 
       shadow = 2; 
       colorFrame[] = {0,0,0,1}; 
       colorBar[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.69])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.75])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.5])","(profilenamespace getvariable ['GUI_BCG_RGB_A',0.8])"};  
       texture = "\A3\ui_f\data\GUI\RscCommon\RscProgress\progressbar_ca.paa";  
       w = 0.25; 
       h = 0.03; 
   };     
       class CLOAK_BAR 
       { 
           idd = 10000; 
           onload ="((_this select 0) displayCtrl -1) progressSetPosition 1;uiNamespace setVariable [""TAG_CLOAKBAR"", _this select 0];"; 
           duration = 10000000; 
           class Controls 
           { 
               class Progress: RscProgress  
                   { 
                       idc = -1; 
                       x = 0.849 * safezoneW + safezoneX; 
                       y = 0.9350 * safezoneH + safezoneY; 
                   }; 
           }; 
       }; 
 };

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  

×