Add source code link hover to about, make hover texts compatible with 20w14i

This commit is contained in:
7cc5c4f330d47060 2024-07-31 16:08:04 -04:00
parent 1cab040f8d
commit e2f1d7da43
2 changed files with 13 additions and 1 deletions

View file

@ -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: '' })

View file

@ -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: {