Jump to content

[HOW TO] Watermark on the bottom left of screen


Indiculous

Recommended Posts

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

NOTICE: I do not take credit for these scripts im simply just sharing them with a tutorial!

 

1) Watermark :

In your Mission file open your init.sqf and add this at the very bottom

 

//DayZ Watermark
if (!isNil "server_name") then {
[] spawn {
waitUntil {(!isNull Player) and (alive Player) and (player == player)};
waituntil {!(isNull (findDisplay 46))};
5 cutRsc ["wm_disp","PLAIN"];
((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText server_name;
};
};
Next open your description.ext and add this to the very bottom
 
// DayZ Watermark
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 = 1.151*safeZoneH;
h = 0.057*safeZoneH;
shadow = 2;
class Attributes
{
font = "EtelkaNarrowMediumPro";
color = "#24FFFFFF";
align = "left"; // put "center" here if you want some background
valign = "middle";
shadow = 2;
};
colorBackground[] = { 1, 0.3, 0, 0 };  // uncomment and increase 4th number to have a background
font = "EtelkaNarrowMediumPro";
size = 0.06*safeZoneH;
type = 13;
style = 0;
text="";
};
};
};
};
Then open you init again and Find This Line 
 
dayz_previousID = 0;
 
Directly under that add  
 
server_name = "Servername";
 
So it should look like this 
 
dayz_previousID = 0;
server_name = "Servername";
 
Your done now go in game and at the bottom left you will see your watermark!
 
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Link to comment
Share on other sites

Its not there? I deleted RscTitles from

 // DayZ Watermark

class RscTitles {              <------------------

class wm_disp {

 

and im in game but its not on bottom left

 

 

you dont delete that, i had another RscTitles part from another script left over i forgot to remove

Link to comment
Share on other sites

Is there a way to use this together with Btc logistic ?

you need in both script the same class....

(Rsc titles)

was just about to mention this, my btc hud part was what i removed, and players get a message about it on startup, the rsctitles part i removed was to do with that

Link to comment
Share on other sites

  • 3 weeks later...

A bit of indentation
And mine won't display


// DayZ Watermark
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 = 1.151*safeZoneH;
				h = 0.057*safeZoneH;
				shadow = 2;
				class Attributes
				{
					font = "EtelkaNarrowMediumPro";
					color = "#24FFFFFF";
					align = "left"; // put "center" here if you want some background
					valign = "middle";
					shadow = 2;
				};
				colorBackground[] = { 1, 0.3, 0, 0 };  // uncomment and increase 4th number to have a background
				font = "EtelkaNarrowMediumPro";
				size = 0.06*safeZoneH;
				type = 13;
				style = 0;
				text="";
			};
		};
	};
};

if (!isNil "server_name") then {
	[] spawn {
		waitUntil {(!isNull Player) and (alive Player) and (player == player)};
		waituntil {!(isNull (findDisplay 46))};
		5 cutRsc ["wm_disp","PLAIN"];
		((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText server_name;
	};
};
Link to comment
Share on other sites

  • 3 weeks later...
you can also implement a picture is very well 

in the description you put this at the bottom 

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 this in our init at the bottom 

_pic = "picture\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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...