查看: 2583|回复: 2

[已经过期] 關於這個腳本的人圖血量表位置修改 和 顯示名稱

[复制链接]
梦石
0
星屑
50
在线时间
19 小时
注册时间
2013-1-1
回帖
14
发表于 2013-1-3 22:57:29 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 Mic_洛洛 于 2013-1-3 23:36 编辑

[pre lang="ruby" line="1"]#==============================================================================
# ■ VXAce-RGSS3-10 フロントビュー改 [Ver.1.0.0]            by Claimh
#------------------------------------------------------------------------------
# ・戦闘画面を顔グラフィック表示に変更します。
# ・エネミー選択ウィンドウで残HPを表示します。
#==============================================================================


#==============================================================================
# ■ Window_BattleStatus
#==============================================================================
class Window_BattleStatus < Window_Selectable
  #--------------------------------------------------------------------------
  # ● HP/MP/TPの行の高さ取得
  #--------------------------------------------------------------------------
  def gauge_line_height
    return 16
  end
  #--------------------------------------------------------------------------
  # ● 桁数の取得
  #--------------------------------------------------------------------------
  def col_max
    return [item_max, 4].max
  end
  #--------------------------------------------------------------------------
  # ● 横に項目が並ぶときの空白の幅を取得
  #--------------------------------------------------------------------------
  def spacing
    return 0
  end
  #--------------------------------------------------------------------------
  # ● 項目を描画する矩形の取得
  #--------------------------------------------------------------------------
  def item_rect(index)
    rect = Rect.new
    rect.width = item_width
    rect.height = contents_height
    rect.x = index % col_max * (item_width + spacing)
    rect.y = index / col_max * contents_height
    rect
  end
  #--------------------------------------------------------------------------
  # ● 基本エリアの矩形を取得
  #--------------------------------------------------------------------------
  def basic_area_rect(index)
    rect = item_rect_for_text(index)
    rect.height -= gauge_area_height
    rect
  end
  #--------------------------------------------------------------------------
  # ● ゲージエリアの矩形を取得
  #--------------------------------------------------------------------------
  def gauge_area_rect(index)
    rect = item_rect_for_text(index)
    rect.y += contents_height - gauge_area_height - 8
    rect.height = gauge_area_height
    rect
  end
  #--------------------------------------------------------------------------
  # ● ゲージエリアの高さを取得
  #--------------------------------------------------------------------------
  def gauge_area_height
    return (gauge_line_height * ($data_system.opt_display_tp ? 3 : 2))
  end
  #--------------------------------------------------------------------------
  # ● 基本エリアの描画
  #--------------------------------------------------------------------------
  def draw_basic_area(rect, actor)
#    draw_actor_name(actor, rect.x, rect.y, 100)
    draw_actor_face(actor, rect.x, rect.y, !actor.dead?)
    draw_actor_icons(actor, rect.x, rect.y, rect.width+8)
  end
  #--------------------------------------------------------------------------
  # ● ゲージエリアの描画(TP あり)
  #--------------------------------------------------------------------------
  def draw_gauge_area_with_tp(rect, actor)
    draw_actor_hp(actor, rect.x, rect.y + gauge_line_height * 0, rect.width)
    draw_actor_mp(actor, rect.x, rect.y + gauge_line_height * 1, rect.width)
    draw_actor_tp(actor, rect.x, rect.y + gauge_line_height * 2, rect.width)
  end
  #--------------------------------------------------------------------------
  # ● ゲージエリアの描画(TP なし)
  #--------------------------------------------------------------------------
  def draw_gauge_area_without_tp(rect, actor)
    draw_actor_hp(actor, rect.x, rect.y + gauge_line_height * 1, rect.width)
    draw_actor_mp(actor, rect.x, rect.y + gauge_line_height * 2, rect.width)
  end
end


#==============================================================================
# ■ Window_BattleEnemy
#==============================================================================
class Window_BattleEnemy < Window_Selectable
  #--------------------------------------------------------------------------
  # ● 項目の描画
  #--------------------------------------------------------------------------
  alias draw_item_fv draw_item
  def draw_item(index)
    draw_hp(index)
    draw_item_fv(index)
  end
  #--------------------------------------------------------------------------
  # ● HPの描画
  #--------------------------------------------------------------------------
  def draw_hp(index)
    rect = item_rect_for_text(index)
    w = rect.width - 60
    x = rect.x + 30
    hp = $game_troop.alive_members[index].hp_rate
    draw_gauge(x, rect.y, w, hp, hp_gauge_color1, hp_gauge_color2)
  end
end[/pre]
5.PNG

請問血量表要怎樣才能跟下面的圖片一樣? 顯示 血量 和 魔力 和 名稱?


1.PNG
梦石
0
星屑
22879
在线时间
8598 小时
注册时间
2011-12-31
回帖
3270
发表于 2013-1-4 13:45:06 | 显示全部楼层
調整顕示座標,文字大小
回复

使用道具 举报

梦石
0
星屑
50
在线时间
19 小时
注册时间
2013-1-1
回帖
14
 楼主| 发表于 2013-1-4 16:34:32 | 显示全部楼层
本帖最后由 a89672341 于 2013-1-4 16:36 编辑
tseyik 发表于 2013-1-4 13:45
調整顕示座標,文字大小


擷取.PNG

1.我找到名稱顯示 可是 要怎樣才能把他顯示在臉圖前面

2.我還是看不懂 調整大小的是哪個,不感亂動

点评

我有改上面的數字阿,一樣感覺沒甚變化  发表于 2013-1-4 18:41
...........不自己弄一弄怎麼會明白呢,改錯了又沒有關係。  发表于 2013-1-4 18:19
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部