Project1

标题: 血条 [打印本页]

作者: Nacl    时间: 2008-5-23 21:07
提示: 作者被禁止或删除 内容自动屏蔽
作者: cmbljsw    时间: 2008-5-23 23:35
  1. #==========================================================
  2. # ■ Window_Base
  3. #------------------------------------------------------------
  4. #  ゲーム中のすべてのウィンドウのスーパークラスです。
  5. #============================================================

  6. class Window_Base < Window
  7.   #--------------------------------------------------------
  8.   # ● HP ゲージの描画
  9.   #--------------------------------------------------
  10.   # オリジナルのHP描画を draw_actor_hp_original と名前変更
  11.   alias :draw_actor_hp_original :draw_actor_hp
  12.   def draw_actor_hp(actor, x, y, width = 144)
  13.     # 変数rateに 現在のHP/MHPを代入
  14.     if actor.maxhp != 0
  15.       rate = actor.hp.to_f / actor.maxhp
  16.     else
  17.       rate = 0
  18.     end
  19.     # plus_x:X座標の位置補正 rate_x:X座標の位置補正(%) plus_y:Y座標の位置補正
  20.     # plus_width:幅の補正 rate_width:幅の補正(%) height:縦幅
  21.     # align1:描画タイプ1 0:左詰め 1:中央揃え 2:右詰め
  22.     # align2:描画タイプ2 0:上詰め 1:中央揃え 2:下詰め
  23.     # align3:ゲージタイプ 0:左詰め 1:右詰め
  24.     plus_x = 0
  25.     rate_x = 0
  26.     plus_y = 25
  27.     plus_width = 0
  28.     rate_width = 100
  29.     height = 10
  30.     align1 = 1
  31.     align2 = 2
  32.     align3 = 0
  33.     # グラデーション設定 grade1:空ゲージ grade2:実ゲージ
  34.     # (0:横にグラデーション 1:縦にグラデーション 2:斜めにグラデーション(激重))
  35.     grade1 = 1
  36.     grade2 = 0
  37.     # 色設
复制代码

把第一个的这些删了,应该就可以了……
作者: Nacl    时间: 2008-5-25 04:01
提示: 作者被禁止或删除 内容自动屏蔽




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