2015-01-11 16:42:31 +00:00
|
|
|
/*
|
2015-01-11 18:20:14 +00:00
|
|
|
Name: FUNC(onLoadRscDisplayChannel)
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
Author: Pabst Mirror, commy2
|
|
|
|
|
|
|
|
Description:
|
2015-01-12 04:02:33 +00:00
|
|
|
When the RscDisplayChannel is loaded, this will constantly uiNamespace variable "ACE_currentChannel"
|
2015-01-11 16:42:31 +00:00
|
|
|
with the raw localized text of CA_Channel (IDC=101). Only runs while the display is open.
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
0: DISPLAY - RscDisplayChannel
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
Nothing
|
|
|
|
*/
|
2015-01-12 11:14:15 +00:00
|
|
|
#include "\z\ace\addons\core\script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-12 04:02:33 +00:00
|
|
|
uiNamespace setVariable ["ACE_ctrlChannel", (_this select 0) displayCtrl 101];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-12 04:02:33 +00:00
|
|
|
["ACE_currentChannel", "onEachFrame", {
|
|
|
|
if (ctrlText (uiNamespace getVariable ["ACE_ctrlChannel", controlNull]) != "") then {
|
|
|
|
uiNamespace setVariable ["ACE_currentChannel", ctrlText (uiNamespace getVariable ["ACE_ctrlChannel", controlNull])];
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|
|
|
|
}] call BIS_fnc_addStackedEventhandler;
|