Fandom

武装突袭 Wiki

CtrlSetEventHandler

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 分享

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

  

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.00

描述

描述:
Sets given event handler of given control.

The provided function should return true/false indicating that the event has handled this event fully or not and whether the engine should execute it's default code or not afterwards.

See User Interface Event Handlers for the full list of handler names.

If applicable, see DIK_KeyCodes for a list of key code constants, which are relevant to key related user interface events like: KeyDown & KeyUp.

基本句法

句法:
controlName ctrlSetEventHandler [handlerName, function]
参数:
controlName: Control

[handlerName, function]: Array

handlerName: String

function: String
返回值:
Nothing

范例

范例1:
_control [[ctrlSetEventHandler]] ["KeyDown", ""]
范例2:
(_display displayCtrl 108) [[ctrlSetEventHandler]] ["LBSelChanged","['ListChange',_this] call FireEvents"];

额外资讯

多人游戏:
-
也可以看看:

displaySetEventHandlerUI Event HandlersDIK KeyCodes

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Unknown
The article User Interface Event Handlers contains a list of event handler names.
Be aware though, that the preceding "on" in the listed names must be eliminated when used with the ctrlSetEventHandler command.

e.g. instead of _control ctrlSetEventHandler ["OnLBSelChanged", ""]; // WRONG use _control ctrlSetEventHandler ["LBSelChanged", ""]; // RIGHT

Bottom Section

更多维基

随机维基