Functions:
# 首先界面打开时,会自动触发open方法,然后读取yml的值并保存为界面变量
# 然后开始异步执行方法,为什么要异步?是因为只有在异步方法里才可以用延时方法
open: |-
界面变量.计数 = 0;
界面变量.循环 = 0;
界面变量.文本=方法.合并文本('reward',方法.到整数(界面变量.计数),'_texture');
loop(43,{
方法.设置组件值(界面变量.组件1,'texture',方法.取yaml值(方法.到整数(界面变量.计数)));
方法.添加组件(界面变量.组件1,'');
界面变量.计数=界面变量.计数+1;
});
方法.异步执行方法('move');
move: |-
界面变量.计数=0;
loop(43,{
界面变量.文本=方法.合并文本('reward',方法.到整数(界面变量.计数),'_texture');
方法.设置组件值(界面变量.文本,'x', 方法.取组件值(界面变量.文本,'x')-30);
界面变量.计数=界面变量.计数+1;
});
方法.延时(方法.取yaml值(方法.合并文本('timeset',方法.到整数(界面变量.循环))));
界面变量.循环 = 界面变量.循环+1;
(界面变量.循环<=42) ? {方法.异步执行方法('move');}:-1;
# 模式 csgo需要amount为1
model: csgo
# amount 在model为free时读取
amount: 2 # 1就是抽一次
# 选取的奖池
lottery: 1
# 此抽奖奖励是否储存在抽奖的背包中
save: false
# time 毫秒单位 1s = 1000ms
# 几个奖励就配置几个
# 0-42为43个奖励
time:
enable: true
set:
0: 100
1: 100
2: 100
3: 100
4: 100
5: 100
6: 100
7: 100
8: 100
9: 100
10: 100
11: 100
12: 100
13: 100
14: 100
15: 100
16: 100
17: 150
18: 150
19: 150
20: 150
21: 150
22: 150
23: 150
24: 150
25: 150
26: 150
27: 150
28: 150
29: 150
30: 150
31: 200
32: 200
33: 200
34: 200
35: 200
36: 200
37: 200
38: 200
39: 200
40: 250
41: 300
42: 350
# 头顶是否弹出奖励图片
emoji:
enable: false
x: 0
y: 1
z: 0
w: 1
h: 1
time: 10 # 多久后消失 20 = 1s
# 延迟出现 原神不是有个先播放一段gif然后抽奖的 这个就是
delay:
enable: false
gif: "" # 必须填写gif图的url链接
name: "测试" # name是下载gif时的命名同时也是需要在DragonCore/Gui中新建的测试.yml文件的名
# base设置 删除也行 enable写false不启用也行
base:
enable: false
# 开启take时 当设置了50抽和100抽保底时 如果50抽前抽到了50抽的保底物品
# 那么第100抽就会 (100-50)/100的概率
# 保底机制备注 无论保底前是否抽到保底物品,保底次数到达时都会抽到保底物品
take: false
set:
# 此奖池抽取50次时 会从1.yml中获取指定奖品设置给玩家
# 需要保证在lottery指定的奖池中有所指定的奖励
12: "2"
100: "奖品2"
condition:
# - vault:100 # 会扣除
# - point:1 # 会扣除
# - material:name:10 # 会扣除
# - papi:%papi%:>=:10 # 不会扣除 仅作为判断条件
# csgo模式下的必须拥有的配置
# csgo.amount为总共抽取多少个奖励 这个时候上面的amount为无效配置
# csgo.rewar为抽取的奖励的序号 我安排1-43中的第41个
csgo:
amount: 43
reward: 41
# 龙核界面
背包背景_texture:
x: "界面变量.x"
y: "界面变量.y"
alpha: "方法.取界面存活时间/700"
width: "518"
height: "248"
texture: "UI/背景层最新36.png"
# 奖励
reward0_texture:
x: "界面变量.x+58.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward1_texture:
x: "界面变量.x+28.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward2_texture:
x: "界面变量.x+108.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward3_texture:
x: "界面变量.x+158.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward4_texture:
x: "界面变量.x+208.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward5_texture:
x: "界面变量.x+258.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward6_texture:
x: "界面变量.x+308.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward7_texture:
x: "界面变量.x+358.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward8_texture:
x: "界面变量.x+408.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward9_texture:
x: "界面变量.x+458.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward10_texture:
x: "界面变量.x+508.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward11_texture:
x: "界面变量.x+558.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward12_texture:
x: "界面变量.x+608.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward13_texture:
x: "界面变量.x+658.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward14_texture:
x: "界面变量.x+708.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward15_texture:
x: "界面变量.x+758.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward16_texture:
x: "界面变量.x+808.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward17_texture:
x: "界面变量.x+858.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward18_texture:
x: "界面变量.x+908.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward19_texture:
x: "界面变量.x+958.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward20_texture:
x: "界面变量.x+1008.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward21_texture:
x: "界面变量.x+1058.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward22_texture:
x: "界面变量.x+1108.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward23_texture:
x: "界面变量.x+1158.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward24_texture:
x: "界面变量.x+1208.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward25_texture:
x: "界面变量.x+1258.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward26_texture:
x: "界面变量.x+1308.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward27_texture:
x: "界面变量.x+1358.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward28_texture:
x: "界面变量.x+1408.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward29_texture:
x: "界面变量.x+1458.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward30_texture:
x: "界面变量.x+1508.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward31_texture:
x: "界面变量.x+1558.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward32_texture:
x: "界面变量.x+1608.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward33_texture:
x: "界面变量.x+1658.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward34_texture:
x: "界面变量.x+1708.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward35_texture:
x: "界面变量.x+1758.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward36_texture:
x: "界面变量.x+1808.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward37_texture:
x: "界面变量.x+1858.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward38_texture:
x: "界面变量.x+1908.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward39_texture:
x: "界面变量.x+1958.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward40_texture:
x: "界面变量.x+2008.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"
reward41_texture:
x: "界面变量.x+2058.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: ""
reward42_texture:
x: "界面变量.x+2108.5"
y: "界面变量.y+110"
alpha: "方法.取界面存活时间/700"
width: "50"
height: "50"
texture: "/UI/覆盖.png"