Jump to content

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


BAROD

Recommended Posts

  • 2 months later...

I cannot get this to work. i have a class RscTitles in my Define.hpp

so if i put it in my description.ext it conflicts.

I tried just using it without the description.ext step and can not seem to get it to work.

Any suggestions? could it be my picture? can i send my pic to any of you pros and size it and create it usable lol?

thanks

Link to comment
Share on other sites

12 minutes ago, Jestertriks said:

I cannot get this to work. i have a class RscTitles in my Define.hpp

so if i put it in my description.ext it conflicts.

I tried just using it without the description.ext step and can not seem to get it to work.

Any suggestions? could it be my picture? can i send my pic to any of you pros and size it and create it usable lol?

thanks

description.ext  (this is an example for a existing  class RscTitles add lines in red, )

Spoiler

class controls
    {
        class Title1 : RscLoadingText
        {
            text = "$STR_LOADING"; // "Loading" text in the middle of the screen
        };
        class CA_Progress : RscProgress // progress bar, has to have idc 104
        {
            idc = 104;
            type = 8; // CT_PROGRESS
            style = 0; // ST_SINGLE
            texture = "\ca\ui\data\loadscreen_progressbar_ca.paa";
        };
        class CA_Progress2 : RscProgressNotFreeze // progress bar that will go reverse
        {
            idc = 103;
        };
        class Name2: RscText // the text on the top-left
        {
            idc = 101;
            x = 0.05;
            y = 0.029412;
            w = 0.9;
            h = 0.04902;
            text = "";
            sizeEx = 0.05;
            colorText[] = {0.543,0.5742,0.4102,1.0};
        };
    };
};

 


#include "dzgm\defines.hpp"
class RscTitles
{
//------------------ Watermark Logo Space ----------------------------------------

    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"; // 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="";
            };
        };
    };


#include "ZSC\config\ZSChud.hpp"
#include "dzgm\icons.hpp"
};

now go to your init.sqf  (add lines in red) into if (!isDedicated) then {  section.

Spoiler

if (!isDedicated) then {
    //Conduct map operations
    [] execVM "custom\style\WelcomeCredits.sqf";
    0 fadeSound 0;
    waitUntil {!isNil "dayz_loadScreenMsg"};
    dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
    
    //Run the player monitor
    _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
    _playerMonitor =     [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";    
    execVM "spawn\start.sqf";
    execVM "dzgm\init.sqf";

    
        // Epoch Admin Tools
if ( !((getPlayerUID player) in AdminList) && !((getPlayerUID player) in ModList)) then
{
  [] execVM "admintools\antihack\antihack.sqf"; // Epoch Antihack with bypass
};
    
    //Lights
    //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
    _nil = [] execVM "custom\remote\remote.sqf";
    execVM "ZSC\compiles\playerHud.sqf";
    execVM "service_point\service_point.sqf";
    
    //---------------- Logo --------------------------
_pic = "custom\logoscreen.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;
//------------------------------------------------

};

Now open photoshop, create a transparent new file 500x100.   make your logo and save as png.  

Open TextView2.  open your logo in png  and save as .paa

then drop this .paa into  serverroot/yourinstance/custom/

Link to comment
Share on other sites

1 hour ago, Jestertriks said:

Thank you for answering

I dont have this

#include "dzgm\defines.hpp"
class RscTitles
{

should i add that? because my rsctitles are in my defines.hpp so will it conflict?

no bro  dzgm is a define for group management... i only put it to show you how place logos with an existent RscTitles.  (just put lines in red)

Link to comment
Share on other sites

@Jestertriks

if u dont have a RscTtiles...  then just put this lines in red:

Spoiler

class controls
    {
        class Title1 : RscLoadingText
        {
            text = "$STR_LOADING"; // "Loading" text in the middle of the screen
        };
        class CA_Progress : RscProgress // progress bar, has to have idc 104
        {
            idc = 104;
            type = 8; // CT_PROGRESS
            style = 0; // ST_SINGLE
            texture = "\ca\ui\data\loadscreen_progressbar_ca.paa";
        };
        class CA_Progress2 : RscProgressNotFreeze // progress bar that will go reverse
        {
            idc = 103;
        };
        class Name2: RscText // the text on the top-left
        {
            idc = 101;
            x = 0.05;
            y = 0.029412;
            w = 0.9;
            h = 0.04902;
            text = "";
            sizeEx = 0.05;
            colorText[] = {0.543,0.5742,0.4102,1.0};
        };
    };
};

 


#include "dzgm\defines.hpp"
class RscTitles
{

//------------------ Watermark Logo Space ----------------------------------------

    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"; // 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="";
            };
        };
    };

};

 

Link to comment
Share on other sites

2 hours ago, Jestertriks said:

I'll message you. will the size of the picture make it not work?

 

for your specific case  u dont have your rscTitles into decription.ext you have into your defines.hpp  so add this into this files.  (lines in black are your original lines,  lines  in red are the lines you need to add)

Spoiler

class ZSC_RscEdit {
    type = 2;
    style = 0x00 + 0x40;
    font = "Zeppelin32";
    shadow = 2;
    sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
    colorBackground[] = {0, 0, 0, 1};
    colorText[] = {0.95, 0.95, 0.95, 1};
    colorDisabled[] = {1, 1, 1, 0.25};
    autocomplete = 1;
    colorSelection[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 1};
    canModify = 1;
    soundPush[] = { "", 0, 1 };
    soundEnter[] = { "", 0, 1 };
    soundClick[] = { "", 0, 1 };
    soundEscape[] = { "", 0, 1 };
    sound[] = { "", 0, 1 };
};
class RscTitles {

//------------------ Watermark Logo Space ----------------------------------------

    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"; // 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="";
            };
        };
    };

    class EarPlugs {
        idd = -1;
        fadeout=0;
        fadein=0;
        onLoad = "uiNamespace setVariable ['EarPlugs', _this select 0]";
        duration = 10e10;
        name= "EarPlugs";
        controlsBackground[] = {};
        objects[] = {};

 

Link to comment
Share on other sites

  • 1 month later...
On 7/3/2016 at 7:29 AM, juandayz said:

paste your whole init.sqf and whole description.ext and i make it for you.

I basically followed your instructions (but made a few changes)

Now the logo works but is only there after I upload the pbo - then when the server restarts again the logo is gone ...

IMG was placed here:  mpmissions\pictures\logo.paa

Anyone know what I've done wrong?

Here's my Init.sqf - https://gist.github.com/anonymous/49d969005c6702cb71badf0c080fb885

Here's my description.ext - https://gist.github.com/anonymous/001809097c6b03f8a6afdc4b225c0cad

Thanks for your time 

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...