module BattleHUDCircle #----------------------------------------------------------------------------- # Settings: #----------------------------------------------------------------------------- # :img => "file name", # Image used for fill rate. # # :back => "file name", # Image used for gauge background. # # 😛os => [x,y], # Offsets for fine tuning the position of the gauge. # # :start => angle, # The starting angle. The gauge will be at this position on full HP. # 0 = left, 90 = up, 180 = right, 270 = down. # # :dir => value, # The decrease direction of the fill rate. 1 = right, -1 = left. # # :fill => [width,height], # The filling size of the mask. Increase this if you see weird points upon # an emptying gauge. # Generally, the bigger your image, the bigger these values must be! #----------------------------------------------------------------------------- Circle = { :img => "circular_hp1", :back => "back1", 😛os => [-1,-1], :start => 90, :dir => -1, :fill => [3,3], } end class Window_BattleStatus < Window_Selectable def draw_item(index) return if index.nil? clear_item(index) actor = battle_members[index] rect = item_rect(index) return if actor.nil? draw_actor_face(actor, rect.x+2, rect.y+2, actor.alive?) draw_actor_name(actor, rect.x, rect.y, rect.width-8) draw_actor_action(actor, rect.x, rect.y) draw_actor_icons(actor, rect.x, line_height*1, rect.width) gx = YEA::BATTLE::BATTLESTATUS_HPGAUGE_Y_PLUS contents.font.size = YEA::BATTLE::BATTLESTATUS_TEXT_FONT_SIZE inf = BattleHUDCircle::Circle c_hp = BerksCircularBar.new(inf[:img], actor.hp, actor.mhp, inf[:start], inf[:dir], inf[:fill]) c_back = Cache.picture(inf[:back]) contents.blt(rect.x+inf[😛os][0], rect.y+inf[😛os][1], c_back, c_back.rect) contents.blt(rect.x+inf[😛os][0], rect.y+inf[😛os][1], c_hp, c_hp.rect) #draw_actor_hp(actor, rect.x+2, line_height*2+gx, rect.width-4) if draw_tp?(actor) && draw_mp?(actor) dw = rect.width/2-2 dw += 1 if $imported["YEA-CoreEngine"] && YEA::CORE::GAUGE_OUTLINE draw_actor_tp(actor, rect.x+2, line_height*3, dw) dw = rect.width - rect.width/2 - 2 draw_actor_mp(actor, rect.x+rect.width/2, line_height*3, dw) elsif draw_tp?(actor) && !draw_mp?(actor) draw_actor_tp(actor, rect.x+2, line_height*3, rect.width-4) else draw_actor_mp(actor, rect.x+2, line_height*3, rect.width-4) end endend