Project1
标题:
血条
[打印本页]
作者:
Nacl
时间:
2008-5-23 21:07
提示:
作者被禁止或删除 内容自动屏蔽
作者:
cmbljsw
时间:
2008-5-23 23:35
#==========================================================
# ■ Window_Base
#------------------------------------------------------------
# ゲーム中のすべてのウィンドウのスーパークラスです。
#============================================================
class Window_Base < Window
#--------------------------------------------------------
# ● HP ゲージの描画
#--------------------------------------------------
# オリジナルのHP描画を draw_actor_hp_original と名前変更
alias :draw_actor_hp_original :draw_actor_hp
def draw_actor_hp(actor, x, y, width = 144)
# 変数rateに 現在のHP/MHPを代入
if actor.maxhp != 0
rate = actor.hp.to_f / actor.maxhp
else
rate = 0
end
# plus_x:X座標の位置補正 rate_x:X座標の位置補正(%) plus_y:Y座標の位置補正
# plus_width:幅の補正 rate_width:幅の補正(%) height:縦幅
# align1:描画タイプ1 0:左詰め 1:中央揃え 2:右詰め
# align2:描画タイプ2 0:上詰め 1:中央揃え 2:下詰め
# align3:ゲージタイプ 0:左詰め 1:右詰め
plus_x = 0
rate_x = 0
plus_y = 25
plus_width = 0
rate_width = 100
height = 10
align1 = 1
align2 = 2
align3 = 0
# グラデーション設定 grade1:空ゲージ grade2:実ゲージ
# (0:横にグラデーション 1:縦にグラデーション 2:斜めにグラデーション(激重))
grade1 = 1
grade2 = 0
# 色設
复制代码
把第一个的这些删了,应该就可以了……
作者:
Nacl
时间:
2008-5-25 04:01
提示:
作者被禁止或删除 内容自动屏蔽
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1