Add source code link hover to about, make hover texts compatible with 20w14i
This commit is contained in:
parent
1cab040f8d
commit
e2f1d7da43
2 changed files with 13 additions and 1 deletions
|
@ -74,8 +74,17 @@ module.exports = {
|
|||
clickEvent: {
|
||||
action: 'open_url',
|
||||
value: version.sourceURL
|
||||
},
|
||||
hoverEvent: {
|
||||
action: 'show_text',
|
||||
contents: {
|
||||
text: getMessage(c.lang, 'command.about.sourceCode.openInBrowser')
|
||||
},
|
||||
value: { // Added twice for backwards compatibility
|
||||
text: getMessage(c.lang, 'command.about.sourceCode.openInBrowser')
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
]
|
||||
})
|
||||
c.reply({ text: '' })
|
||||
|
|
|
@ -22,6 +22,9 @@ const gr = function (l, text, value, color) {
|
|||
action: 'show_text',
|
||||
contents: {
|
||||
text: getMessage(l, 'copyText')
|
||||
},
|
||||
value: { // Added twice for backwards compatibility
|
||||
text: getMessage(l, 'copyText')
|
||||
}
|
||||
},
|
||||
clickEvent: {
|
||||
|
|
Loading…
Reference in a new issue