Jump to content

[HOW TO] Implement Picture on the bottom left of screen


BAROD

Recommended Posts

Picture in the corner [update]

 

BlZ_Re-CcAAGWWf.jpg

 

 

It´s very well to implement a picture in the corner

 

you can also do it we in my example  here

 

First

you put that in a hpp data 

and name it  wm_disp.hpp

class RscTitles {
    class wm_disp {
        idd = -1;
        onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
        fadein = 0;
        fadeout = 0;
        duration = 10e10;
        controlsBackground[] = {};
        objects[] = {};
        class controls {
            class wm_text2 {
                idc = 1;
                x = safeZoneX+0.027;//safeZoneW*0.01;
                y = safeZoneY+safeZoneH-0.16;
                w = 0.151*safeZoneH;
                h = 0.057*safeZoneH;
                shadow = 2;
                class Attributes
                {
                    font = "EtelkaNarrowMediumPro";
                    color = "#24FFFFFF";
                    align = "left";
                    valign = "middle";
                    shadow = 2;
                };
                colorBackground[] = { 1, 0.3, 0, 0 };
                font = "EtelkaNarrowMediumPro";
                size = 0.06*safeZoneH;
                type = 13;
                style = 0;
                text="";
            };
        };
    };
};

and in the description you putt this

class RscTitles {
#include "wm_disp.hpp"
//all other things you have with #include in the bottom
};

and this in our init at the bottom 

here you can set the size and shadow and where the picture is place

_pic = "example\example.paa";
[
    '<img align=''left'' size=''1.0'' shadow=''1'' image='+(str(_pic))+' />',
    safeZoneX+0.027,
    safeZoneY+safeZoneH-0.1,
    99999,
    0,
    0,
    3090
] spawn bis_fnc_dynamicText;
Link to comment
Share on other sites

you only put Logistics in the same code like

class RscTitles {
#include "custom\snap_build\points.hpp"
#include "dayz_code\config\extra_rc.hpp"
#include "dayz_code\config\wm_disp.hpp"
#include "dayz_code\config\RscPlayerUI.hpp"
};
Link to comment
Share on other sites

I feel like I'm making this more complicated than if should be, I had to disable BTC Logistics to get the server to get pasted "Wait for Host" any idea how to have both in there? Putting the BTC code into a .hpp file didn't work.

Edited by Three Plus
Link to comment
Share on other sites

This says that it's already defined...

 

Tried adding this to my server and was stuck at "Wait for Host", The rpt said something about trying to load it twice. :/

ErrorMessage: File mpmissions\__cur_mp.panthera2\picture\watermark.hpp, line 34: .RscTitles: Member already defined.

 

Alright so you have RscTitles defined by BTC

 

you only put Logistics in the same code like

class RscTitles {
#include "custom\snap_build\points.hpp"
#include "dayz_code\config\extra_rc.hpp"
#include "dayz_code\config\wm_disp.hpp"
#include "dayz_code\config\RscPlayerUI.hpp"
};

 

But now you are trying to define it AGAIN in the same file

So in my description.ext should have this at the bottom

class RscTitles {
#include "picture\wm_disp.hpp"
};

Just asking before I try.

 

so you get this error

 

Nope, Still not working.

ErrorMessage: File mpmissions\__cur_mp.panthera2\description.ext, line 261: .RscTitles: Member already defined.

 

 

This is absolutely as simple as logic can be, and how come no one spotted it?? It's is saying what is wrong guys RscTitles: Member already defined.  <<<------ It's screaming it to your face ;)

 

DO THIS INSTEAD

class RscTitles {
#include "custom\snap_build\points.hpp"
#include "dayz_code\config\extra_rc.hpp"
#include "dayz_code\config\wm_disp.hpp"
#include "dayz_code\config\RscPlayerUI.hpp"
#include "picture\wm_disp.hpp"
};
Link to comment
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
  • Advertisement
×
×
  • Create New...