kansen1/data/plugin/system_subroutine.ks
2023-10-23 17:21:57 -05:00

60 lines
1.4 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

;
; system_subroutine.ks…サブルーチン集
;
;
; 全メッセージレイヤ表画面を非表示にする
;
; 使い方:
; [call storage="system_subroutine.ks" target=*sub_messlayernoshow]
;
; 使用している変数:
; tf.sub_i … ループカウンタ
;
*sub_messlayernoshow
; 全メッセージレイヤ表画面を非表示
[eval exp="tf.sub_i = 0"]
*sub_messlayernoshow_loop0
[layopt layer="&'message'+tf.sub_i" page=fore visible=false]
[jump target=*sub_messlayernoshow_loop0 cond="++tf.sub_i < kag.numMessageLayers"]
[return]
;
; 全前景レイヤ表画面を非表示にする
;
; 使い方:
; [call storage="system_subroutine.ks" target=*sub_fglayernoshow]
;
; 注意事項:
; 前景レイヤの透明度は完全不透明255に変更する
;
; 使用している変数:
; tf.sub_i … ループカウンタ
;
*sub_fglayernoshow
; 全前景レイヤ表画面を非表示
[eval exp="tf.sub_i = 0"]
*sub_fglayernoshow_loop0
[layopt layer="&tf.sub_i" page=fore visible=false opacity=255]
[jump target=*sub_fglayernoshow_loop0 cond="++tf.sub_i < kag.numCharacterLayers"]
[return]
;
; 全メッセージレイヤ表画面、全前景レイヤ表画面を非表示にする
;
; 使い方:
; [call storage="system_subroutine.ks" target=*sub_layernoshow]
;
; 注意事項:
; 前景レイヤの透明度は完全不透明255に変更する
;
; 使用している変数:
; tf.sub_i … ループカウンタ(呼び出し先のサブルーチンで)
;
*sub_layernoshow
[call target=*sub_messlayernoshow]
[call target=*sub_fglayernoshow]
[return]