mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-02-10 23:53:34 +08:00
Renamed styles
This commit is contained in:
parent
afa0b5bab2
commit
f3a2ddc076
@ -29,7 +29,7 @@ Vue.component('message', {
|
|||||||
return `<span style="color: rgb(${this.color[0]}, ${this.color[1]}, ${this.color[2]})">${str}</span>`
|
return `<span style="color: rgb(${this.color[0]}, ${this.color[1]}, ${this.color[2]})">${str}</span>`
|
||||||
},
|
},
|
||||||
colorize(str) {
|
colorize(str) {
|
||||||
const s = "<span>" + (str.replace(/\^([0-9]+)([busr])|\^([0-9]+)|\^([busr])/g,
|
const s = "<span>" + (str.replace(/\^([0-9]+)([\*\_\~r])|\^([0-9]+)|\^([\*\_\~r])/g,
|
||||||
(match, color1, style1, color2, style2) => {
|
(match, color1, style1, color2, style2) => {
|
||||||
const color = (color1 || color2) ? `color-${color1 || color2} ` : '';
|
const color = (color1 || color2) ? `color-${color1 || color2} ` : '';
|
||||||
const style = (style1 || style2) ? `style-${style1 || style2} ` : '';
|
const style = (style1 || style2) ? `style-${style1 || style2} ` : '';
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
.color-8{color: #cc0000;}
|
.color-8{color: #cc0000;}
|
||||||
.color-9{color: #cc0068;}
|
.color-9{color: #cc0068;}
|
||||||
|
|
||||||
.style-b{font-weight: bold;}
|
.style-\*{font-weight: bold;}
|
||||||
.style-u{text-decoration: underline;}
|
.style-\_{text-decoration: underline;}
|
||||||
.style-s{text-decoration: line-through;}
|
.style-\~{text-decoration: line-through;}
|
||||||
.style-r {
|
.style-r {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
Loading…
Reference in New Issue
Block a user