设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1085|回复: 5
打印 上一主题 下一主题

哎!谁有系统设置的脚本啊?

 关闭 [复制链接]
头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-8-3
帖子
26
跳转到指定楼层
1
发表于 2008-8-10 03:49:40 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-8-3
帖子
26
2
 楼主| 发表于 2008-8-10 03:50:33 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-8-3
帖子
26
3
 楼主| 发表于 2008-8-10 03:54:23 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
147
在线时间
124 小时
注册时间
2008-2-9
帖子
267
4
发表于 2008-8-13 23:45:51 | 只看该作者
#==============================================================================
# ■ Window_SysCommand
#------------------------------------------------------------------------------
#  天书控制里的窗口。
#==============================================================================

class Window_SysCommand < Window_Selectable
  #--------------------------------------------------------------------------
  # ● 初始化对像
  #--------------------------------------------------------------------------
  def initialize
    super(460, 32, 180, 192)
    self.windowskin = RPG::Cache.windowskin("../system/menu/windowskins/palskin")
    self.opacity = 180
    self.contents = Bitmap.new(width - 32, height - 32)
    self.back_opacity = 160
    @item_max = 5
    @column_max = 1
    @commands = ["音乐大小", "音效大小", "进入存档", "读取游戏", "退出江湖"]
    refresh
    self.index = 0
  end
  #--------------------------------------------------------------------------
  # ● 刷新
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    bitmap = RPG::Cache.icon("bgm")
    self.contents.blt(120, 4, bitmap, Rect.new(0, 0, 24, 24))
    bitmap = RPG::Cache.icon("sfx")
    self.contents.blt(120, 36, bitmap, Rect.new(0, 0, 24, 24))
    bitmap = RPG::Cache.icon("save")
    self.contents.blt(120, 68, bitmap, Rect.new(0, 0, 24, 24))
    bitmap = RPG::Cache.icon("load")
    self.contents.blt(120, 100, bitmap, Rect.new(0, 0, 24, 24))
    bitmap = RPG::Cache.icon("exit")
    self.contents.blt(120, 132, bitmap, Rect.new(0, 0, 24, 24))
    for i in 0...@item_max
      draw_item(i)
    end
  end
  #--------------------------------------------------------------------------
  # ● 描绘项目
  #     index : 项目编号
  #--------------------------------------------------------------------------
  def draw_item(index)
    x = 4
    y = 32 * index
    self.contents.draw_text(x, y, 128, 32, @commands[index])
  end
end
本人论坛:http://mozunmingyun.5d6d.com/
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
147
在线时间
124 小时
注册时间
2008-2-9
帖子
267
5
发表于 2008-8-13 23:46:00 | 只看该作者
#==============================================================================
# ■ Window_EndCommand
#------------------------------------------------------------------------------
#  天书里退出时的窗口。
#==============================================================================

class Window_EndCommand < Window_Selectable
  #--------------------------------------------------------------------------
  # ● 初始化对像
  #--------------------------------------------------------------------------
  def initialize
    super(280, 128, 180, 96)
    self.windowskin = RPG::Cache.windowskin("../system/menu/windowskins/palskin")
    self.contents = Bitmap.new(width - 32, height - 32)
    @item_max = 2
    @column_max = 1
    @commands = ["返回标题", "退出江湖"]
    refresh
    self.index = 0
    self.back_opacity = 160
  end
  #--------------------------------------------------------------------------
  # ● 刷新
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    bitmap = RPG::Cache.icon("title")
    self.contents.blt(120, 4, bitmap, Rect.new(0, 0, 24, 24))
    bitmap = RPG::Cache.icon("desktop")
    self.contents.blt(120, 36, bitmap, Rect.new(0, 0, 24, 24))
    for i in 0...@item_max
      draw_item(i)
    end
  end
  #--------------------------------------------------------------------------
  # ● 描绘项目
  #     index : 项目编号
  #--------------------------------------------------------------------------
  def draw_item(index)
    x = 4
    y = 32 * index
    self.contents.draw_text(x, y, 128, 32, @commands[index])
  end
end

系统信息:本贴由本区版主认可为正确答案,66RPG感谢您的热情解答~
本人论坛:http://mozunmingyun.5d6d.com/
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
147
在线时间
124 小时
注册时间
2008-2-9
帖子
267
6
发表于 2008-8-13 23:46:11 | 只看该作者
#==============================================================================
# ■ Window_CurrentBGM_Volume
#==============================================================================
class Window_CurrentBGM_Volume < Window_Base
  def initialize
    super(460, 224, 180, 96)
    self.windowskin = RPG::Cache.windowskin("../system/menu/windowskins/palskin")
    self.opacity = 180
    self.contents = Bitmap.new(width - 32, height - 32)
    self.back_opacity = 160
    refresh
  end
  def refresh
    self.contents.clear
    self.contents.font.size = 20
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, 160, 32, "音乐音量设置")
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 32, 120, 32, $game_system.bgm_volume.to_s + "%", 2.9)
  end
end

#==============================================================================
# ■ Window_BGM_Volume
#==============================================================================
class Window_BGM_Volume < Window_Selectable
  def initialize(width, commands)
    super(380, 64, width, commands.size * 32 + 32)
    @item_max = commands.size
    @commands = commands
    self.windowskin = RPG::Cache.windowskin("../system/menu/windowskins/palskin")
    self.opacity = 180
    self.contents = Bitmap.new(width - 32, @item_max * 32)
    self.back_opacity = 160
    refresh
    self.index = 0
  end
  def refresh
    self.contents.clear
    self.contents.font.size = 20
    for i in 0...@item_max
    draw_item(i, normal_color)
    end
  end
  def draw_item(index, color)
    self.contents.font.color = color
    rect = Rect.new(4, 32 * index, self.contents.width - 8, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    self.contents.draw_text(rect, @commands[index])
  end
  def disable_item(index)
    draw_item(index, disabled_color)
  end
end

#==============================================================================
# ■ Window_CurrentSFX_Volume
#==============================================================================
class Window_CurrentSFX_Volume < Window_Base
  def initialize
    super(460, 224, 180, 96)
    self.windowskin = RPG::Cache.windowskin("../system/menu/windowskins/palskin")
    self.opacity = 180
    self.contents = Bitmap.new(width - 32, height - 32)
    self.back_opacity = 160
    refresh
  end
  def refresh
    self.contents.font.size = 20
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, 160, 32, "音效音量设置")
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 32, 120, 32, $game_system.se_volume.to_s + "%", 2.9)
  end
end

#==============================================================================
# ■ Window_SFX_Volume
#==============================================================================
class Window_SFX_Volume < Window_Selectable
  def initialize(width, commands)
    super(380, 64, width, commands.size * 32 + 32)
    self.windowskin = RPG::Cache.windowskin("../system/menu/windowskins/palskin")
    self.opacity = 180
    @item_max = commands.size
    @commands = commands
    self.contents = Bitmap.new(width - 32, @item_max * 32)
    self.back_opacity = 160
    refresh
    self.index = 0
  end
  def refresh
    self.contents.clear
    self.contents.font.size = 20
    for i in 0...@item_max
    draw_item(i, normal_color)
    end
  end
  def draw_item(index, color)
    self.contents.font.color = color
    rect = Rect.new(4, 32 * index, self.contents.width - 8, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    self.contents.draw_text(rect, @commands[index])
  end
  def disable_item(index)
    draw_item(index, disabled_color)
  end
end
本人论坛:http://mozunmingyun.5d6d.com/
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2025-7-27 12:30

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表