Last active
August 26, 2020 10:27
-
-
Save amuhororo/904da4d8705ef79fec942f22f6df0de0 to your computer and use it in GitHub Desktop.
[font] タグに nameパラメーターを追加 (v504a)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tyrano.plugin.kag.tag.font = { | |
pm : { | |
}, | |
log_join:"true", | |
start : function(pm) { | |
this.kag.setMessageCurrentSpan(); | |
var new_font = {}; | |
if (pm.size) { | |
this.kag.stat.font.size = pm.size; | |
} | |
if (pm.color) { | |
this.kag.stat.font.color = $.convertColor(pm.color); | |
} | |
if (pm.bold) { | |
this.kag.stat.font.bold = $.convertBold(pm.bold); | |
} | |
if (pm.face) { | |
this.kag.stat.font.face = pm.face; | |
} | |
if (pm.italic){ | |
this.kag.stat.font["italic"] = $.convertItalic(pm.italic); | |
} | |
if (pm.edge) { | |
if(pm.edge=="none" || pm.edge==""){ | |
this.kag.stat.font.edge = ""; | |
}else{ | |
this.kag.stat.font.edge = $.convertColor(pm.edge); | |
} | |
} | |
if (pm.shadow) { | |
if(pm.shadow=="none" || pm.shadow==""){ | |
this.kag.stat.font.shadow = ""; | |
}else{ | |
this.kag.stat.font.shadow = $.convertColor(pm.shadow); | |
} | |
} | |
//** 追加 **// | |
$.setName(this.kag.setMessageCurrentSpan(), pm.name); | |
//** 追加ここまで **// | |
this.kag.ftag.nextOrder(); | |
/////////////////// | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment