武装突袭 Wiki
注册
Advertisement
Introduced with Arma 3 version 0.74
  

点击图片可看到更多讯息

开始使用于

游戏:
Arma 3
版本:
0.74

描述

描述:
Returns shown text in the item on given path. IDC means id of parent Tree View.

基本句法

句法:
tvText [idc, path]
参数:
[idc, path]: Array
idc: Number
path: Array - Array containing numbers.
返回值:
String

替代句法

句法:
control tvText path
参数:
control: Control
path: Array of Number
返回值:
String

范例

范例1:
tvText [101, [0]];
范例2:
_ctrl tvText [0,0,0];

额外资讯

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

注意事项

此处撰写句法皆为可行用法. 可到官网[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