class CfgPatches
{
    class BRAF_Insignia
    {
        units[] = {"braf_namedsoldier"};
        weapons[] = {"braf_nameduniform"};
        author = "BRAF Team";
        url = "";
        requiredAddons[] =
            {
                "A3_Characters_F",
                "A3_Data_F",
                "A3_Characters_F_Heads",
                "A3Data",
                "A3_Characters_F_BLUFOR",
                "A3_Characters_F_Proxies",
                "braf_main"
            };
        requiredVersion = 0.1;
    }; 
};

class CfgEditorCategories
{
    class braf_buildings_objects
    {
        displayName = "Structures (BRAF)";
        priority = 1;
        side = 2;
    };
};

class CfgEditorSubcategories
{
    class Tent
    {
        displayName = "Tent";
    };
    class Suply
    {
        displayName = "Supply";
    };
    class Flags
    {
        displayName = "Flags";
    };
    class Ammoboxes
    {
        displayName = "Supplies";
    };
};

class CfgMarkers
{
    class flag_NATO;
    class flag_BRA : flag_NATO
    {
        name = "Brazil";
        icon = "\braf\braf_insignia\CfgMarker\flag_brazil.paa";
        texture = "\braf\braf_insignia\CfgMarker\markerbrazil.paa";
    };
    class flag_CMBRAF : flag_NATO
    {
        name = "High Command";
        icon = "\braf\braf_insignia\CfgMarker\flag_cmbraf.paa";
        texture = "\braf\braf_insignia\CfgMarker\markercmbraf.paa";
    };
};

class CfgUnitInsignia
{
    class BRAF_Insignia_1bavex
    {
        displayName = "1º BAvEx";
        texture = "braf\braf_insignia\CfgUnitInsignia\data\1BaVEx_co.paa";
        author = "BRAF Team";
        material = "braf\braf_insignia\CfgUnitInsignia\data\1BaVEx.rvmat";
    };
    class BRAF_Insignia_2bavex
    {
        displayName = "2º BAvEx";
        texture = "braf\braf_insignia\CfgUnitInsignia\data\2BaVEx_co.paa";
        author = "BRAF Team";
        material = "braf\braf_insignia\CfgUnitInsignia\data\2BaVEx.rvmat";
    };
    class BRAF_Insignia_3bavex
    {
        displayName = "3º BAvEx";
        texture = "braf\braf_insignia\CfgUnitInsignia\data\3BaVEx_co.paa";
        author = "BRAF Team";
        material = "braf\braf_insignia\CfgUnitInsignia\data\3BaVEx.rvmat";
    };
    class BRAF_Insignia_4bavex
    {
        displayName = "4º BAvEx";
        texture = "braf\braf_insignia\CfgUnitInsignia\data\4BaVEx_co.paa";
        author = "BRAF Team";
        material = "braf\braf_insignia\CfgUnitInsignia\data\4BaVEx.rvmat";
    };
    class BRAF_Insignia_BIS
    {
        displayName = "1st Jungle Infantry Battalion";
        texture = "braf\braf_insignia\CfgUnitInsignia\data\BIS_co.paa";
        author = "BRAF Team";
        material = "braf\braf_insignia\CfgUnitInsignia\data\BIS.rvmat";
    };
    class BRAF_Insignia_bdapqdtcolor
    {
        displayName = "Bda Pqdt (Color)";
        texture = "braf\braf_insignia\CfgUnitInsignia\data\bdapqdtcolor_co.paa";
        author = "BRAF Team";
        material = "braf\braf_insignia\CfgUnitInsignia\data\bdapqdtcolor.rvmat";
    };
    class BRAF_Insignia_bdapqdtgreen
    {
        displayName = "Bda Pqdt (Green)";
        texture = "braf\braf_insignia\CfgUnitInsignia\data\bdapqdtverde_co.paa";
        author = "BRAF Team";
        material = "braf\braf_insignia\CfgUnitInsignia\data\bdapqdtcolor.rvmat";
    };
    class BRAF_Insignia_copesp_1dofesp
    {
        displayName = "1º DOFEsp";
        texture = "braf\braf_insignia\CfgUnitInsignia\data\copesp_1dofesp_color_co.paa";
        author = "BRAF Team";
        material = "braf\braf_insignia\CfgUnitInsignia\data\copesp_1dofesp_color.rvmat";
    };
    class BRAF_Insignia_copesp_dct
    {
        displayName = "Counter Terrorism Detachment";
        texture = "braf\braf_insignia\CfgUnitInsignia\data\copesp_dct_green_co.paa";
        author = "BRAF Team";
        material = "braf\braf_insignia\CfgUnitInsignia\data\copesp_dct_green.rvmat";
    };
    class BRAF_Insignia_sentaapua
    {
        displayName = "Senta a Pua";
        texture = "braf\braf_insignia\CfgUnitInsignia\data\sentaapua_co.paa";
        author = "BRAF Team";
        material = "braf\braf_insignia\CfgUnitInsignia\data\sentaapua.rvmat";
    };
    class BRAF_Insignia_corpsman
    {
        displayName = "United Nations";
        texture = "braf\braf_insignia\CfgUnitInsignia\data\unitednations_co.paa";
        author = "BRAF Team";
        material = "braf\braf_insignia\CfgUnitInsignia\data\unitednations.rvmat";
    };
    class BRAF_Insignia_6de
    {
        displayName = "6st Army Division";
        texture = "braf\braf_insignia\CfgUnitInsignia\data\6de_co.paa";
        author = "BRAF Team";
        material = "braf\braf_insignia\CfgUnitInsignia\data\6de.rvmat";
    };
    class BRAF_Insignia_cms
    {
        displayName = "Southern Military Command";
        texture = "braf\braf_insignia\CfgUnitInsignia\data\cms_co.paa";
        author = "BRAF Team";
        material = "braf\braf_insignia\CfgUnitInsignia\data\cms.rvmat";
    };
};

class CfgVehicles
{
    class FlagCarrier;
    class braf_Flag : FlagCarrier
    {
        author = "BRAF Team";
        class SimpleObject
        {
            eden = 0;
            animate[] =
                {

                    {"flag",
                     0}};
            hide[] = {};
            verticalOffset = 3.977;
            verticalOffsetWorld = 0;
            init = "''";
        };
        editorPreview = "\A3\EditorPreviews_F\Data\CfgVehicles\Flag_Blue_F.jpg";
        _generalMacro = "braf_Flag";
        scope = 2;
        scopeCurator = 2;
        displayName = "$STR_braf_flag";
        editorCategory = "braf_buildings_objects";
        editorSubcategory = "Flags";
        class EventHandlers
        {
            init = "(_this select 0) setFlagTexture 'braf\braf_insignia\CfgMarker\flag_braf.paa'";
        };
    };
    class braf_Brazil_Flag : braf_Flag
    {
        _generalMacro = "braf_Brazil_Flag";
        displayName = "$STR_Brazil_flag";
        class EventHandlers
        {
            init = "(_this select 0) setFlagTexture 'braf\braf_insignia\CfgMarker\flag_brasil.paa'";
        };
    };
    class braf_cmbraf_Flag : braf_Flag
    {
        _generalMacro = "braf_Brazil_Flag";
        displayName = "$STR_cmbraf_flag";
        class EventHandlers
        {
            init = "(_this select 0) setFlagTexture 'braf\braf_insignia\CfgMarker\flag_cmbraf.paa'";
        };
    };
};