项目

一般

简介

SetUpgradeItem » 历史记录 » 版本 14

yangdefeng, 2022-05-21 12:03

1 6 yangdefeng
h4. _*%{color:green}setUpgradeItem%*_
2 7 yangdefeng
3 13 yangdefeng
对话框中有多个[[dlg_itemBox_|itemBox]]时,用于关联itemBox的id,
4 6 yangdefeng
关联后对自定义道具栏(-1)操作时,目标为上述关联道具栏中的对象。
5 1 machenhe
6
标签:命令定义|setUpgradeItem
7
8
*格式*
9
|命令名		|参数1		|
10 6 yangdefeng
|setUpgradeItem	|itemBox编号	|
11 1 machenhe
12
说明:
13 6 yangdefeng
* 参数1: itemBox编号
14 1 machenhe
15 10 yangdefeng
-
16
-
17
18 5 yangdefeng
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
19 1 machenhe
20 14 yangdefeng
-
21
-
22
23 1 machenhe
bq. [<notextile>@</notextile>main]
24
#say
25 8 yangdefeng
<[[dlg_itemBox_|itemBox]]:0:-1:-1:25:15:-1:-1:*:tips>
26
<itemBox:1:-1:-1:200:15:-1:-1:*:tips>
27 5 yangdefeng
\ \ \ \<左边格子内道具名称设置为蓝色/<notextile>@</notextile>关联(0)>
28
\ \<右边格子内道具名称设置为绿色/<notextile>@</notextile>关联(1)>
29
&nbsp;
30
[<notextile>@</notextile>关联]
31 1 machenhe
#act
32 9 yangdefeng
*{color:green}setUpgradeItem* [[CheckScriptParam|<$scriptParam1>]]
33 5 yangdefeng
&nbsp;
34
#if
35
[[equal]] <$scriptParam1> 0
36
#act
37
[[changeItemNameColor]] -1 254
38
&nbsp;
39
#if
40
equal <$scriptParam1> 1
41
#act
42
changeItemNameColor -1 222
43
&nbsp;
44
#if
45
#act
46
[[updateBoxItem]] <$scriptParam1>
47
[[messageBox]] 名字颜色修改完毕