#==============================================================================
# ■ Window_Test
#==============================================================================
class Window_Test < Window_Base
#--------------------------------------------------------------------------
# ● オブジェクト初期化
#--------------------------------------------------------------------------
def initialize
super(Graphics.width - window_width, Graphics.height - fitting_height(1),
window_width, fitting_height(1))
@mg = 0
@mg_max = 0
refresh
end
#--------------------------------------------------------------------------
# ● ウィンドウ幅の取得
#--------------------------------------------------------------------------
def window_width
return 160
end
#--------------------------------------------------------------------------
# ● フレーム更新
#--------------------------------------------------------------------------
def update
super
if (@mg != $game_variables[10]) || (@mg_max != $game_variables[11])
@mg = $game_variables[10]
@mg_max = $game_variables[11]
refresh
end
end
#--------------------------------------------------------------------------
# ● リフレッシュ
#--------------------------------------------------------------------------
def refresh
contents.clear
draw_text(contents.rect, "#{@mg}/#{@mg_max}", 1)
end
end
Iz09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQojIOKWoCBXaW5kb3dfVGVzdAojPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09CmNsYXNzIFdpbmRvd19UZXN0IDwgV2luZG93X0Jhc2UKICAjLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KICAjIOKXjyDjgqrjg5bjgrjjgqfjgq/jg4jliJ3mnJ/ljJYKICAjLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KICBkZWYgaW5pdGlhbGl6ZQogICAgc3VwZXIoR3JhcGhpY3Mud2lkdGggLSB3aW5kb3dfd2lkdGgsIEdyYXBoaWNzLmhlaWdodCAtIGZpdHRpbmdfaGVpZ2h0KDEpLAogICAgICB3aW5kb3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