mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Improve spectator tab fading (#5441)
* Cleanup spectator PFH variable * Improve spectator tab fading Looks better
This commit is contained in:
parent
26ebc16e3f
commit
43ac39f06c
@ -96,6 +96,7 @@ if (_init) then {
|
||||
} else {
|
||||
// Stop updating the list and focus widget
|
||||
[GVAR(uiPFH)] call CBA_fnc_removePerFrameHandler;
|
||||
GVAR(uiPFH) = nil;
|
||||
|
||||
// Stop drawing icons and tracking cursor object
|
||||
removeMissionEventHandler ["Draw3D", GVAR(uiDraw3D)];
|
||||
|
@ -20,28 +20,31 @@ params ["_fadeList"];
|
||||
|
||||
if (GVAR(uiVisible)) then {
|
||||
private _list = CTRL_LIST;
|
||||
private _tabs = CTRL_TABS;
|
||||
|
||||
if (_fadeList) then {
|
||||
_list ctrlSetBackgroundColor [0,0,0,0];
|
||||
_list ctrlSetFade 0.8;
|
||||
ctrlSetFocus CTRL_MOUSE;
|
||||
|
||||
// if (GVAR(camMode) == MODE_FREE) then {
|
||||
// GVAR(camera) camCommand "manual on";
|
||||
// };
|
||||
_tabs ctrlSetBackgroundColor [0,0,0,0];
|
||||
_tabs ctrlSetFade 0.5;
|
||||
|
||||
ctrlSetFocus CTRL_MOUSE;
|
||||
|
||||
showChat true;
|
||||
} else {
|
||||
_list ctrlSetBackgroundColor [0,0,0,0.75];
|
||||
_list ctrlSetFade 0;
|
||||
ctrlSetFocus _list;
|
||||
|
||||
// Disable camera input while using the list
|
||||
// GVAR(camera) camCommand "manual off";
|
||||
_tabs ctrlSetBackgroundColor [0,0,0,0.25];
|
||||
_tabs ctrlSetFade 0;
|
||||
|
||||
ctrlSetFocus _list;
|
||||
|
||||
// List overlaps with chat
|
||||
showChat false;
|
||||
};
|
||||
|
||||
_list ctrlCommit 0.2;
|
||||
_tabs ctrlCommit 0.2;
|
||||
};
|
||||
|
@ -82,7 +82,7 @@ class GVAR(display) {
|
||||
w = W_PART(13.5);
|
||||
h = H_PART(1.5);
|
||||
|
||||
fade = 0.8;
|
||||
fade = 0.5;
|
||||
rows = 1;
|
||||
columns = 1;
|
||||
strings[] = {"$STR_A3_Spectator_Entities"};
|
||||
|
Loading…
Reference in New Issue
Block a user