Jump to content
Repentz

Professional Looking HUD

Recommended Posts

I changed that, and added the files as required, and I added the function file and everything, it still is just showing the faded earplugs icon, not the in use icon.

Share this post


Link to post
Share on other sites
On 1/11/2019 at 3:03 PM, dexatrin82 said:

I changed that, and added the files as required, and I added the function file and everything, it still is just showing the faded earplugs icon, not the in use icon.

You can try adding this to your case for earplugs to update the hud after setting that variable: 
 

[] call life_fnc_hudUpdate;

 

Share this post


Link to post
Share on other sites
10 hours ago, dexatrin82 said:

done that. does same thing., what files would you need me to post so you can see whats going on?

Pastebin your hudstats, hudUpdate and keyHandler.

Share this post


Link to post
Share on other sites

 6:34:16 Warning Message: File mpmissions\Altis_Life.Tanoa\dialog\hud_stats.hpp, line 1: '.KlassenspielerHUD': '{' encountered instead of '='

Dieser Fehler kommt bei mir im Log und man kommt dann nicht mehr aufn Server ;)

Verstehe nur Bahnhof

Share this post


Link to post
Share on other sites
9 hours ago, Schmeddi said:

 6:34:16 Warning Message: File mpmissions\Altis_Life.Tanoa\dialog\hud_stats.hpp, line 1: '.KlassenspielerHUD': '{' encountered instead of '='

Dieser Fehler kommt bei mir im Log und man kommt dann nicht mehr aufn Server ;)

Verstehe nur Bahnhof

Pastebin your "hud_stats.hpp".

Share this post


Link to post
Share on other sites

Hi

I'm try add EarPlugs in fn_setupActions.sqf to by available in scrool mause menu instead shift+O but not working.....

any sugestions ?

        //Civilian
        case civilian: {

        life_actions pushBack (player addAction["<t color = '#D660D6'>Ear plugs ON</t>",life_fnc_fadeSound,"",6,false,false,"",' !life_fadeSound && player != player ']);
        life_actions pushBack (player addAction["<t color = '#D660D6'>Ear plugs OFF</t>",life_fnc_fadeSound,"",6,false,false,"",' life_fadeSound && player != player ']);

       };

Share this post


Link to post
Share on other sites

Dieser Fehler kommt bei mir

15:08:56 Warning Message: File mpmissions\Altis_Life.Altis\dialog\hud_stats.hpp, line 1: '.KlassenspielerHUD': '{' encountered instead of '='

Arma LOG:

15:10:52 Error in expression <nt:: Setting up Eventhandlers";
[] call life_fnc_setupEVH;

diag_log "::Life Cli>
15:10:52   Error position: <life_fnc_setupEVH;

diag_log "::Life Cli>
15:10:52   Error Nicht definierte Variable in Ausdruck: life_fnc_setupevh
15:10:52 File mpmissions\__CUR_MP.Altis\core\init.sqf, line 31

 

Kann leider keine dateiehn hochladen..?

Share this post


Link to post
Share on other sites
1 hour ago, Schmeddi said:

Dieser Fehler kommt bei mir

15:08:56 Warning Message: File mpmissions\Altis_Life.Altis\dialog\hud_stats.hpp, line 1: '.KlassenspielerHUD': '{' encountered instead of '='

Arma LOG:

15:10:52 Error in expression <nt:: Setting up Eventhandlers";
[] call life_fnc_setupEVH;

diag_log "::Life Cli>
15:10:52   Error position: <life_fnc_setupEVH;

diag_log "::Life Cli>
15:10:52   Error Nicht definierte Variable in Ausdruck: life_fnc_setupevh
15:10:52 File mpmissions\__CUR_MP.Altis\core\init.sqf, line 31

 

Kann leider keine dateiehn hochladen..?

Pastebin your hud_stats.hpp

Share this post


Link to post
Share on other sites
10 hours ago, Powsa said:

Pastebin deine hud_stats.hpp

// -------------------------------
// von Repentz
// -------------------------------

#define INFINITE 1e + 1000
#define IDC_LIFE_BAR_FOOD 2200
#define IDC_LIFE_BAR_FOOD_RING 3200
#define IDC_LIFE_BAR_WATER 2201
#define IDC_LIFE_BAR_WATER_RING 3201
#define IDC_LIFE_BAR_HEALTH 2202
#define IDC_LIFE_BAR_HEALTH_RING 3202
// # define IDC_LIFE_BAR_POOP 4202
#define IDC_LIFE_BAR_Speaker 3007
#define IDC_LIFE_BAR_SeatBelt 4203


KlassenspielerHUD {
    idd = -1;
    Dauer = UNENDLICH;
    movingEnable = 0;
    Fadein = 0;
    Ausblenden = 0;
    name = "playerHUD";
    onLoad = "uiNamespace setVariable ['playerHUD', _ this select 0]";
    Objekte [] = {};
        Steuerelemente [] = {
        LIFE_BAR_FOOD_RING,
        LIFE_BAR_WATER_RING,
        LIFE_BAR_HEALTH_RING,
        LIFE_BAR_Speaker,
        LIFE_BAR_SeatBelt
    };

        Klasse LIFE_BAR_SeatBelt: Life_RscPicture
        {
            idc = IDC_LIFE_BAR_SeatBelt;
            text = "";
            x = 0,952292 * safezoneW + safezoneX;
            y = 0,574333 * SafezoneH + SafezoneY;
            w = 0,0331042 * SafezoneW;
            h = 0,0589743 * SafezoneH;
        };
        Klasse LIFE_BAR_Speaker: Life_RscPicture
        {
            idc = IDC_LIFE_BAR_Speaker;
            text = "";
            x = 0,952292 * safezoneW + safezoneX;
            y = 0,640333 * SafezoneH + SafezoneY;
            w = 0,0331042 * SafezoneW;
            h = 0,0589743 * SafezoneH;
        };
        Klasse LIFE_BAR_HEALTH_RING: Life_RscPicture
        {
            idc = IDC_LIFE_BAR_HEALTH_RING;
            text = "";
            x = 0,952292 * safezoneW + safezoneX;
            y = 0,706333 * safezoneH + safezoneY;
            w = 0,0331042 * SafezoneW;
            h = 0,0589743 * SafezoneH;
        };
        Klasse LIFE_BAR_FOOD_RING: Life_RscPicture
        {
            idc = IDC_LIFE_BAR_FOOD_RING;
            text = "";
            x = 0,952292 * safezoneW + safezoneX;
            y = 0,772333 * SafezoneH + SafezoneY;
            w = 0,0331042 * SafezoneW;
            h = 0,0589743 * SafezoneH;
        };
        Klasse LIFE_BAR_WATER_RING: Life_RscPicture
        {
            idc = IDC_LIFE_BAR_WATER_RING;
            text = "";
            x = 0,952292 * safezoneW + safezoneX;
            y = 0,838333 * SafezoneH + SafezoneY;
            w = 0,0331042 * SafezoneW;
            h = 0,0589743 * SafezoneH;
        };
};

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×