本帖最后由 上贺茂润 于 2013-10-22 19:19 编辑 #============================================================================== # ■ Window_MapName #====================================================== ...
#--------------------------------------------------------------------------# ● 更新#--------------------------------------------------------------------------def update if $game_switches[1] self.opacity = 0 return end if $game_map.map_id != @map_id @map_id = $game_map.map_id refresh self.opacity -= 5 self.contents_opacity = 255 end refresh if $game_map.map_id == 388 return if self.opacity == 0 self.opacity = 255 #原来是-=5 self.contents_opacity = 255 #原来是-=5end
#-------------------------------------------------------------------------- # ● 更新 #-------------------------------------------------------------------------- def update if $game_switches[1] self.opacity = 0 return end if $game_map.map_id != @map_id @map_id = $game_map.map_id refresh self.opacity -= 5 self.contents_opacity = 255 end refresh if $game_map.map_id == 388 return if self.opacity == 0 self.opacity = 255 #原来是-=5 self.contents_opacity = 255 #原来是-=5 end
查看全部评分
class Window_MapName < Window_Base#--------------------------------------------------------------------------# ● 刷新#--------------------------------------------------------------------------def refresh return if $game_switches[1] # 1号开关打开时候不显示 self.opacity = 255 self.contents_opacity = 255 name = $data_mapinfos[@map_id].name width = self.contents.text_size(name).width height = self.contents.text_size(name).height self.width = width + 32 self.height = height + 32 self.contents = Bitmap.new(width, height) self.contents.font.size = 20 self.x = 0 self.y = 0 self.contents.font.color = system_color self.contents.draw_text(0, 0, width, 20, name, 1)end
class Window_MapName < Window_Base #-------------------------------------------------------------------------- # ● 刷新 #-------------------------------------------------------------------------- def refresh return if $game_switches[1] # 1号开关打开时候不显示 self.opacity = 255 self.contents_opacity = 255 name = $data_mapinfos[@map_id].name width = self.contents.text_size(name).width height = self.contents.text_size(name).height self.width = width + 32 self.height = height + 32 self.contents = Bitmap.new(width, height) self.contents.font.size = 20 self.x = 0 self.y = 0 self.contents.font.color = system_color self.contents.draw_text(0, 0, width, 20, name, 1) end
折叠内容标题(非必须)
折叠内容
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-15 12:16
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.