Le deal à ne pas rater :
Bon plan achat en duo : 2ème robot cuiseur Moulinex Companion ...
600 €
Voir le deal

[Finie]Barre Info 4.4

[Finie]Barre Info 4.4 Empty [Finie]Barre Info 4.4

Message  Slift Sam 25 Fév - 20:03

Dans mpmissions\dialog\hud_stats.hpp

Remplacer la totalité du fichier par :

Code:
#define ST_CENTER         0x02
/*
 Author: Daniel Stuart

 File: hud_stats.hpp
*/

class playerHUD {
 idd = -1;
 duration = 10e10;
 movingEnable = 0;
 fadein = 0;
 fadeout = 0;
 name = "playerHUD";
 onLoad = "uiNamespace setVariable ['playerHUD',_this select 0]";
 objects[] = {};
 controls[] = {
 Life_RscBackground_HUD,
 Life_RscProgress_HUDFood,
 Life_RscProgress_HUDHealth,
 Life_RscProgress_HUDWater,
 Life_RscProgress_HUDInfo,
 Life_RscText_HUDFood,
 Life_RscText_HUDHealth,
 Life_RscText_HUDWater,
 Life_RscText_HUDInfo
 };

 /* Background */  
 class Life_RscBackground_HUD : Life_RscBackground {  
 colorBackground[] = {0,0,0,0.7};  
 x = 0.359 * safezoneW + safezoneX;  
 y = 0.93 * safezoneH + safezoneY;  
 w = 0.28 * safezoneW;  
 h = 0.0666666 * safezoneH;
 };

 /* Progress Bars */  
 class LIFE_RscProgress_HUDCommon : Life_RscProgress {  
 colorFrame[] = {0, 0, 0, 0.8};  
 y = 0.940 * safezoneH + safezoneY;  
 w = 0.080 * safezoneW;  
 h = 0.0222222 * safezoneH;  
 };  

 /* Progress Bars 2 */  
 class LIFE_RscProgress_HUD_2Common : Life_RscProgress {  
 colorFrame[] = {0, 0, 0, 0.8};  
 y = 0.965 * safezoneH + safezoneY;  
 w = 0.27 * safezoneW;  
 h = 0.0222222 * safezoneH;  
 };  

 class Life_RscProgress_HUDFood : LIFE_RscProgress_HUDCommon {  
 idc = 2200;  
 colorBar[] = {0,0.24,0.02,1};  
 x = 0.365 * safezoneW + safezoneX;  
 };  

 class Life_RscProgress_HUDHealth : LIFE_RscProgress_HUDCommon {  
 idc = 2201;  
 colorBar[] = {0.49,0,0,1};  
 x = 0.459 * safezoneW + safezoneX;  
 };  

 class Life_RscProgress_HUDWater : LIFE_RscProgress_HUDCommon {  
 idc = 2202;  
 colorBar[] = {0,0.09,0.64,1};  
 x = 0.5545 * safezoneW + safezoneX;  
 };  
 
 class Life_RscProgress_HUDInfo : LIFE_RscProgress_HUD_2Common {  
 idc = 2204;  
 colorBar[] = {0,0,0,0.8};  
 x = 0.365 * safezoneW + safezoneX;  
 };
 
 /* Texts */  
 class Life_RscText_HUDCommon : Life_RscText {  
 SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.8)";  
 style = ST_CENTER;  
 y = 0.940 * safezoneH + safezoneY;  
 w = 0.0462964 * safezoneW;  
 h = 0.0222222 * safezoneH;  
 };

 /* Texts 2 */  
 class Life_RscText_HUD_2Common : Life_RscText {  
 SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.8)";  
 style = ST_CENTER;  
 y = 0.965 * safezoneH + safezoneY;  
 w = 0.26 * safezoneW;  
 h = 0.0222222 * safezoneH;  
 };  

 class Life_RscText_HUDFood : Life_RscText_HUDCommon {  
 idc = 1200;  
 text = "";  
 x = 0.365 * safezoneW + safezoneX;  
 };  

 class Life_RscText_HUDHealth : Life_RscText_HUDCommon {  
 idc = 1201;  
 text = "";  
 x = 0.459 * safezoneW + safezoneX;  
 };  

 class Life_RscText_HUDWater : Life_RscText_HUDCommon {  
 idc = 1202;  
 text = "";  
 x = 0.5545 * safezoneW + safezoneX;  
 };  
  
 class Life_RscText_HUDInfo : Life_RscText_HUD_2Common {  
 idc = 1204;  
 text = "";  
 x = 0.368 * safezoneW + safezoneX;  
 };
};

(Code Maison)

Control quote

!Fait!


Dernière édition par Slift le Dim 26 Fév - 13:27, édité 2 fois
Slift
Slift

Admin/Fondateur

Messages : 143
Date d'inscription : 28/01/2017
Age : 38
Localisation : Bordeaux

Fiche RP
Prénom/Nom : *****
Profession:
Grade: *****

https://arma3life-tanoa.forumactif.com

Revenir en haut Aller en bas

[Finie]Barre Info 4.4 Empty Re: [Finie]Barre Info 4.4

Message  Slift Sam 25 Fév - 21:26

Dans mpmissions\core\functions\fn_hudUpdate.sqf

Trouver:

Code:
disableSerialization;

if(isNull LIFEdisplay) then {[] call life_fnc_hudSetup;};
LIFEctrl(2200) progressSetPosition (1 / (100 / life_hunger));
LIFEctrl(2201) progressSetPosition (1 - (damage player));
LIFEctrl(2202) progressSetPosition (1 / (100 / life_thirst));

Remplacer par:

Code:
private["_counter"];
_counter = 180;
_counter = _counter - 1;

disableSerialization;

if(isNull LIFEdisplay) then {[] call life_fnc_hudSetup;};
LIFEctrl(2200) progressSetPosition (1 / (100 / life_hunger));
LIFEctrl(2201) progressSetPosition (1 - (damage player));
LIFEctrl(2202) progressSetPosition (1 / (100 / life_thirst));
LIFEctrl(2204) progressSetPosition (100 / 100);

LIFEctrl(1200) ctrlsetText format[localize “STR_HUD_Food”, life_hunger];
LIFEctrl(1201) ctrlsetText format[localize “STR_HUD_Health”, round((1 - (damage player)) * 100)];
LIFEctrl(1202) ctrlsetText format[localize “STR_HUD_Water”, life_thirst];
LIFEctrl(1204) ctrlsetText format[localize "STR_HUD_Info", round diag_fps, west countSide playableUnits, independent countSide playableUnits, civilian countSide playableUnits, [BANK] call life_fnc_numberText, [CASH] call life_fnc_numberText, _counter];


Control quote

!Fait!


Dernière édition par Slift le Dim 26 Fév - 13:26, édité 3 fois
Slift
Slift

Admin/Fondateur

Messages : 143
Date d'inscription : 28/01/2017
Age : 38
Localisation : Bordeaux

Fiche RP
Prénom/Nom : *****
Profession:
Grade: *****

https://arma3life-tanoa.forumactif.com

Revenir en haut Aller en bas

[Finie]Barre Info 4.4 Empty Re: [Finie]Barre Info 4.4

Message  Slift Sam 25 Fév - 21:31

Dans mpmissions\core\functions\fn_hudSetup.sqf

Trouver:

Code:
disableSerialization;

2 cutRsc ["playerHUD","PLAIN"];
[] call life_fnc_hudUpdate;

[] spawn
{
 private["_dam"];
 while {true} do
 {
 _dam = damage player;
 waitUntil {(damage player) != _dam};
 [] call life_fnc_hudUpdate;
 };
};

Remplacer par:

Code:
disableSerialization;

2 cutRsc [“playerHUD”,“PLAIN”];
[] call life_fnc_hudUpdate;

[] spawn
{
private["_dam"];
while {true} do
{
_dam = damage player;
waitUntil {(damage player) != _dam};
[] call life_fnc_hudUpdate;
};
};

[] spawn
{
private["_counter"];
sleep 1;
_counter = 180;
_timeSinceLastUpdate = 0;
while {true} do
{
sleep 1;
_counter = _counter - 1;
[] call life_fnc_hudUpdate;
};
};


Control quote

!Fait!


Dernière édition par Slift le Dim 26 Fév - 13:26, édité 1 fois
Slift
Slift

Admin/Fondateur

Messages : 143
Date d'inscription : 28/01/2017
Age : 38
Localisation : Bordeaux

Fiche RP
Prénom/Nom : *****
Profession:
Grade: *****

https://arma3life-tanoa.forumactif.com

Revenir en haut Aller en bas

[Finie]Barre Info 4.4 Empty Re: [Finie]Barre Info 4.4

Message  Slift Sam 25 Fév - 21:51

Dans mpmissions/stringtable.xml


Trouver:

Code:
 <Package name="HUD">  
    <Key ID="STR_HUD_Food">  
      <Original>Food</Original>  
      <Portuguese>Comida</Portuguese>  
    </Key>  
    <Key ID="STR_HUD_Health">  
      <Original>Health</Original>  
      <Portuguese>Vida</Portuguese>  
    </Key>  
    <Key ID="STR_HUD_Water">  
      <Original>Water</Original>  
      <Portuguese>Água</Portuguese>  
    </Key>  
  </Package>


Remplacer par:

Code:
 <Package name="HUD">  
    <Key ID="STR_HUD_Food">  
      <Original>Food [%1]</Original>  
  <French>Faim [%1]</French>  
      <Portuguese>Comida [%1]</Portuguese>  
    </Key>  
    <Key ID="STR_HUD_Health">  
      <Original>Health [%1]</Original>  
  <French>Santé [%1]</French>  
      <Portuguese>Vida [%1]</Portuguese>  
    </Key>  
    <Key ID="STR_HUD_Water">  
      <Original>Water [%1]</Original>  
  <French>Soif [%1]</French>  
      <Portuguese>Água [%1]</Portuguese>  
    </Key>  
    <Key ID="STR_HUD_Toilet">  
      <Original>Toilette [%1]</Original>  
    </Key>  
 <Key ID="STR_HUD_Info">  
      <Original> FPS:%1 | Police:%2 | Médic:%3 | Civil:%4 | Banque:%5 | Cash:%6 </Original> 
    </Key>  
  </Package>


Control quote

!Fait!
Slift
Slift

Admin/Fondateur

Messages : 143
Date d'inscription : 28/01/2017
Age : 38
Localisation : Bordeaux

Fiche RP
Prénom/Nom : *****
Profession:
Grade: *****

https://arma3life-tanoa.forumactif.com

Revenir en haut Aller en bas

[Finie]Barre Info 4.4 Empty Re: [Finie]Barre Info 4.4

Message  Contenu sponsorisé


Contenu sponsorisé



Revenir en haut Aller en bas

- Sujets similaires