Skip to content

Instantly share code, notes, and snippets.

View amuhororo's full-sized avatar

hororo amuhororo

View GitHub Profile
@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.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_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 / SaveNG.tyrano.libs.js
Last active November 7, 2018 10:57
セーブNGアラート
$.setStorageWeb = function(key, val) {
val = JSON.stringify(val);
//↓これを変更
//localStorage.setItem(key, escape(val));
try{
localStorage.setItem(key, escape(val));
}catch(domException) {
if (domException.name === 'QuotaExceededError' || domException.name === 'NS_ERROR_DOM_QUOTA_REACHED') {
@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 / tyrano_tag_web.css
Last active January 25, 2018 08:10
公式のタグリファレンスページを私流に見やすくするCSS
body, .navbar-fixed-top, .navbar-fixed-bottom {
min-width: 1px;
}
.container {
width:100%;
}
@media (min-width: 768px) {
.container, .raw {
width: 100%;
}
@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
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};
;プレイ時間表示用ptext
[ptext layer=2 name="playtime" y=640 x=20 color=0xFFFFFF text="0"]
[iscript]
f.playtime = 0;
f.playtime_disp = 0;
TG.stat.is_counting=false;
setInterval(function(){
if(TG.stat.is_counting==true){
@amuhororo
amuhororo / PlayTime_scene1.ks
Last active July 20, 2017 07:01
シナリオスタート時
//スタート
[iscript]
TG.stat.is_counting=true;
[endscript]
//ストップ
[iscript]
TG.stat.is_counting=false;
[endscript]