# ▼▲▼ MeLT. プラグインC5 : ヴァリアブルB ▼▲▼ # # #============================================================================== # Window_MenuVariable2 #============================================================================== class Window_MenuVariable2 < Window_Base # # アイコンファイル名 (Icons) # ICON = "skill_026" # # 描画内容 変数ID # VARIABLE_ID = 12 # # 縁取り色 # HEMCOLOR = Color.new(96,48,0,255) #-------------------------------------------------------------------------- # --- ウィンドウスライディングを搭載 --- #-------------------------------------------------------------------------- include XRXS_WindowSliding #-------------------------------------------------------------------------- # ○ オブジェクト初期化 #-------------------------------------------------------------------------- def initialize super(124, 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_pi5_make_windows make_windows def make_windows xrxs_melt_pi5_make_windows @windows.push(Window_MenuVariable2.new) end end