gersen 10 Posted May 12, 2015 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
killzone_kid 1331 Posted May 12, 2015 I have corrected example, for some reason the old stopped working https://community.bistudio.com/wiki/createDisplay Share this post Link to post Share on other sites
gersen 10 Posted May 12, 2015 what i need is how to define the class called Share this post Link to post Share on other sites
killzone_kid 1331 Posted May 12, 2015 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
gersen 10 Posted May 12, 2015 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
killzone_kid 1331 Posted May 12, 2015 pretty much or use existing one Share this post Link to post Share on other sites
st_dux 26 Posted May 12, 2015 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
gersen 10 Posted May 13, 2015 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
killzone_kid 1331 Posted May 13, 2015 I can't find anyone empty RscCredits like on biki is ok Share this post Link to post Share on other sites
st_dux 26 Posted May 13, 2015 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
austin_medic 109 Posted May 13, 2015 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