Skip to content

Commit

Permalink
link選択肢中はメッセージウィンドウを消せないように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
ShikemokuMK committed Jul 25, 2021
1 parent a54dba3 commit ad80b80
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
6 changes: 1 addition & 5 deletions tyrano/plugins/kag/kag.key_mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,7 @@ tyrano.plugin.kag.key_mouse = {
}

layer_obj_click.click(function(e){
// POSSIBLE IMPROVE
// make "isReturn" variable
// and do all if statements
// then do "if (isReturn) return;"


if(that.kag.tmp.ready_audio==false){

if($.isNeedClickAudio()){
Expand Down
5 changes: 5 additions & 0 deletions tyrano/plugins/kag/kag.layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ tyrano.plugin.kag.layer ={
//メッセージレイヤの消去
hideMessageLayers:function(){

//link表示中はダメ。
if(this.kag.stat.display_link==true){
return false;
}

this.kag.stat.is_hide_message = true ;

var num_message_layer = parseInt(this.kag.config.numMessageLayers);
Expand Down
12 changes: 7 additions & 5 deletions tyrano/plugins/kag/kag.tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -2762,12 +2762,12 @@ tyrano.plugin.kag.tag.link = {
start : function(pm) {

var that = this;

//this.kag.stat.set_text_span = true;

//即時にスパンを設定しないとダメねw

//即時にスパンを設定しないとダメね
var j_span = this.kag.setMessageCurrentSpan();


that.kag.stat.display_link = true;

j_span.css("cursor", "pointer");

(function() {
Expand Down Expand Up @@ -2799,6 +2799,8 @@ tyrano.plugin.kag.tag.link = {

j_span.bind('click touchstart', function(e) {

that.kag.stat.display_link = false;

//ここから書き始める。イベントがあった場合の処理ですね ジャンプで飛び出す
TYRANO.kag.ftag.nextOrderWithLabel(_target, _storage);
TYRANO.kag.layer.showEventLayer();
Expand Down

0 comments on commit ad80b80

Please sign in to comment.