武装突袭 Wiki
Advertisement
Introduced with Arma 3 version 0.74
  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

点击图片可看到更多讯息

开始使用于

游戏:
Arma 3
版本:
0.74

描述

描述:
Sorts childrens of given item by item name (tvText). IDC means id of parent Tree View.
Param reversed is optional.

基本句法

句法:
_ctrl tvSort [ [path], reversed]
参数:
_ctrl: Control
[ [path], reversed]: Array
返回值:
Nothing

范例

范例1:
_ctrl tvSort [ [], false];

额外资讯

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

注意事项

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

Notes

Posted on Sep 11 2014
ffur2007slx2_5
(A3 1.28)tv command family overview //tv command family available for CT_TREE (type 12) private ["_count","_current","_data","_text","_value","_pic"]; _CT_TREE tvAdd [ [],"Parent_A"]; _CT_TREE tvAdd [ [0],"Child_A"]; _CT_TREE tvAdd [ [0,0],"Grandchild_A"]; _CT_TREE tvAdd [ [],"Parent_B"]; _CT_TREE tvAdd [ [1],"Child_B"]; File:WuChaoRen CTTree001.png _count = _CT_TREE tvCount []; //return 2 _CT_TREE tvSetCurSel [0,0,0]; //select grandchild_A File:WuChaoRen CTTree003.png _current = tvCurSel _CT_TREE; //return [0,0,0] _CT_TREE tvSetData [_current,"I'm grandchild_A"]; _data = _CT_TREE tvData _current; // "I'm grandchild_A" _text = _CT_TREE tvText _current; //"Grandchild_A" _CT_TREE tvSetValue [_current,14]; _value = _CT_TREE tvValue _current; // 14 _CT_TREE tvSetPicture [_current,getText (configFile >> "CfgWeapons" >> "optic_NVS" >> "picture")]; _pic = _CT_TREE tvPicture _current; File:WuChaoRen CTTree004.png _CT_TREE tvExpand [1]; File:WuChaoRen CTTree005.png _CT_TREE tvSort [[],false ]; _CT_TREE tvSortByValue [[],false ]; File:WuChaoRen CTTree006.png _CT_TREE tvDelete [0,0]; //remove child_b tvClear 12; _CT_TREE tvCollapse []; File:WuChaoRen CTTree002.png

Bottom Section

Advertisement