点击图片可看到更多讯息
开始使用于
- 游戏:
- Arma 3
- 版本:
- 1.26
描述
- 描述:
- Creates new control in given display.
基本句法
- 句法:
- display ctrlCreate [class, idc, controlsGroup]
- 参数:
- display : Display
- class: String - Existing classname (see ctrlCreate/classnames) of the new control (currently only configFile classes are supported)
- idc: Number - IDC of the new control
- controlsGroup: Control - (Optional) Since Arma 3 v1.33.127680, it is possible to create controls in existing controls groups.
- 返回值:
- Control
范例
- 范例1:
_display ctrlCreate ["RscText", 1234];
- 范例2:
_map = findDisplay 46 ctrlCreate ["RscMapControl", -1];
- 范例3:
myControl = findDisplay 0 ctrlCreate ["RscText", 1234, findDisplay 0 displayCtrl 2300];
额外资讯
- 多人游戏:
- -
- 也可以看看:
- allControlsallDisplayscontrolsGroupCtrlctrlDeletectrlModelctrlSetModelctrlPositionctrlSetPositionctrlClassNamectrlModelScalectrlSetModelScalectrlModelDirAndUpctrlSetModelDirAndUpdisplayParent
注意事项
Notes
Bottom Section
- Posted on December 30, 2015 - 01:48 (UTC)
- Molaron
- "RscListBox" created via ctrlCreate is buggy, you can only select the first seven items.
- Posted on February 6, 2016 - 20:58 (UTC)
- DreadedEntity
- Although you can only dynamically create controls using BIS's configs, there are many commands to change certain aspects of each created control. See GUI Control