mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix opacity fading on other render levels
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user