项目

一般

简介

Dlg img » 历史记录 » 版本 7

tejie, 2025-12-30 13:48

1 5 tejie
h4. _*%{color:green}<img:%*_
2 1 machenhe
3 6 tejie
标签:命令定义^<img:
4 1 machenhe
5
*定义*
6
自定义对话框中设置一张图片
7 2 yangdefeng
参数之间以":"为分割符
8 1 machenhe
9
*使用前提*
10
配置Tejieconfig.txt
11
开启对应开关
12
** 文件位置
13 2 yangdefeng
..\Mir200\Tejieconfig\Tejieconfig.txt
14 1 machenhe
** 对应开关
15
[tjconfig]
16 2 yangdefeng
%{color:lightGrey};(=1时开启,=0时关闭,缺省时关闭)%
17 1 machenhe
isUseCustomOKPanel=1
18
19
-
20
-
21
22
*格式*
23 3 yangdefeng
|命令名|参数1   |参数2|参数3|参数4   |参数5            |参数6   |参数7   |
24
|img   |图片名称|x坐标|y坐标|是否灰显|缩放系数,旋转设置|设定宽度|设定高度|
25 1 machenhe
26
-
27
-
28
29 7 tejie
h4. *说明*
30 1 machenhe
31 7 tejie
|^.参数1|使用的图片资源名称
32
参见 "资源编辑器-TeJieEditor":https://bbs.tejiegm.com/forum.php?mod=viewthread&tid=58&_dsign=aed0201b
33
图片资源如果通过 "资源打包工具-patchBuilder":https://bbs.tejiegm.com/forum.php?mod=viewthread&tid=1113&extra=page%3D1&_dsign=cc630cc5 工具,配置了九宫格信息,则在游戏中,会有九宫格效果。|
34
|^.参数2|图片在自定义对话框中的x坐标|
35
|^.参数3|图片在自定义对话框中的y坐标|
36
|^.参数4|图片是否灰显
37
 -1&nbsp;&nbsp;&nbsp;&nbsp; 表示灰显
38
 非-1&nbsp; 表示正常显示
39
 缺省为非灰显|
40
|^.参数5|缩放系数,旋转设置
41
5.1 图片显示的缩放系数(如2表示图片放大至2倍,如0.5表示图片缩小至一半),缺省为1
42
5.2 旋转设置0-360,表示设置图片水平旋转角度|
43
|参数6|指定图片的显示宽度|
44
|参数7|指定图片的显示高度|
45
|\2.参数6、7缺省时,以图片原始宽高X参数5缩放显示
46
参数6、7非缺省时,以参数6、7为宽高显示图片
47
<notextile></notextile>
48
结尾加"/@跳转标签",可执行跳转
49
<notextile></notextile>
50
参数3、4、5、7后加"<notextile>|</notextile>",点击图片可出现tips
51 1 machenhe
tips格式
52
#配置文字颜色
53 7 tejie
^配置文字换行|
54 1 machenhe
55
-
56
-
57
58 7 tejie
h4. %{color:deepskyblue}特戒引擎脚本示例:%
59 1 machenhe
60 2 yangdefeng
以下示例请配置补丁资源"lc"
61 1 machenhe
即,找到以下配置项,加入 %{color:deeppink}lc%
62 2 yangdefeng
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt|
63 1 machenhe
|配置节点|[tjconfig]|
64
|配置项  |patch=aa,cc,lc|
65
66
67
bq. [@main]
68
#say
69
<img:lc_hongbao_03:20:20>
70
<img:lc_hongbao_03:220:20:-1>
71
<img:lc_hongbao_03:420:20:1:0.7>
72
<img:lc_hongbao_03:620:20:1:2:100:100>
73
74
-
75
-
76
77
bq. [@main]
78
#act
79
mov s$tips |
80 2 yangdefeng
inc s$tips "249# 左侧选择色土一键合成(自动合成)^"
81
inc s$tips "103# 双 色土 成功几率:95% 费用: 2000源^"
82
inc s$tips "103# 三 色土 成功几率:90% 费用: 4000源^"
83
inc s$tips "103# 四 色土 成功几率:80% 费用: 6000源^"
84
inc s$tips "103# 五 色土 成功几率:70% 费用: 8000源^"
85
inc s$tips "103# 六 色土 成功几率:60% 费用: 10000源^"
86 1 machenhe
&nbsp;
87
#say
88
<img:lc_hongbao_03:20:20<$str(s$tips)>>
89
<img:lc_hongbao_03:220:20:-1<$str(s$tips)>>
90
<img:lc_hongbao_03:420:20:1:0.7<$str(s$tips)>>
91
<img:lc_hongbao_03:620:20:1:2:100:100<$str(s$tips)>>
92
93
-
94
-
95
96
bq. [<notextile>@</notextile>main]
97
#say
98
<img:lc_hongbao_03:20:20/<notextile>@</notextile>跳转标签1>
99
<img:lc_hongbao_03:220:20:-1/<notextile>@</notextile>跳转标签2>
100
<img:lc_hongbao_03:420:20:1:0.7/<notextile>@</notextile>跳转标签3>
101
<img:lc_hongbao_03:620:20:1:2:100:100/<notextile>@</notextile>跳转标签4>
102
&nbsp;
103
[<notextile>@</notextile>跳转标签1]
104
#act
105
messageBox 特戒提示,点击了跳转标签1
106
&nbsp;
107
[<notextile>@</notextile>跳转标签2]
108
#act
109
messageBox 特戒提示,点击了跳转标签2
110
&nbsp;
111
[<notextile>@</notextile>跳转标签3]
112
#act
113
messageBox 特戒提示,点击了跳转标签3
114
&nbsp;
115
[<notextile>@</notextile>跳转标签4]
116
#act
117
messageBox 特戒提示,点击了跳转标签4