Jump to content

Cap Oral

Member
  • Content Count

    13
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About Cap Oral

  • Rank
    Private First Class

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello everyone I recently made a progress bar for the initiation of a menu but I would like to make sure that the progress bar is displayed only at the initiation and that later this stage of loading happens. My Progress #include "..\..\script_macros.hpp" if (!alive player || dialog) exitWith {}; [] spawn { with uiNamespace do { waitUntil {!isNull findDisplay 46}; disableSerialization; ok = createDialog "Xenoa_Ouverture"; Xenoa_Progression = findDisplay 46 ctrlCreate ["RscProgress",-1]; Xenoa_Progression ctrlSetPosition [safezoneX+0.452*safezoneW,safezoneY+0.725011110*safezoneH,0.10*safezoneW,0.01*safezoneH]; Xenoa_Progression ctrlSetTextColor [1,1,1,1]; Xenoa_Progression progressSetPosition 0.5; Xenoa_Progression ctrlCommit 0; }; disableSerialization; _ctrl = uiNamespace getVariable "Xenoa_Progression"; private _n = 0; while {_n < 1} do { _n = _n + 0.01; _ctrl progressSetPosition _n; sleep 0.001; }; ctrlDelete _ctrl; uiNamespace setVariable ["Xenoa_Progression",nil]; closeDialog 0; createDialog "Xenoa_Accueil"; }; [] call life_fnc_Accueil; I thought to go through a system of "true" "false" finally I know not too much that said you ?
  2. Cap Oral

    ProgressBar Open ?

    Thx it's good for me :)
  3. Cap Oral

    ProgressBar Open ?

    I try and try again but I do not arrive at the result I expect to make sure that _background = _display ctrlCreate ["RscText", -1]; is replaced by a createdialog that I would have created? I try to open one of my mistletoe at the launch of the script and then create the progressbar to finally close the mui gui and reopen a
  4. Cap Oral

    ProgressBar Open ?

    Yes but is it possible without addaction? That all this starts right at the execution of a dialog?
  5. Cap Oral

    ProgressBar Open ?

    You see ? At the opening we launch directly the progressbar which is in the mistletoe of the phone at the end of this progress bar we launch the createdialog of the homepage
  6. Cap Oral

    ProgressBar Open ?

    Very well it works very well but I would like not to go through an addaction but more by an opening. Example Y -> Opening GUI -> Progress BAR -> END ---> Opening GUI 2
  7. Cap Oral

    ProgressBar Open ?

    I see I test and I tell you
  8. Cap Oral

    ProgressBar Open ?

    To make clear I am looking to make a charging bar for opening a phone. Charging will only take a few seconds (2-3 seconds) and then open the home page!
  9. Cap Oral

    ProgressBar Open ?

    Yes I did not modify the post more I had understood this. My worry is that I can not make anything fluid in 0.1 - 0.5 - 1 for example .. disableSerialization; createDialog "Xenoa_Ouverture"; _ui = uiNamespace getVariable "Xenoa_Ouverture"; _progress = _ui displayCtrl 1000; _progress progressSetPosition 0.01; _cP = 0.01; sleep 1; _cP = _cP + 0.5; _progress progressSetPosition _cP;
  10. Cap Oral

    ProgressBar Open ?

    Hmm 16:47:46 Warning Message: Picture (1%)... not found 16:47:46 Suspending not allowed in this context 16:47:46 Error in expression < progressSetPosition 0.01; _cP = 0.01; sleep 5; _cP = _cP + 0.01; _progress pr> 16:47:46 Error position: <sleep 5; _cP = _cP + 0.01; _progress pr>
  11. Cap Oral

    ProgressBar Open ?

    EDIT I use class Xenoa_Ouverture { idd = 1000; name = "Xenoa_Ouverture"; movingenable = false; enablesimulation = true; onLoad= "uiNamespace setVariable ['Xenoa_Ouverture',_this select 0]"; class controlsBackground { }; class controls { class Xenoa_Ouverture1 : RscPicture { idc = 1001; text = "textures\GUI\OVT.paa"; x = 0.291457333333334 * safezoneW + safezoneX; y = 0.129638439581351 * safezoneH + safezoneY; w = 0.424167666666666 * safezoneW; h = 0.802568981921979 * safezoneH; tooltipcolortext[] = {0.250980392156863,0.466666666666667,0.670588235294118,1}; tooltipcolorshade[] = {1,1,1,0}; }; class progressBar : RscProgress { idc = 1000; w = 0.102083333333333 * safezoneW; h = 0.010941960038059 * safezoneH; x = 0.452083333333333 * safezoneW + safezoneX; y = 0.723358705994291 * safezoneH + safezoneY; }; }; }; // SCRIPT disableSerialization; createDialog "Xenoa_Ouverture"; _ui = uiNamespace getVariable "Xenoa_Ouverture"; _progress = _ui displayCtrl 1000; _pgText = _ui displayCtrl 1001; _pgText ctrlSetText format ["%2 (1%1)...","%"]; _progress progressSetPosition 0.01; _cP = 0.01; sleep 5; _cP = _cP + 0.01; _progress progressSetPosition _cP; _pgText ctrlSetText format["(%1%2)...",round(_cP * 100),"%"];
  12. Hello everyone, I am trying to make a progress bar at the opening of a dialog but unfortunately. I searched on https://community.bistudio.com/wiki/DialogControls-ProgressBar but I do not find my happiness someone would guide me ? Cordially, Cap
×