Project1

标题: 怎样把Window_MenuStatus中的角色状态打横? [打印本页]

作者: 冰舞蝶恋    时间: 2010-10-6 18:14
标题: 怎样把Window_MenuStatus中的角色状态打横?
本帖最后由 冰舞蝶恋 于 2010-10-7 17:02 编辑

就是横排显示,非默认竖排。另外,(actor,x,y)中的actor表示着坐标中的什么?谢谢。
作者: 九夜神尊    时间: 2010-10-6 18:28
1,狂调坐标即可转纵为横。
2,actor就是:你显示谁的状态呀?
作者: 冰舞蝶恋    时间: 2010-10-7 07:48
回复 九夜神尊 的帖子
坐标调好了,可是接着显示下面的角色状态又会竖着……


   
作者: 冰舞蝶恋    时间: 2010-10-7 14:31
回复 九夜神尊 的帖子
万恶的连帖+自顶!急切求解!
斑竹少扣点分哈。。。

   
作者: 九夜神尊    时间: 2010-10-7 14:33
回复 冰舞蝶恋 的帖子
依旧调坐标,实在不行发我工程。635637250

   
作者: 冰舞蝶恋    时间: 2010-10-7 14:52
本帖最后由 冰舞蝶恋 于 2010-10-11 20:52 编辑

回复 九夜神尊 的帖子

能不能令队伍里每个角色的信息都有个单独的坐标?
上范例。。上截图。。


范例如下:↓

菜单.rar

237.33 KB, 下载次数: 37


作者: 小幽的马甲    时间: 2010-10-7 16:27
本帖最后由 小幽的马甲 于 2010-10-7 16:38 编辑

回复 冰舞蝶恋 的帖子

小改了一下Window_MenuStatus,应该能满足你的需要,其它的自己调整坐标吧
  1. #==============================================================================
  2. # ■ Window_MenuStatus
  3. #------------------------------------------------------------------------------
  4. #  显示菜单画面和同伴状态的窗口。
  5. #==============================================================================

  6. class Window_MenuStatus < Window_Selectable
  7.   #--------------------------------------------------------------------------
  8.   # ● 初始化对像
  9.   #     x      : 窗口 X 座标
  10.   #     y      : 窗口 Y 座标
  11.   #--------------------------------------------------------------------------
  12.   def initialize(x, y)
  13.     super(x, y, 544, 168)
  14.     refresh
  15.     self.active = false
  16.     self.index = -1
  17.     @column_max = $game_party.members.size
  18.     @spacing = 0
  19.   end
  20.   #--------------------------------------------------------------------------
  21.   # ● 刷新
  22.   #--------------------------------------------------------------------------
  23.   def refresh
  24.     self.contents.clear
  25.     @item_max = $game_party.members.size
  26.     @column_max = $game_party.members.size
  27.     for actor in $game_party.members
  28.       x = actor.index * 128
  29.       y = 28
  30.       draw_actor_face(actor, x, 2, 96)
  31.       draw_actor_name(actor, x, y - 28)
  32.       draw_actor_level(actor, x, y + 32)
  33.       draw_actor_hp(actor, x, y + WLH * 1 + 28)
  34.       draw_actor_mp(actor, x , y + WLH * 2 + 28)
  35.     end
  36.   end
  37.   #--------------------------------------------------------------------------
  38.   # ● 更新光标
  39.   #--------------------------------------------------------------------------
  40.   def update_cursor
  41.     if @index < 0               # 无光标
  42.       self.cursor_rect.empty
  43.     elsif @index < @item_max    # 一般
  44.       self.cursor_rect.set(@index * 128, 0, 128, 128)
  45.     elsif @index >= 100         # 使用本身
  46.       self.cursor_rect.set((@index - 100) * 128, 0, 128, 128)
  47.     else                        # 全体
  48.       self.cursor_rect.set(0, 0, @item_max * 128, 128)
  49.     end
  50.   end
  51. end
复制代码

作者: 冰舞蝶恋    时间: 2010-10-7 16:59
回复 小幽的马甲 的帖子

谢了。。
   




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1