メニュー画面のステータスウィンドウは「Window_MenuStatus」ですので、ここの中身を改造していきます。
コード: 全て選択
#--------------------------------------------------------------------------
# ● 項目の描画
#--------------------------------------------------------------------------
def draw_item(index)
(中略)
draw_actor_face(actor, rect.x + 1, rect.y + 1, enabled) # 顔グラフィック描画
draw_actor_simple_status(actor, rect.x + 108, rect.y + line_height / 2) # ステータス描画
end
顔グラフィックの描画が不要であれば、# 顔グラフィック描画をコメントアウトし、# ステータス描画のX座標をずらします。
コード: 全て選択
def draw_item(index)
(中略)
#~ draw_actor_face(actor, rect.x + 1, rect.y + 1, enabled) # 顔グラフィック描画
draw_actor_simple_status(actor, rect.x + 1, rect.y + line_height / 2) # ステータス描画
end
次に、「draw_actor_simple_status」の中身は添付ファイルで言うところの「2ウィンドウ」にありますので、そこの座標をいじります。
コード: 全て選択
def draw_actor_simple_status(actor, x, y)
draw_actor_name(actor, x, y) # 名前
draw_actor_level(actor, x + 90, y) # レベル
#~ draw_actor_icons(actor, x, y + line_height * 2) # スペースがないのでステート描画はあきらめます
draw_actor_class(actor, x, y + line_height * 1) # メイン職業
draw_actor_sub_class(actor, x, y + line_height * 2) # サブ職業
draw_actor_hp(actor, x + 125, y + line_height * 1) # HPゲージ
draw_actor_mp(actor, x + 125, y + line_height * 2) # MPゲージ
end
細かい座標は自分でなんとかしてください。
以下、お持ち帰り用
コード: 全て選択
class Window_Base < Window
#--------------------------------------------------------------------------
# ● シンプルなステータスの描画
#--------------------------------------------------------------------------
def draw_actor_simple_status(actor, x, y)
draw_actor_name(actor, x, y) # 名前
draw_actor_level(actor, x + 90, y) # レベル
#~ draw_actor_icons(actor, x, y + line_height * 2) # スペースがないのでステート描画はあきらめます
draw_actor_class(actor, x, y + line_height * 1) # メイン職業
draw_actor_sub_class(actor, x, y + line_height * 2) # サブ職業
draw_actor_hp(actor, x + 125, y + line_height * 1) # HPゲージ
draw_actor_mp(actor, x + 125, y + line_height * 2) # MPゲージ
end
end
#==============================================================================
# ■ Window_MenuStatus
#==============================================================================
class Window_MenuStatus < Window_Selectable
#--------------------------------------------------------------------------
# ● 項目の描画
#--------------------------------------------------------------------------
def draw_item(index)
actor = $game_party.members[index]
enabled = $game_party.battle_members.include?(actor)
rect = item_rect(index)
draw_item_background(index)
#~ draw_actor_face(actor, rect.x + 1, rect.y + 1, enabled)
draw_actor_simple_status(actor, rect.x + 1, rect.y + line_height / 2)
end
end
あと、EnDlEss DREamER様の素材は
転載が禁止と利用規約に書いてあるのでスクリプト素材は消した方がいいです。