mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
793 B
Plaintext
25 lines
793 B
Plaintext
/*
|
|
Name: FUNC(onLoadRscDisplayChannel)
|
|
|
|
Author: Pabst Mirror, commy2
|
|
|
|
Description:
|
|
When the RscDisplayChannel is loaded, this will constantly uiNamespace variable "ACE_currentChannel"
|
|
with the raw localized text of CA_Channel (IDC=101). Only runs while the display is open.
|
|
|
|
Parameters:
|
|
0: DISPLAY - RscDisplayChannel
|
|
|
|
Returns:
|
|
Nothing
|
|
*/
|
|
#include "\z\ace\addons\common\script_component.hpp"
|
|
|
|
uiNamespace setVariable ["ACE_ctrlChannel", (_this select 0) displayCtrl 101];
|
|
|
|
["ACE_currentChannel", "onEachFrame", {
|
|
if (ctrlText (uiNamespace getVariable ["ACE_ctrlChannel", controlNull]) != "") then {
|
|
uiNamespace setVariable ["ACE_currentChannel", ctrlText (uiNamespace getVariable ["ACE_ctrlChannel", controlNull])];
|
|
};
|
|
}] call BIS_fnc_addStackedEventhandler;
|