add russian rank icons

This commit is contained in:
commy2 2016-06-26 00:02:19 +02:00
parent e88ecfc236
commit 9eba2fe940
11 changed files with 30 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -5,9 +5,15 @@
if (!hasInterface) exitWith {}; if (!hasInterface) exitWith {};
if (isNil QGVAR(factionRanks)) then { ["OPF_F", [
GVAR(factionRanks) = [] call CBA_fnc_createNamespace; QPATHTOF(UI\icons_russia\private_gs.paa),
}; QPATHTOF(UI\icons_russia\corporal_gs.paa),
QPATHTOF(UI\icons_russia\sergeant_gs.paa),
QPATHTOF(UI\icons_russia\lieutenant_gs.paa),
QPATHTOF(UI\icons_russia\captain_gs.paa),
QPATHTOF(UI\icons_russia\major_gs.paa),
QPATHTOF(UI\icons_russia\colonel_gs.paa)
]] call FUNC(setFactionRankIcons);
GVAR(showNamesTime) = -10; GVAR(showNamesTime) = -10;

View File

@ -18,7 +18,7 @@
* "\A3\Ui_f\data\GUI\Cfg\Ranks\captain_gs.paa", * "\A3\Ui_f\data\GUI\Cfg\Ranks\captain_gs.paa",
* "\A3\Ui_f\data\GUI\Cfg\Ranks\major_gs.paa", * "\A3\Ui_f\data\GUI\Cfg\Ranks\major_gs.paa",
* "\A3\Ui_f\data\GUI\Cfg\Ranks\colonel_gs.paa" * "\A3\Ui_f\data\GUI\Cfg\Ranks\colonel_gs.paa"
* ] call ace_nametags_fnc_setFactionRankIcons * ]] call ace_nametags_fnc_setFactionRankIcons
* *
* Public: Yes * Public: Yes
*/ */

View File

@ -9,3 +9,9 @@ class Extended_PreInit_EventHandlers {
init = QUOTE(call COMPILE_FILE(XEH_preInit)); init = QUOTE(call COMPILE_FILE(XEH_preInit));
}; };
}; };
class Extended_PostInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_postInit));
};
};

View File

@ -0,0 +1,14 @@
#include "script_component.hpp"
private _russianRankIcons = [
QPATHTOEF(nametags,UI\icons_russia\private_gs.paa),
QPATHTOEF(nametags,UI\icons_russia\corporal_gs.paa),
QPATHTOEF(nametags,UI\icons_russia\sergeant_gs.paa),
QPATHTOEF(nametags,UI\icons_russia\lieutenant_gs.paa),
QPATHTOEF(nametags,UI\icons_russia\captain_gs.paa),
QPATHTOEF(nametags,UI\icons_russia\major_gs.paa),
QPATHTOEF(nametags,UI\icons_russia\colonel_gs.paa)
];
["rhs_faction_msv", _russianRankIcons] call EFUNC(nametags,setFactionRankIcons);
["rhs_faction_vdv", _russianRankIcons] call EFUNC(nametags,setFactionRankIcons);