[ SCRIPTS ] Add a logo on the hud

Discussion in 'Installation' started by James45, Nov 18, 2018.

Tags:
  1. James45

    James45 New Member

    Joined:
    Oct 21, 2017
    Messages:
    1
    Likes Received:
    0
    [​IMG]

    Bonjour a tous,

    1 - Créer un dossier [ Core ]

    2 - Créer un fichiers dans le dossier [ Core ] -> [ dsr_logo ] en format [ .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.012;//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="";
    };
    };
    };
    };
    3 - Créer un fichiers dans le dossier [ Core ] -> [ dsr_logo ] en format [ .sqf ]
    _pic = "logo.paa";
    [
    '<img align=''left'' size=''2.1'' shadow=''0'' image='+(str(_pic))+' />',
    safeZoneX+0.02,
    safeZoneY+safeZoneH-0.18,
    99999,
    0,
    0,
    3090
    ] spawn bis_fnc_dynamicText;
    4 - Créer un fichiers [ dsr_cfgrsctitles ] en format [ .cpp ]

    // RscTitles
    #include "core\dsr_logo.hpp"

    5 - Aller dans le fichiers description.ext dans votre dossier missions a la racine
    // Logo to the team.
    [] execVM "core\dsr_logo.sqf";
    // Listes et port des fihciers
    #include "dsr_cfgrsctitles.cpp"

    6 - Vous pourrais mettre votre images [ .PAA ] ou en [ .PNG ] en 128x128
    mpmissions\desolation_redux.chernarus\logo.paa
    OU
    mpmissions\desolation_redux.chernarus\logo.png

    Hello everyone,
    1 - Create a folder [Core]

    2 - Create a file in the [Core] -> [dsr_logo] folder in [.hpp] format
    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.012; // 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 = "";
    };
    };
    };
    };
    3 - Create a file in the [Core] -> [dsr_logo] folder in [.sqf] format
    _ pic = "logo.paa";
    [
    '<img align =' 'left' 'size =' '2.1' 'shadow =' '0' 'image =' + (str (_pic)) + '/>',
    safeZoneX + 0.02,
    safeZoneY + safeZoneH-0.18,
    99999
    0
    0
    3090
    ] spawn bis_fnc_dynamicText;

    4 - Create a file [dsr_cfgrsctitles] in [.cpp] format

    // RscTitles
    #include "core \ dsr_logo.hpp"

    5 - Go to the description.ext files in your missions folder at the root

    // Logo to the team.
    [] execVM "core \ dsr_logo.sqf";
    // Lists and port of fi cers
    #include "dsr_cfgrsctitles.cpp"

    6 - You could put your images [.PAA] or [.PNG] in 128x128

    mpmissions \ desolation_redux.chernarus \ logo.paa
    OR
    mpmissions\desolation_redux.chernarus\logo.png
     
  2. B.A.D.

    B.A.D. Active Member

    Joined:
    Dec 21, 2017
    Messages:
    105
    Likes Received:
    28
    If you just would put

    --------------------------------------------------------
    _pic = "picture_Name.paa";
    [
    '<img align=''left'' size=''1.0'' shadow=''1'' image='+(str(_pic))+' />',

    safezoneX+safezoneW-0.18,
    safezoneY+safezoneH-1.79,
    99999,
    0,
    0,
    3090
    ] spawn bis_fnc_dynamicText;
    --------------------------------------------------
    Inside of your initplayerlocal.sqf it would also work but not require people to edit multiple Files

    Edit: couldnt find out how to make a Spoiler on my phone sorry
     

Share This Page