查看: 2633|回复: 2

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

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

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

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

×
本帖最后由 Mic_洛洛 于 2013-1-3 23:36 编辑
  1. #==============================================================================
  2. # ■ VXAce-RGSS3-10 フロントビュー改 [Ver.1.0.0]            by Claimh
  3. #------------------------------------------------------------------------------
  4. # ・戦闘画面を顔グラフィック表示に変更します。
  5. # ・エネミー選択ウィンドウで残HPを表示します。
  6. #==============================================================================


  7. #==============================================================================
  8. # ■ Window_BattleStatus
  9. #==============================================================================
  10. class Window_BattleStatus < Window_Selectable
  11.   #--------------------------------------------------------------------------
  12.   # ● HP/MP/TPの行の高さ取得
  13.   #--------------------------------------------------------------------------
  14.   def gauge_line_height
  15.     return 16
  16.   end
  17.   #--------------------------------------------------------------------------
  18.   # ● 桁数の取得
  19.   #--------------------------------------------------------------------------
  20.   def col_max
  21.     return [item_max, 4].max
  22.   end
  23.   #--------------------------------------------------------------------------
  24.   # ● 横に項目が並ぶときの空白の幅を取得
  25.   #--------------------------------------------------------------------------
  26.   def spacing
  27.     return 0
  28.   end
  29.   #--------------------------------------------------------------------------
  30.   # ● 項目を描画する矩形の取得
  31.   #--------------------------------------------------------------------------
  32.   def item_rect(index)
  33.     rect = Rect.new
  34.     rect.width = item_width
  35.     rect.height = contents_height
  36.     rect.x = index % col_max * (item_width + spacing)
  37.     rect.y = index / col_max * contents_height
  38.     rect
  39.   end
  40.   #--------------------------------------------------------------------------
  41.   # ● 基本エリアの矩形を取得
  42.   #--------------------------------------------------------------------------
  43.   def basic_area_rect(index)
  44.     rect = item_rect_for_text(index)
  45.     rect.height -= gauge_area_height
  46.     rect
  47.   end
  48.   #--------------------------------------------------------------------------
  49.   # ● ゲージエリアの矩形を取得
  50.   #--------------------------------------------------------------------------
  51.   def gauge_area_rect(index)
  52.     rect = item_rect_for_text(index)
  53.     rect.y += contents_height - gauge_area_height - 8
  54.     rect.height = gauge_area_height
  55.     rect
  56.   end
  57.   #--------------------------------------------------------------------------
  58.   # ● ゲージエリアの高さを取得
  59.   #--------------------------------------------------------------------------
  60.   def gauge_area_height
  61.     return (gauge_line_height * ($data_system.opt_display_tp ? 3 : 2))
  62.   end
  63.   #--------------------------------------------------------------------------
  64.   # ● 基本エリアの描画
  65.   #--------------------------------------------------------------------------
  66.   def draw_basic_area(rect, actor)
  67. #    draw_actor_name(actor, rect.x, rect.y, 100)
  68.     draw_actor_face(actor, rect.x, rect.y, !actor.dead?)
  69.     draw_actor_icons(actor, rect.x, rect.y, rect.width+8)
  70.   end
  71.   #--------------------------------------------------------------------------
  72.   # ● ゲージエリアの描画(TP あり)
  73.   #--------------------------------------------------------------------------
  74.   def draw_gauge_area_with_tp(rect, actor)
  75.     draw_actor_hp(actor, rect.x, rect.y + gauge_line_height * 0, rect.width)
  76.     draw_actor_mp(actor, rect.x, rect.y + gauge_line_height * 1, rect.width)
  77.     draw_actor_tp(actor, rect.x, rect.y + gauge_line_height * 2, rect.width)
  78.   end
  79.   #--------------------------------------------------------------------------
  80.   # ● ゲージエリアの描画(TP なし)
  81.   #--------------------------------------------------------------------------
  82.   def draw_gauge_area_without_tp(rect, actor)
  83.     draw_actor_hp(actor, rect.x, rect.y + gauge_line_height * 1, rect.width)
  84.     draw_actor_mp(actor, rect.x, rect.y + gauge_line_height * 2, rect.width)
  85.   end
  86. end


  87. #==============================================================================
  88. # ■ Window_BattleEnemy
  89. #==============================================================================
  90. class Window_BattleEnemy < Window_Selectable
  91.   #--------------------------------------------------------------------------
  92.   # ● 項目の描画
  93.   #--------------------------------------------------------------------------
  94.   alias draw_item_fv draw_item
  95.   def draw_item(index)
  96.     draw_hp(index)
  97.     draw_item_fv(index)
  98.   end
  99.   #--------------------------------------------------------------------------
  100.   # ● HPの描画
  101.   #--------------------------------------------------------------------------
  102.   def draw_hp(index)
  103.     rect = item_rect_for_text(index)
  104.     w = rect.width - 60
  105.     x = rect.x + 30
  106.     hp = $game_troop.alive_members[index].hp_rate
  107.     draw_gauge(x, rect.y, w, hp, hp_gauge_color1, hp_gauge_color2)
  108.   end
  109. end
复制代码

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.

在本版发帖返回顶部