mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
d3ce75daef
- Overhauls the spectator module entirely to share a similar UX to BI's "End Game Spectator" while maintaining some of the extended flexibility of ACE Spectator. - Simplifies spectator setup by reducing the number of settings. More advanced setup is still possible via the API functions provided.
30 lines
742 B
Plaintext
30 lines
742 B
Plaintext
/*
|
|
* Author: SilentSpike
|
|
* Deprecated. Technically never publically documented, but just in case.
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params [["_reason", "", [""]], ["_interrupt", true, [true]]];
|
|
|
|
ACE_DEPRECATED(QFUNC(interrupt),"3.12.0","just close and reopen spectator");
|
|
|
|
// Nothing to do when spectator is closed
|
|
if !(GVAR(isSet)) exitWith {};
|
|
|
|
if (_reason == "") exitWith { WARNING("Invalid Reason"); };
|
|
if (_interrupt) then {
|
|
GVAR(interrupts) pushBack _reason;
|
|
} else {
|
|
GVAR(interrupts) = GVAR(interrupts) - [_reason];
|
|
};
|
|
|
|
if (GVAR(interrupts) isEqualTo []) then {
|
|
if (isNull SPEC_DISPLAY) then {
|
|
[true] call FUNC(ui);
|
|
};
|
|
} else {
|
|
if !(isNull SPEC_DISPLAY) then {
|
|
[false] call FUNC(ui);
|
|
};
|
|
};
|