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
if(mp.line==null) mp.line = "nextpage.gif"; | |
$("#glyph_image").remove(); | |
var j_layer=TG.layer.getLayer("message0"); | |
var j_next=$("<img id='glyph_image' />"); | |
j_next.attr("src","./tyrano/images/kag/"+mp.line); | |
j_next.css("display","none"); | |
if(mp.fix=="true"){ | |
j_next.css("position","absolute"); | |
j_next.css("top",mp.top+"px"); | |
j_next.css("left",mp.left+"px"); |
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.p = { | |
cw: true, | |
start: function() { | |
var that = this; | |
this.kag.pushBackLog("<br><br>"); //←コレを追加 | |
this.kag.stat.flag_ref_page = true; | |
if (this.kag.stat.is_skip == true) this.kag.ftag.nextOrder(); | |
else if (this.kag.stat.is_auto == true) { | |
this.kag.stat.is_wait_auto = true; | |
setTimeout(function() { |
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
[macro name=log_br] | |
[iscript] | |
TG.pushBackLog("<br>"); | |
[endscript] | |
[endmacro] |
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, |
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
showMessage: function(message_str) { | |
var that = this; | |
// ここから | |
//var chara_name = $.isNull($(".chara_name_area").html()); | |
//if (chara_name != "") this.kag.pushBackLog("<b>" + chara_name + "</b>\uff1a" + message_str); | |
//else this.kag.pushBackLog(message_str); | |
// ここまでいらない。 |
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
var mousewheelevent = 'onwheel' in document ? 'wheel' : 'onmousewheel' in document ? 'mousewheel' : 'DOMMouseScroll'; | |
$(document).on(mousewheelevent,function(e){ | |
if ( TG.config.vertical == "true" ){ | |
var num = $(".log_body").scrollLeft(); | |
e.preventDefault(); | |
var delta = e.originalEvent.deltaY ? -(e.originalEvent.deltaY) : e.originalEvent.wheelDelta ? e.originalEvent.wheelDelta : -(e.originalEvent.detail); | |
if (delta < 0){ | |
var num = num - 100; | |
$(".log_body").scrollLeft(num); | |
} else { |
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
[iscript] | |
tyrano.plugin.kag.menu.displaySave = function() { | |
//セーブ画面作成 | |
var that = this; | |
this.kag.stat.is_skip = false; | |
var array_save = that.getSaveData(); |
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
<div> | |
<ul class='save_list'> | |
{{for array_save}} | |
<li class='save_list_item'> | |
<div> | |
{{if save_date != ""}} | |
<span class="save_protect" style="border:1px solid #333" data-num='{{:num}}'>{{if protect == "true"}}☑{{else}}□{{/if}}保護</span> | |
<span class="save_del" style="border:1px solid #333" data-num='{{:num}}'>削除</span> | |
{{/if}} |
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
doSave : function(num) { | |
var array_save = this.getSaveData(); | |
var data = {}; | |
var that = this; | |
if (this.snap == null) { | |
//ここはサムネイルイメージ作成のため、callback指定する | |
this.snapSave(this.kag.stat.current_message_str, function() { |