lunariafantasia/Scripts/_.71.rb
2024-01-12 03:12:38 -06:00

89 lines
No EOL
3.6 KiB
Ruby

#==============================================================================
# ■ Window_SkillStatus
#------------------------------------------------------------------------------
#  スキル画面で、スキル使用者のステータスを表示するウィンドウです。
#==============================================================================
class Window_SkillStatus < Window_Base
#--------------------------------------------------------------------------
# ● ウィンドウ幅の取得
#--------------------------------------------------------------------------
def window_width
Graphics.width
end
#--------------------------------------------------------------------------
# ● リフレッシュ ※再定義
#--------------------------------------------------------------------------
def refresh
contents.clear
return unless @actor
draw_actor_face(@actor, 180, 0)
draw_actor_simple_status(@actor, 288, 0)
end
end
#==============================================================================
# ■ Scene_Skill
#------------------------------------------------------------------------------
#  スキル画面の処理を行うクラスです。処理共通化の便宜上、スキルも「アイテム」
# として扱っています。
#==============================================================================
class Scene_Skill < Scene_ItemBase
#--------------------------------------------------------------------------
# ● ステータスウィンドウの作成
#--------------------------------------------------------------------------
alias category_create_status_window create_status_window
def create_status_window
category_create_status_window
@status_window.x = 0
end
end
#==============================================================================
# ■ Window_SkillCommand
#------------------------------------------------------------------------------
#  スキル画面で、コマンド(特技や魔法など)を選択するウィンドウです。
#==============================================================================
class Window_SkillCommand < Window_Command
#--------------------------------------------------------------------------
# ● オブジェクト初期化
#--------------------------------------------------------------------------
alias category_initialize initialize
def initialize(x, y)
category_initialize(x, y)
self.z = 150
self.opacity = 0
end
#--------------------------------------------------------------------------
# ● ウィンドウ幅の取得
#--------------------------------------------------------------------------
def window_width
return 180
end
#--------------------------------------------------------------------------
# ○ アライメントの取得
#--------------------------------------------------------------------------
def alignment
return 1
end
#--------------------------------------------------------------------------
# ○ 横に項目が並ぶときの空白の幅を取得
#--------------------------------------------------------------------------
def spacing
return 8
end
#--------------------------------------------------------------------------
# ○ 桁数の取得
#--------------------------------------------------------------------------
def col_max
return 2
end
#--------------------------------------------------------------------------
# ○ 表示行数の取得
#--------------------------------------------------------------------------
#def visible_line_number
#3#(item_max - 1) / col_max + 1
#end
end