Skip to content

Commit

Permalink
新增hook:hide-nametag
Browse files Browse the repository at this point in the history
  • Loading branch information
boybook committed Feb 4, 2024
1 parent 93e6357 commit 833c4ae
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
14 changes: 14 additions & 0 deletions ecnpc/hook.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,20 @@
"points"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"const": "hide-nametag",
"description": "对于中国版,默认隐藏NPC的名字标签,在玩家准心放在NPC上时显示"
},
"distance": {
"type": "number",
"description": "显示后,再次隐藏距离,默认10",
"default": 10
}
}
}
]
}
Expand Down
20 changes: 16 additions & 4 deletions playeraction/playeraction.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
"properties": {
"type": {
"const": "form.cdkey",
"description": ""
"description": "打开CDKey界面"
}
},
"required": [
Expand All @@ -172,7 +172,7 @@
"properties": {
"type": {
"const": "form.player-service",
"description": ""
"description": "打开玩家服务UI"
}
},
"required": [
Expand All @@ -184,7 +184,7 @@
"properties": {
"type": {
"const": "form.mail",
"description": ""
"description": "打开邮箱系统UI"
}
},
"required": [
Expand All @@ -196,7 +196,19 @@
"properties": {
"type": {
"const": "form.sign-in",
"description": ""
"description": "打开签到UI"
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"const": "ui.vip",
"description": "打开VIP界面"
}
},
"required": [
Expand Down

0 comments on commit 833c4ae

Please sign in to comment.