mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
8945f99be1
GVAR -> FUNC onEachFrame exits when channel control is closed
18 lines
653 B
Plaintext
18 lines
653 B
Plaintext
/*
|
|
* Author: commy2
|
|
*
|
|
* Returns the current radio / chat / marker channel.
|
|
*
|
|
* Argument:
|
|
* NONE.
|
|
*
|
|
* Return value:
|
|
* The current channel. Can be "group", "side", "global", "command", "vehicle" or "direct" (String)
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
#define CHANNELS ["group", "side", "global", "command", "vehicle", "direct"]
|
|
#define CHANNELS_LOCALIZED [localize "str_channel_group", localize "str_channel_side", localize "str_channel_global", localize "str_channel_command", localize "str_channel_vehicle", localize "str_channel_direct"]
|
|
|
|
CHANNELS select (CHANNELS_LOCALIZED find (uiNamespace getVariable [QGVAR(currentChannel), ""])) max 0
|