mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Modify the opacity of icons along with that of the text
This commit is contained in:
parent
d055315661
commit
db5e8bcc34
@ -6,6 +6,7 @@ _text = _this select 0;
|
||||
_color = _this select 1;
|
||||
_pos = _this select 2;
|
||||
_icon = _this select 6;
|
||||
|
||||
_sPos = worldToScreen _pos;
|
||||
// _sPos = _pos;
|
||||
if(count _sPos > 0) then {
|
||||
@ -18,7 +19,7 @@ if(count _sPos > 0) then {
|
||||
if(_icon == "") then {
|
||||
_icon = DEFAULT_ICON;
|
||||
};
|
||||
_text = format ["<img image='%1'/><t color ='%2'>%3</t>", _icon, _color, _text];
|
||||
_text = format ["<img image='%1' color='%2'/><t color ='%3'>%4</t>", _icon, _color, _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 ctrlSetBackgroundColor [1,0,0,1];
|
||||
|
Loading…
Reference in New Issue
Block a user