Skip to content

Instantly share code, notes, and snippets.

View amuhororo's full-sized avatar

hororo amuhororo

View GitHub Profile
@amuhororo
amuhororo / kag.tag.js
Last active August 26, 2020 10:27
[font] タグに nameパラメーターを追加 (v504a)
tyrano.plugin.kag.tag.font = {
pm : {
},
log_join:"true",
start : function(pm) {
@amuhororo
amuhororo / save.html
Last active January 15, 2019 10:13
改造なしで保護・削除するテスト
<div>
<div class='menu_item' style='float:right;'><img class="menu_close" src='tyrano/images/system/menu_button_close.png' /></div>
<div style='clear:both'></div>
<img class="button_arrow_up button_smart" src='tyrano/images/system/arrow_up.png' style='cursor:pointer;left:670px;top:20px;position:absolute;'>
<img class="button_arrow_down button_smart" src='tyrano/images/system/arrow_down.png' style='cursor:pointer;left:760px;top:15px;position:absolute;'>
<div class="area_save_list" style="margin-top:50px;overflow:auto">
@amuhororo
amuhororo / save.html
Last active January 15, 2019 11:11
改造なしで保護・削除するテスト
{{if save_date != ""}}
{{if stat.f}}
{{if stat.f.save_protect==true}}
<div class="save_protect_area"></div>  <!-- save_protect_area は SAVE のみ追記 -->
<span class="save_protect on"></span>
<span class="save_del_off"></span>
{{else}}
<span class="save_protect off"></span>
<span class="save_del"></span>
{{/if}}
@amuhororo
amuhororo / save_protect.css
Last active January 15, 2019 08:33
改造なしで保護・削除するテスト
/* セーブのリセットCSS */
.save_list {
display: block;
table-layout: auto;
width: auto;
height: auto;
border-top: none;
}
.save_list_item {
@amuhororo
amuhororo / save_protect.js
Last active January 15, 2019 10:25
改造なしで保護・削除するテスト
//削除
$(".save_del").click(function(e) {
//セーブデータの順番取得
var num = $(this).parent().attr("data-num");
/* ダイアログの「OK」「Cancel」を変える場合は↓2行追記
$(".remodal").find(".remodal-confirm").html("はい");
$(".remodal").find(".remodal-cancel").html("いいえ");
*/
@amuhororo
amuhororo / save_reset.css
Last active October 23, 2020 12:22
セーブ画面のリセットCSS
/* セーブのリセットCSS */
.area_save_list {
width: auto;
height: auto;
margin: 0;
-webkit-transform: none;
transform: none;
}
.save_list {
@amuhororo
amuhororo / tip.keyconfig.js
Created March 24, 2018 02:06
TIP詳細を右クリックで1段階ずつ閉じる感じ
tyrano.plugin.kag.key_mouse.hidemessage = function() {
if (this.canShowMenu()) {
if ($("#tip_wrap").length) {
$(".tip_close_button").click();
} else if ($(".menu_close").size() > 0 && $(".layer_menu").css("display") != "none") {
$(".menu_close").click();
} else {
if (!this.kag.stat.is_strong_stop) {
if (this.kag.stat.is_hide_message) {
this.kag.layer.showMessageLayers();
@amuhororo
amuhororo / save.html
Last active December 18, 2017 23:01
f変数をセーブ画面に表示する。
{{if stat.f}}
{{if stat.f.test}}
{{:stat.f.test}} <!--※変数-->
{{else}}
データが無い場合 <!--※f.test 変数が無い場合-->
{{/if}}
{{else}}
データが無い場合 <!--※f変数の配列自体が無い場合(初期値)-->
{{/if}}
@amuhororo
amuhororo / novecole.ks
Last active September 3, 2020 10:42
ノベコレバッジ画面をフレキシブルに
;エンブレム取得。
[macro name="give_emblem"]
[iscript]
//--- ▼ ここから追記 -------------------------
var width = parseInt(TG.config.scWidth);
var height = parseInt(TG.config.scHeight);
//--- ▲ ここまで追記 -------------------------
@amuhororo
amuhororo / novecole.ks
Created August 18, 2017 07:23
ノベコレエンブレム不具合対応
;エンブレム取得。
[macro name="give_emblem"]
[iscript]
function give_emb(url,emb_id,pid){
//配置する場所を設定。
if(!mp.width){mp.width=500};
if(!mp.height){mp.height=400};