FANDOM


Introduced with Operation Flashpoint version 1.5
  Arguments localEffects local

点击图片可看到更多讯息

开始使用于

游戏:
Operation Flashpoint
版本:
1.5

描述

描述:
Set the action of a control of the currently active user dialog. Can be used for buttons and active texts. See Dialog Control for more information about user dialogs.

基本句法

句法:
buttonSetAction [idc, action]
参数:
[idc, action]: Array

idc: Number - control ID

action: String - code body that should be executed when the button/active text is clicked
返回值:
Nothing

替代句法

句法:
control buttonSetAction action
参数:
control: Control

action: String
返回值:
Nothing

范例

范例1:
buttonSetAction [100, "player exec ""reply.sqs"""]

额外资讯

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

buttonActionctrlActivate

注意事项

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

Notes

Posted on October 5, 2009 - 16:23
kungtotte
When using buttonSetAction for an ActiveText control from a script, you cannot use any variables local to the script in it.

/* This will print 'any bar' in the hint box,
 since _foo has no value according to buttonSetAction */

_foo = "foo";
buttonSetAction [100, "hint format[""%1 bar"", _foo];"];

Bottom Section

Posted on February 15, 2016 - 10:15 (UTC)
Molaron
This command does not overwride the buttonaction which was set via "action" in the hpp of the dialog

您使用了广告屏蔽软件!


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

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

查看其他FANDOM

随机维基