- 支持核心
- paper spigot purpur
- 原创/转载
- 原创
- 作者
- Moo_OvO
- 前置
- ArcartxPlugin
- 支持版本
- 1.8+以上版本
sign-reload 重载配置
sign-open [name] 打开某个签到
sign-open [name] 打开某个签到
YAML:
ui:
match: []
hide: []
transfer: false
through: false
escClose: true
background: true
closeDied: false
show: true
packetHandler:
initKey: |-
var.key = packet['key']
var.name = packet['name']
var.day = packet['day']
failed: |-
Chat.say("活动结束")
close: |-
var.closed = true
async {
Thread.sleep(500)
self.close()
}
Chat.say("签到完成")
controls:
main:
val: "sign"
type: adaptive
attribute:
point: ~middle_center
width: "1920"
height: "1080"
children:
bq:
type: texture
attribute:
point: ~middle_center
width: 1000
height: 500
normal: ~AxSign/background.png
children:
title:
type: text
attribute:
x: 500
y: 28
center: true
fontSize: 120
texts:
- ~&7&lAxSign
subtitle:
type: "Text"
attribute:
x: 500
y: 100
center: true
fontSize: 60
texts:
- "var.name"
1_day:
type: texture
attribute:
x: 100
y: 135
width: 80
height: 330
normal: ~AxSign/1.png
fontSize: 100
1_button:
val: "Button_1"
type: texture
attribute:
visible: var.day == 1
x: 110
y: 370
width: 60
height: 40
normal: ~AxSign/button.png
hover: ~AxSign/button_.png
fontSize: 50
action:
click: |-
if(var.closed){
return
}
Packet.send('sign',var.key)
2_day:
type: texture
attribute:
x: 200
y: 135
width: 80
height: 330
normal: ~AxSign/2.png
fontSize: 100
2_button:
val: "Button_2"
type: texture
attribute:
visible: var.day == 2
x: 210
y: 370
width: 60
height: 40
normal: ~AxSign/button.png
hover: ~AxSign/button_.png
fontSize: 50
action:
click: |-
if(var.closed){
return
}
Packet.send('sign',var.key)
3_day:
type: texture
attribute:
x: 300
y: 135
width: 80
height: 330
normal: ~AxSign/3.png
fontSize: 100
3_button:
val: "Button_3"
type: texture
attribute:
visible: var.day == 3
x: 310
y: 370
width: 60
height: 40
normal: ~AxSign/button.png
hover: ~AxSign/button_.png
fontSize: 50
action:
click: |-
if(var.closed){
return
}
Packet.send('sign',var.key)
4_day:
type: texture
attribute:
x: 400
y: 135
width: 80
height: 330
normal: ~AxSign/4.png
fontSize: 100
4_button:
val: "Button_4"
type: texture
attribute:
visible: var.day == 4
x: 410
y: 370
width: 60
height: 40
normal: ~AxSign/button.png
hover: ~AxSign/button_.png
fontSize: 50
action:
click: |-
if(var.closed){
return
}
Packet.send('sign',var.key)
5_day:
type: texture
attribute:
x: 500
y: 135
width: 80
height: 330
normal: ~AxSign/5.png
fontSize: 100
5_button:
val: "Button_7"
type: texture
attribute:
visible: var.day == 5
x: 510
y: 370
width: 60
height: 40
normal: ~AxSign/button.png
hover: ~AxSign/button_.png
fontSize: 50
action:
click: |-
if(var.closed){
return
}
Packet.send('sign',var.key)
6_day:
type: texture
attribute:
x: 600
y: 135
width: 80
height: 330
normal: ~AxSign/6.png
fontSize: 100
6_button:
val: "Button_6"
type: texture
attribute:
visible: var.day == 6
x: 610
y: 370
width: 60
height: 40
normal: ~AxSign/button.png
hover: ~AxSign/button_.png
fontSize: 50
action:
click: |-
if(var.closed){
return
}
Packet.send('sign',var.key)
7_day:
type: texture
attribute:
x: 700
y: 135
width: 80
height: 330
normal: ~AxSign/7.png
fontSize: 100
7_button:
val: "Button_7"
type: texture
attribute:
visible: var.day == 7
x: 710
y: 370
width: 60
height: 40
normal: ~AxSign/button.png
hover: ~AxSign/button_.png
fontSize: 50
action:
click: |-
if(var.closed){
return
}
Packet.send('sign',var.key)