您现在看到的是 66RPG.com 的资源列表,若这些对您有帮助,
希望您以充值论坛VIP点数的方式为我们捐款,
您的捐款将用于本站的三台服务器托管费,以及网通100M带宽的租金

66RPG充值页面 66RPG充值页面

最近更新记录

  • 2012-02-14 : 新增两个音乐素材
  • 2012-02-14 : 新增一个游戏资源
  • 2012-02-10 : 新增3个素材资源
  • 2012-02-09 : 新增/更新16个资源

66RPG 站内搜索

精确(推荐) 全文

本站收集内容是为了便于让游戏制作爱好者互相学习与交流,所有内容的版权与著作权均归原作者/公司所有。如进行有可能引起纠纷的使用,建议您先与原作方沟通。
美化的动态选项窗口
更新:2012-01-27 11:54:32 | 点击量:1824
美化的动态选项窗口
脚本作者:KKME
版本更新:Ver 1.0
适用版本:RPG Maker XP
修改自主站上的脚本,和小生这两天发布的另外几个不一样,只是比较小的一些改动而已,为了美化一些,仅此而已


脚本说明
修改自主站上的脚本,和小生这两天发布的另外几个不一样,只是比较小的一些改动而已,为了美化一些,仅此而已。

脚本内容

#==============================================================================
# ■ Window_Command
#------------------------------------------------------------------------------
#  一般的命令选择行窗口。
#==============================================================================

class Window_Command < Window_Selectable
 #--------------------------------------------------------------------------
 # ● 初始化对像
 # width : 窗口的宽
 # commands : 命令字符串序列
 #--------------------------------------------------------------------------
 def initialize(width, commands)
   # 由命令的个数计算出窗口的高
   super(0, 0, width, commands.size * 32 + 32)
   @item_max = commands.size
   @commands = commands
   self.contents = Bitmap.new(width - 32, @item_max * 32)
   @item = []
   self.index = 0
   refresh
   @oldindex = 0
 end
 #--------------------------------------------------------------------------
 # ● 刷新
 #--------------------------------------------------------------------------
 def refresh
   self.contents.clear
   for i in 0...@item_max
     if i != self.index
       draw_item_dis(i)
     else
       draw_item_active(i,@item[i])
     end
   end
 end
 #--------------------------------------------------------------------------
 # ● 描绘项目
 # index : 项目编号
 # color : 文字色
 #--------------------------------------------------------------------------
 def draw_item_dis(index) 
   rect = Rect.new(5, 32 * index, self.contents.width - 24, 32)
   self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
   self.contents.font.color = Color.new(0,0,0,255)
   self.contents.draw_text(5,32*index+1,self.contents.width,32, @commands[index])
   self.contents.draw_text(5,32*index-1,self.contents.width,32, @commands[index])
   self.contents.draw_text(5-1,32*index,self.contents.width,32, @commands[index])
   self.contents.draw_text(5+1,32*index,self.contents.width,32, @commands[index])
   self.contents.font.color = disabled_color
   self.contents.draw_text(rect, @commands[index])
 end
 
 def draw_item_active(index, type)
   self.contents.font.color = Color.new(0,0,0,255)
   self.contents.draw_text(5,32*index+1,self.contents.width,32, @commands[index])
   self.contents.draw_text(5,32*index-1,self.contents.width,32, @commands[index])
   self.contents.draw_text(5-1,32*index,self.contents.width,32, @commands[index])
   self.contents.draw_text(5+1,32*index,self.contents.width,32, @commands[index])
   if type==1
     self.contents.font.color = disabled_color
   else
     self.contents.font.color = Color.new(255,255,255,255)
   end
   self.contents.draw_text(4,32*index,self.contents.width,32, @commands[index])
 end
 #--------------------------------------------------------------------------
 # ● 项目无效化
 # index : 项目编号
 #--------------------------------------------------------------------------
 def disable_item(index)
   @item[index] = 1
 end  
 #--------------------------------------------------------------------------
 # ● 刷新方法更新
 #--------------------------------------------------------------------------
 def update
   super
   #——这里使用的刷新方法比直接refresh节约很多内存
   if self.index != @oldindex
     @oldindex = self.index
     refresh
   end
 end
 def update_cursor_rect
   self.cursor_rect.empty
 end
end

#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================

搜到一些相关内容,看看有没有有用的:

素材 : 《炼金术士梅露露~亚兰德的炼金..教程 : 显示ARPG用的窗口教程 : 新人入门录像1 初识RMXP游戏 : 赠予新手们的修改脚本的教程教程 : 大地图制作教程教程 : KKME整合系统教程 : 2种敌人战斗新的死法- -||..教程 : 人物能力状态图的多边形网状绘制教程 : 美化的动态选项窗口游戏 : 《OZ大乱斗:梦想与传说的延续..教程 : PS去行走图底色教程教程 : 日夜控制系统完美版教程 : 神秘羊皮纸教程 : RM反沉迷系统教程 : 动态选项光标教程 : 用流星当板擦,擦出Title标..教程 : 数据包的制作、加密以及解压运行教程 : 物品技能介绍加强(多行显示)教程 : ikki的敌人等级设定教程教程 : 显示对话人物头像教程 : 截图+档位扩展50+存档提示+..教程 : 使用自带字体[功能完善]教程 : fuki对话框(又名呼出对话框..教程 : RMXP在游戏运行中制作事件教程 : 行走图横版战斗-改进版教程 : 导出工程中全部对话文字教程 : 线索仓库增强版教程 : 更改游戏分辨率,简化版教程 : 给每个角色制作攻击动画(不使用..教程 : 完美输入法最后修正版

没找到你想要的?可以使用搜索功能 ↓

66RPG 站内搜索

精确(推荐) 全文

评论啦