项目

一般

简介

RefreshItem » 历史记录 » 版本 5

tejie, 2025-10-11 17:34

1 3 tejie
h4. _*{color:green}refreshItem*_
2 5 tejie
3 1 yangdefeng
单元组列表指定单元刷新
4
支持以下单元组列表
5
[[dlg_itemList_|itemList]]
6
[[dlg_itemGrid_|itemGrid]]
7
[[dlg_iconGrid_|iconGrid]]
8 5 tejie
[[dlg_circleList_|circleList]]
9 1 yangdefeng
10 5 tejie
标签:命令定义^refreshItem
11 1 yangdefeng
12
*格式*
13
|_.命令名    |_.参数1 |_.参数2     |_.参数3     |_.参数4 |
14
|refreshItem |列表名称|刷新单元序号|刷新单元内容|刷新位置|
15
16
-
17
-
18
19
*说明*
20 4 tejie
|参数1|刷新列表名称|
21
|参数2|刷新单元序号|
22
|参数3|刷新单元内容|
23
|^.参数4|刷新位置
24
缺省 当前位置
25
0     当前位置
26
1     列表最前
27
2     列表最后|
28 1 yangdefeng
29
-
30
-
31
32 2 tejie
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
33 1 yangdefeng
34
*使用前提1*
35
请开启配置开关\"isUseCustomOKPanel\"
36
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
37
|配置节点|[tjconfig]					|
38
|配置项  |isUseCustomOkPanel=1				|
39
40
41
*使用前提2*
42
请配置补丁资源\"lc\",即找到以下配置项,加入 %{color:deeppink}lc%
43
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
44
|配置节点|[tjconfig]					|
45
|配置项  |patch=aa,bb,lc				|
46
47
-
48
-
49
50
bq. [@item初始化]
51
#act
52
[[mov]] s$活动名称 特戒天魔降临
53
mov s$item1 
54
[[inc]] s$item1 (
55
inc s$item1 <[[dlg_itemIndex_|itemIndex]]:1>
56
inc s$item1 <[[dlg_img_|img]]:zd_7_5:0:0:1:2.5>
57
inc s$item1 <[[dlg_itemShow_|itemShow]]:4:0:350:80:1:0>
58
inc s$item1 <[[dlg_text_|text]]:<$str(s$活动名称)>{scolor=150}:30:40>    
59
inc s$item1 <text:奖励预览:340:40>
60
inc s$item1 <text:开启时间:30:100>
61
inc s$item1 <text:~~~10:00-11:00~~~:160:100>
62
inc s$item1 <text:开启条件:30:160>
63
inc s$item1 <text:60级:160:160>
64
inc s$item1 <text:击杀天外魔君,想要奖励就来找我{scolor=248}:30:240>
65
inc s$item1 )
66
&nbsp;
67
mov s$item2 
68
inc s$item2 (
69
inc s$item2 <itemIndex:2>
70
inc s$item2 <img:zd_7_5:0:0:1:2.5>
71
inc s$item2 <itemShow:4:0:350:80:1:0>
72
inc s$item2 <text:<$str(s$活动名称)>{scolor=150}:30:40>    
73
inc s$item2 <text:奖励预览:340:40>
74
inc s$item2 <text:开启时间:30:100>
75
inc s$item2 <text:~~~10:00-11:00~~~:160:100>
76
inc s$item2 <text:开启条件:30:160>
77
inc s$item2 <text:60级:160:160>
78
inc s$item2 <text:击杀天外魔君,想要奖励就来找我{scolor=248}:30:240>
79
inc s$item2 )
80
&nbsp;
81
mov s$活动列表
82
inc s$活动列表 s$item1
83
inc s$活动列表 s$item2
84
&nbsp;
85
[<notextile>@</notextile>main]
86
#act
87
goto <notextile>@</notextile>item初始化
88
[[openMerchantBigDlg]] ok_di 0 0 0 1 0 0
89
#say
90 2 tejie
<[[dlg_panelSize_|panelSize2]]:1000:700>\
91 1 yangdefeng
<[[dlg_itemGrid_|itemGrid]]:<$str(s$活动列表)>:特戒日常,1,0,1:0:0:500,270:1,2,270,0:0>\
92
<text:刷新:100:300/<notextile>@@</notextile>inputString1(请输入刷新的活动名称)>\
93
<text:点击刷新按钮,可刷新活动1名称{scolor=254}:30:350>\
94
&nbsp;
95
[<notextile>@</notextile>inputString1]
96
#act
97
[[ansiReplaceText]] s$item1 s$活动名称 s1
98
mov s$活动名称 <$str(s1)>
99
*{color:green}refreshItem* 特戒日常 1 s$item1 0
100
[[messageBox]] 活动1的名称刷新完毕