#============================================================================== # ■ RGSS3 パーティコマンドウィンドウサブテキスト Ver1.00 by 星潟 #------------------------------------------------------------------------------ # パーティコマンド表示中に、補助テキストを表示できるウィンドウを表示します。 # あくまでパーティコマンド表示中かつ選択中のみ表示され # パーティコマンドの選択が終了し次第閉じられます。 # 特殊なパーティコマンド処理が存在するゲームの操作方法表示用にでもどうぞ。 #============================================================================== module PTSTW #ウィンドウの矩形を設定。 #X座標、Y座標、幅、高さの順に指定します。 R = [0,0,204,72] #ウィンドウ内に表示するテキストを指定。 #制御文字を使用可能。(ただし、\C[0]等の\を\\と2つ記入する必要があります) #また、\nをいれれば改行されます。 T = "\\C[1]あい\\C[2]うえ\\C[3]お\nか\\C[4]きく\\C[9]けこ" #ウィンドウの透過度を指定。 O = 255 end class Window_PartyCommand < Window_Command #-------------------------------------------------------------------------- # 初期化 #-------------------------------------------------------------------------- alias initialize_ptst initialize unless $! def initialize initialize_ptst @ptst_window = Window_PTST.new(self) end #-------------------------------------------------------------------------- # 更新 #-------------------------------------------------------------------------- alias update_ptst update unless $! def update update_ptst @ptst_window.update end #-------------------------------------------------------------------------- # 解放 #-------------------------------------------------------------------------- alias dispose_ptst dispose unless $! def dispose @ptst_window.dispose dispose_ptst end end class Window_PTST < Window_Base #-------------------------------------------------------------------------- # 初期化 #-------------------------------------------------------------------------- def initialize(w) r = PTSTW::R super(r[0],r[1],r[2],r[3]) @wpc = w draw_text_ex(0,0,PTSTW::T) self.openness = 0 self.opacity = PTSTW::O end #-------------------------------------------------------------------------- # 更新 #-------------------------------------------------------------------------- def update super @wpc.open? && @wpc.active ? open : close end end