mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Name Tags - Add ability to set custom rank icon (#8174)
This commit is contained in:
parent
dd454bdfbe
commit
5aa6e564e0
@ -71,6 +71,7 @@ Dharma Bellamkonda <dharma.bellamkonda@gmail.com>
|
||||
Dimaslg <dimaslg@telecable.es>
|
||||
diwako
|
||||
dixon13 <dixonbegay@gmail.com>
|
||||
Drift_91
|
||||
Drill <drill87@gmail.com>
|
||||
Dudakov aka [OMCB]Kaban <dudakov.s@gmail.com>
|
||||
Drofseh <drofseh@gmail.com>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "script_component.hpp"
|
||||
/*
|
||||
* Author: commy2, esteldunedain
|
||||
* Author: commy2, esteldunedain, Drift_91
|
||||
* Draw the nametag and rank icon.
|
||||
*
|
||||
* Arguments:
|
||||
@ -33,12 +33,15 @@ _fnc_parameters = {
|
||||
if (_drawSoundwave) then {
|
||||
_icon = format [QPATHTOF(UI\soundwave%1.paa), floor random 10];
|
||||
} else {
|
||||
if (_drawRank && {rank _target != ""}) then {
|
||||
_icon = GVAR(factionRanks) getVariable (_target getVariable [QGVAR(faction), faction _target]);
|
||||
if (!isNil "_icon") then {
|
||||
_icon = _icon param [ALL_RANKS find rank _target, ""];
|
||||
} else {
|
||||
_icon = format ["\A3\Ui_f\data\GUI\Cfg\Ranks\%1_gs.paa", rank _target];
|
||||
if (_drawRank) then {
|
||||
_icon = _target getVariable "ace_nametags_rankIcon";
|
||||
if (isNil "_icon" && {rank _target != ""}) then {
|
||||
_icon = GVAR(factionRanks) getVariable (_target getVariable [QGVAR(faction), faction _target]);
|
||||
if (!isNil "_icon") then {
|
||||
_icon = _icon param [ALL_RANKS find rank _target, ""];
|
||||
} else {
|
||||
_icon = format ["\A3\Ui_f\data\GUI\Cfg\Ranks\%1_gs.paa", rank _target];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user