Skip to content

Commit

Permalink
同一キャラクター登場抑止、appのエラー消去
Browse files Browse the repository at this point in the history
  • Loading branch information
ShikemokuMK committed Mar 31, 2016
1 parent 8894790 commit a6e9b7d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
6 changes: 6 additions & 0 deletions data/system/Config.tjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
// "default"を指定すると縦横比の調整は一切行われません
;ScreenRatio = fix;

// 画面をセンタリングするか否か
// false を指定すると画面にセンタリングを行いません。
// アプリ化などでゲーム画面が画面外に出てしまうような場合にfalseを指定すると改善する場合があります。
;ScreenCentering = true;


//-------------------------------------------- ウィンドウや動作の設定 -----

function KAGWindow_config()
Expand Down
2 changes: 1 addition & 1 deletion tyrano/plugins/kag/kag.rider.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tyrano.plugin.kag.rider = {
//ゲームがスタートした時にライダー側に通知する
//alert("complete!");
//riderからの起動かどうかを判定する必要あり
if (window.opener.app) {
if (window.opener && window.opener.app) {
if(window.opener.app.config.user_config.check_debug==true){
TYRANO.kag.is_rider = true;
this.app = window.opener.app;
Expand Down
4 changes: 3 additions & 1 deletion tyrano/plugins/kag/kag.tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -1974,8 +1974,10 @@ tyrano.plugin.kag.tag.ptext = {
演出テキスト
:exp
多彩な演出効果をもったテキストを画面上に表示します。
[layopt layer=0 visible=true]が必要です。
:sample
;デフォルトは前景レイヤは配置されますので表示状態にしておく
[layopt layer=0 visible=true]
[mtext text="演出テキスト" x=100 y=100 in_effect="fadeIn" out_effect="fadeOut"]
:param
layer=対象とするレイヤを指定します。0以上の整数を指定すると対応する前景レイヤに画像を表示します,
Expand Down
7 changes: 7 additions & 0 deletions tyrano/plugins/kag/kag.tag_ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -1404,6 +1404,13 @@ tyrano.plugin.kag.tag.chara_show ={
return;
}

//すでにキャラクターが登場している場合は無視する
var check_obj = $(".layer_fore").find("."+pm.name);
if(check_obj.get(0)){
that.kag.ftag.nextOrder();
return;
}

var storage_url = "./data/fgimage/"+cpm.storage;

if($.isHTTP(cpm.storage)){
Expand Down

0 comments on commit a6e9b7d

Please sign in to comment.