

点击图片可看到更多讯息
开始使用于
- 游戏:
- 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
替代句法
范例
- 范例1:
ctrlSetText [100, "Hello world"];//for Dialogs
- 范例2:
_control ctrlSetText "Hello world.";// for Displays
额外资讯
- 多人游戏:
- -
- 也可以看看:
- ctrlText
注意事项
Notes
- Posted on 16 Nov, 2011
- HomerJohnston
- For ArmA2 textured "shortcut" buttons (type = 16), you must use the alternative syntax.