# ▼▲▼ MeLT. プラグインC4 : ヴァリアブルA ▼▲▼ # # #============================================================================== # Window_MenuVariable1 #============================================================================== class Window_MenuVariable1 < Window_Base # # アイコンファイル名 (Icons) # ICON = "skill_025" # # 描画内容 変数ID # VARIABLE_ID = 11 # # 縁取り色 # HEMCOLOR = Color.new(96,48,0,255) #-------------------------------------------------------------------------- # --- ウィンドウスライディングを搭載 --- #-------------------------------------------------------------------------- include XRXS_WindowSliding #-------------------------------------------------------------------------- # ○ オブジェクト初期化 #-------------------------------------------------------------------------- def initialize super(-32, 436, 140, 56) self.opacity = 0 self.contents = Bitmap.new(width - 32, height - 32) self.contents.font.color = normal_color self.contents.font.size = 21 refresh end #-------------------------------------------------------------------------- # ○ リフレッシュ #-------------------------------------------------------------------------- def refresh self.contents.clear icon = RPG::Cache.icon(ICON) self.contents.blt(0,0,icon,icon.rect) self.contents.draw_hemming_text(24, 0, 80, 24, $game_variables[VARIABLE_ID].to_s, 2, HEMCOLOR) end end #============================================================================== # --- メニューレイアウト 拡張定義 --- #============================================================================== class Scene_Menu alias xrxs_melt_pi4_make_windows make_windows def make_windows xrxs_melt_pi4_make_windows @windows.push(Window_MenuVariable1.new) end end