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

Project1

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

[已经解决] 求个VX的战斗菜单!~!!

[复制链接]

Lv1.梦旅人

梦石
0
星屑
59
在线时间
536 小时
注册时间
2010-6-20
帖子
1489
跳转到指定楼层
1
发表于 2012-2-26 13:20:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

6R各种挂,下不了范例啊。

我想求个VX战斗菜单,

我用的是横板战斗,

可以支持战斗中显示头像的。

速度啊~!
[url=http://rpg.blue/thread-329159-1-1.html]http://attach.66rpg.com/bbs/attachment/forum/201308/24/132414sa8au7zgh7ab21gx.png[/url]   [b]
无尽之旅--永无止尽的旅程。[/b]

Lv3.寻梦者

虚空人形

梦石
0
星屑
4604
在线时间
2037 小时
注册时间
2011-8-11
帖子
3398

贵宾

2
发表于 2012-2-26 14:19:59 | 只看该作者
http://rpg.blue/thread-213729-1-1.html我做的游戏,应该符合你的要求。
有显示头像脚本的。
脚本本身如下:
  1. #==============================================================================
  2. # 本脚本来自www.66RPG.com,使用和转载请保留此信息
  3. #==============================================================================

  4. #==============================================================================
  5. # ■ Window_BattleStatus
  6. #------------------------------------------------------------------------------
  7. #  显示战斗画面同伴状态的窗口。
  8. #==============================================================================

  9. class Window_BattleStatus < Window_Selectable
  10.   #--------------------------------------------------------------------------
  11.   # ● 初始化对像
  12.   #--------------------------------------------------------------------------
  13.   def initialize
  14.     super(0, 0, 418, 137)
  15.     self.contents.font.size = 20
  16.     refresh
  17.     self.active = false
  18.   end
  19.   #--------------------------------------------------------------------------
  20.   # ● 释放
  21.   #--------------------------------------------------------------------------
  22.   def dispose
  23.     super
  24.   end
  25.   #--------------------------------------------------------------------------
  26.   # ● 刷新
  27.   #--------------------------------------------------------------------------
  28.   def refresh
  29.     self.contents.clear
  30.     @item_max = $game_party.members.size
  31.     for i in 0...@item_max
  32.       draw_item(i)
  33.     end
  34.     draw_6Rface(@index) if @index >= 0
  35.   end
  36.   #--------------------------------------------------------------------------
  37.   # ● 描绘项目
  38.   #     index : 项目编号
  39.   #--------------------------------------------------------------------------
  40.   def draw_item(index)
  41.     rect = item_rect(index)
  42.     rect.x += 4
  43.     rect.width -= 8
  44.     self.contents.clear_rect(rect)
  45.     self.contents.font.color = normal_color
  46.     actor = $game_party.members[index]
  47.     draw_actor_name(actor, 124, rect.y + 4)
  48.     begin_x = self.contents.text_size(actor.name).width + 4
  49.     draw_actor_state(actor, begin_x, rect.y + 3, 24)
  50.     draw_actor_hp(actor, 210, rect.y + 2, 65)
  51.     draw_actor_mp(actor, 300, rect.y + 2, 65)
  52.   end
  53.   #--------------------------------------------------------------------------
  54.   # ● 描绘人物头像
  55.   #     index : 项目编号
  56.   #--------------------------------------------------------------------------
  57.   def draw_6Rface(index)
  58.     rect = Rect.new(0, 4, 96, 96)
  59.     self.contents.clear_rect(rect)
  60.     actor = $game_party.members[index]
  61.     draw_actor_face(actor, 0, 4, 96)
  62.   end  
  63.   #--------------------------------------------------------------------------
  64.   # ● 设置光标的位置
  65.   #     index : 新的光标位置
  66.   #--------------------------------------------------------------------------
  67.   def index=(index)
  68.     @index = index
  69.     update_cursor
  70.     refresh
  71.   end
  72.   #--------------------------------------------------------------------------
  73.   # ● 获取项目描画矩形
  74.   #     index : 项目编号
  75.   #--------------------------------------------------------------------------
  76.   def item_rect(index)
  77.     rect = Rect.new(0, 0, 0, 0)
  78.     rect.width = contents.width - 136
  79.     rect.height = WLH + 4
  80.     rect.x = 120
  81.     rect.y = index / @column_max * WLH + 2
  82.     return rect
  83.   end  
  84.   #--------------------------------------------------------------------------
  85.   # ● 更新光标矩形
  86.   #--------------------------------------------------------------------------
  87.   def update_cursor
  88.     if @index < 0                   # 光标位置不满 0 的情况下
  89.       self.cursor_rect.empty        # 光标无效
  90.     else                            # 光标位 0 以上的情况下
  91.       row = @index / @column_max    # 获取当前的行
  92.       if row < top_row              # 当前行被显示开头行前面的情况下
  93.         self.top_row = row          # 从当前行向开头行滚动
  94.       end
  95.       if row > bottom_row           # 当前行被显示末尾行之后的情况下
  96.         self.bottom_row = row       # 从当前行向末尾滚动
  97.       end
  98.       rect = item_rect(@index)      # 获取选择项的矩形
  99.       rect.y -= self.oy             # 矩形滚动的位置加起来
  100.       self.cursor_rect = rect       # 更新光标矩形
  101.     end
  102.   end
  103. end

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

复制代码
回复

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-9-24 02:30

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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