# ▼▲▼ MeLT. プラグインC8 : マップネームサイドバー ▼▲▼ # # #============================================================================== # Window_MenuMapName #============================================================================== class Window_MenuMapName < Window_Base # # サイドバースキン (Windowskin) # SIDE_BAR = "MenuSideBar" # # 縁取り色 # HEMCOLOR = Color.new(96,96,0,255) #-------------------------------------------------------------------------- # --- ウィンドウスライディングを搭載 --- #-------------------------------------------------------------------------- include XRXS_WindowSliding #-------------------------------------------------------------------------- # ○ オブジェクト初期化 #-------------------------------------------------------------------------- def initialize super(368, 400, 320, 64) @slide_x_speed = -8 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 bitmap = RPG::Cache.windowskin(SIDE_BAR) self.contents.blt(0,0, bitmap, bitmap.rect) self.contents.draw_hemming_text(16, 0, 256, 28, $game_map.name, 1, HEMCOLOR) end end #============================================================================== # --- メニューレイアウト 拡張定義 --- #============================================================================== class Scene_Menu alias xrxs_melt_pi8_make_windows make_windows def make_windows xrxs_melt_pi8_make_windows @windows.push(Window_MenuMapName.new) end end #============================================================================== # □ XRXS. マップ名取得機構 #============================================================================== class Game_Map #-------------------------------------------------------------------------- # ○ マップ名を取得 #-------------------------------------------------------------------------- def name $data_mapinfos = load_data("Data/MapInfos.rxdata") if $data_mapinfos.nil? $data_mapinfos[@map_id].name end end