武装突袭 Wiki
Advertisement
Introduced with Operation Flashpoint version 1.5
  Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

点击图片可看到更多讯息

开始使用于

游戏:
Operation Flashpoint
版本:
1.5

描述

描述:
Set the text of a control of the currently active user dialog or display. This command can be used for: static texts, buttons, edit lines and active texts as well as for images, where you can use it to set the image path. Read Dialog Control for more information about user dialogs and controls.

基本句法

句法:
ctrlSetText [idc, text]
参数:
[idc, text]: Array
idc: Integer - control ID
text: String - text or image path, depending on the control type
返回值:
Nothing

替代句法

句法:
controlName ctrlSetText text
参数:
controlName: Control
text: String
返回值:
Nothing

范例

范例1:
ctrlSetText [100, "Hello world"];//for Dialogs
范例2:
_control ctrlSetText "Hello world.";// for Displays

额外资讯

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

注意事项

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

Notes

Posted on 16 Nov, 2011
HomerJohnston
For ArmA2 textured "shortcut" buttons (type = 16), you must use the alternative syntax.

Bottom Section

Advertisement