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 {
|
} else {
|
||||||
// Stop updating the list and focus widget
|
// Stop updating the list and focus widget
|
||||||
[GVAR(uiPFH)] call CBA_fnc_removePerFrameHandler;
|
[GVAR(uiPFH)] call CBA_fnc_removePerFrameHandler;
|
||||||
|
GVAR(uiPFH) = nil;
|
||||||
|
|
||||||
// Stop drawing icons and tracking cursor object
|
// Stop drawing icons and tracking cursor object
|
||||||
removeMissionEventHandler ["Draw3D", GVAR(uiDraw3D)];
|
removeMissionEventHandler ["Draw3D", GVAR(uiDraw3D)];
|
||||||
|
@ -20,28 +20,31 @@ params ["_fadeList"];
|
|||||||
|
|
||||||
if (GVAR(uiVisible)) then {
|
if (GVAR(uiVisible)) then {
|
||||||
private _list = CTRL_LIST;
|
private _list = CTRL_LIST;
|
||||||
|
private _tabs = CTRL_TABS;
|
||||||
|
|
||||||
if (_fadeList) then {
|
if (_fadeList) then {
|
||||||
_list ctrlSetBackgroundColor [0,0,0,0];
|
_list ctrlSetBackgroundColor [0,0,0,0];
|
||||||
_list ctrlSetFade 0.8;
|
_list ctrlSetFade 0.8;
|
||||||
ctrlSetFocus CTRL_MOUSE;
|
|
||||||
|
|
||||||
// if (GVAR(camMode) == MODE_FREE) then {
|
_tabs ctrlSetBackgroundColor [0,0,0,0];
|
||||||
// GVAR(camera) camCommand "manual on";
|
_tabs ctrlSetFade 0.5;
|
||||||
// };
|
|
||||||
|
ctrlSetFocus CTRL_MOUSE;
|
||||||
|
|
||||||
showChat true;
|
showChat true;
|
||||||
} else {
|
} else {
|
||||||
_list ctrlSetBackgroundColor [0,0,0,0.75];
|
_list ctrlSetBackgroundColor [0,0,0,0.75];
|
||||||
_list ctrlSetFade 0;
|
_list ctrlSetFade 0;
|
||||||
ctrlSetFocus _list;
|
|
||||||
|
|
||||||
// Disable camera input while using the list
|
_tabs ctrlSetBackgroundColor [0,0,0,0.25];
|
||||||
// GVAR(camera) camCommand "manual off";
|
_tabs ctrlSetFade 0;
|
||||||
|
|
||||||
|
ctrlSetFocus _list;
|
||||||
|
|
||||||
// List overlaps with chat
|
// List overlaps with chat
|
||||||
showChat false;
|
showChat false;
|
||||||
};
|
};
|
||||||
|
|
||||||
_list ctrlCommit 0.2;
|
_list ctrlCommit 0.2;
|
||||||
|
_tabs ctrlCommit 0.2;
|
||||||
};
|
};
|
||||||
|
@ -82,7 +82,7 @@ class GVAR(display) {
|
|||||||
w = W_PART(13.5);
|
w = W_PART(13.5);
|
||||||
h = H_PART(1.5);
|
h = H_PART(1.5);
|
||||||
|
|
||||||
fade = 0.8;
|
fade = 0.5;
|
||||||
rows = 1;
|
rows = 1;
|
||||||
columns = 1;
|
columns = 1;
|
||||||
strings[] = {"$STR_A3_Spectator_Entities"};
|
strings[] = {"$STR_A3_Spectator_Entities"};
|
||||||
|
Loading…
Reference in New Issue
Block a user