Last active
May 19, 2016 06:17
-
-
Save amuhororo/3d8ec2e511b3f3b66ddb389609f8e7cc to your computer and use it in GitHub Desktop.
バックログのキャラ名重複問題
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.chara_ptext = { | |
pm: { | |
name: "", | |
face: "" | |
}, | |
start: function(pm) { | |
if (pm.name == "") { | |
$("." + this.kag.stat.chara_ptext).html(""); | |
if (this.kag.stat.chara_talk_focus != "none") $("#tyrano_base").find(".tyrano_chara").css({ | |
"-webkit-filter": this.kag.stat.apply_filter_str, | |
"-ms-filter": this.kag.stat.apply_filter_str, | |
"-moz-filter": this.kag.stat.apply_filter_str | |
}) | |
} else { | |
var cpm = this.kag.stat.charas[pm.name]; | |
if (cpm) { | |
$("." + this.kag.stat.chara_ptext).html(cpm.jname); | |
if (cpm.color != "") $("." + this.kag.stat.chara_ptext).css("color", | |
$.convertColor(cpm.color)); | |
if (this.kag.stat.chara_talk_focus != "none") { | |
$("#tyrano_base").find(".tyrano_chara").css({ | |
"-webkit-filter": this.kag.stat.apply_filter_str, | |
"-ms-filter": this.kag.stat.apply_filter_str, | |
"-moz-filter": this.kag.stat.apply_filter_str | |
}); | |
$("#tyrano_base").find("." + pm.name + ".tyrano_chara").css({ | |
"-webkit-filter": "brightness(100%) blur(0px)", | |
"-ms-filter": "brightness(100%) blur(0px)", | |
"-moz-filter": "brightness(100%) blur(0px)" | |
}) | |
} | |
} else $("." + this.kag.stat.chara_ptext).html(pm.name) | |
} | |
if (pm.face != | |
"") { | |
if (!this.kag.stat.charas[pm.name]["map_face"][pm.face]) { | |
this.kag.error("\u6307\u5b9a\u3055\u308c\u305f\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u300c" + pm.name + "\u300d\u3082\u3057\u304f\u306fface:\u300c" + pm.face + "\u300d\u306f\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u3082\u3046\u4e00\u5ea6\u78ba\u8a8d\u3092\u304a\u9858\u3044\u3057\u307e\u3059"); | |
return | |
} | |
var storage_url = this.kag.stat.charas[pm.name]["map_face"][pm.face]; | |
$("." + pm.name).attr("src", "./data/fgimage/" + storage_url) | |
} | |
//ここから追記 | |
; | |
var chara_name = $.isNull($(".chara_name_area").html()); | |
if (chara_name != "") this.kag.pushBackLog( chara_name ); | |
//追記ここまで | |
this.kag.ftag.nextOrder() | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment