Fix opacity fading on other render levels

This commit is contained in:
PabstMirror
2015-02-19 03:02:58 -06:00
parent 043987fc93
commit 244d7a5572
2 changed files with 4 additions and 7 deletions

View File

@ -18,12 +18,9 @@ if(count _sPos > 0) then {
if(_icon == "") then {
_icon = DEFAULT_ICON;
};
_text = "<img image='" + _icon + "' />" + _text;
_text = format ["<img image='%1'/><t color ='%2'>%3</t>", _icon, _color, _text];
_ctrl ctrlSetStructuredText (parseText _text);
_ctrl ctrlSetPosition [(_sPos select 0)-(0.011*SafeZoneW), (_sPos select 1)-(0.0095*SafeZoneW), 0.4*SafeZoneW, 0.025*SafeZoneW];
_ctrl ctrlSetForegroundColor _color;
_opacity = _color select 3;
_control ctrlSetTextColor _color;
// _ctrl ctrlSetBackgroundColor [1,0,0,1];
_ctrl ctrlCommit 0;
};