Draw player names on spectator map

This commit is contained in:
SilentSpike 2015-08-07 12:07:22 +01:00
parent 485f9438bb
commit f143db7fc0
2 changed files with 6 additions and 5 deletions

View File

@ -167,9 +167,9 @@ class GVAR(interface) {
colorBorder[] = {COL_FORE}; colorBorder[] = {COL_FORE};
colorBackground[] = {COL_BACK}; colorBackground[] = {COL_BACK};
colorSelect[] = { colorSelect[] = {
QUOTE(GETPRVAR(GUI_BCG_RGB_R,0.77)), "profilenamespace getvariable ['GUI_BCG_RGB_R',0.77]",
QUOTE(GETPRVAR(GUI_BCG_RGB_G,0.51)), "profilenamespace getvariable ['GUI_BCG_RGB_G',0.51]",
QUOTE(GETPRVAR(GUI_BCG_RGB_B,0.08)), "profilenamespace getvariable ['GUI_BCG_RGB_B',0.08]",
1 1
}; };
multiselectEnabled = 0; multiselectEnabled = 0;

View File

@ -18,7 +18,7 @@
#include "script_component.hpp" #include "script_component.hpp"
params ["_map"]; params ["_map"];
private ["_cachedVehicles","_unit","_color","_icon"]; private ["_cachedVehicles","_unit","_color","_icon","_txt"];
if (GVAR(camMode) == 0) then { if (GVAR(camMode) == 0) then {
_map drawIcon ["\A3\UI_F\Data\GUI\Rsc\RscDisplayMissionEditor\iconcamera_ca.paa",[0,0,0,1],GVAR(camera),20,20,GVAR(camPan)]; _map drawIcon ["\A3\UI_F\Data\GUI\Rsc\RscDisplayMissionEditor\iconcamera_ca.paa",[0,0,0,1],GVAR(camera),20,20,GVAR(camPan)];
@ -39,8 +39,9 @@ _cachedVehicles = [];
// Function has caching built in // Function has caching built in
_color = [side effectiveCommander _unit] call BIS_fnc_sideColor; _color = [side effectiveCommander _unit] call BIS_fnc_sideColor;
_icon = GETVAR(_unit,GVAR(uIcon),""); _icon = GETVAR(_unit,GVAR(uIcon),"");
_txt = ["", GETVAR(_x,GVAR(uName),"")] select (isPlayer _x);
_map drawIcon [_icon, _color, _unit, 19, 19, getDir _unit]; _map drawIcon [_icon, _color, _unit, 19, 19, getDir _unit, _txt, 1, 0.03];
}; };
false false
} count GVAR(unitList); } count GVAR(unitList);