# ▽△▽ XRXSv12. Ds-In5. ステート+ターン ▽△▽ # # publish 2010/ 4/25 # update - # #============================================================================== # カスタマイズポイント #============================================================================== module XRXSVDsIn # # ステートターン数に使用する画像(Graphics/System) # StateNumber = "NumberB" # # 解除%が1以上あるもののみ表示する? # StateNumberOnlyAutoStates = true end #============================================================================== # ステートアイコンの描画 #============================================================================== class Window_Base < Window def draw_actor_state(actor, x, y, width = 96) num_skin = Cache.system(XRXSVDsIn::StateNumber) nw = num_skin.width / 10 nh = num_skin.height num_rect = Rect.new(0,0,nw,nh) count = 0 for state in actor.states x1 = x + 24 * count draw_icon(state.icon_index, x1, y) if actor.state_turn(state.id) and (!XRXSVDsIn::StateNumberOnlyAutoStates or state.auto_release_prob >= 1) if actor.state_turn(state.id) >= 9 num_rect.x = (actor.state_turn(state.id) + 1)/10 * nw self.contents.blt(x1 + 24 - nw * 2, y + 24 - nh, num_skin, num_rect) end num_rect.x = (actor.state_turn(state.id) + 1)%10 * nw self.contents.blt(x1 + 24 - nw, y + 24 - nh, num_skin, num_rect) end count += 1 break if (24 * count > width - 24) end end end #============================================================================== # ステートターン数の取得機能 #============================================================================== class Game_Battler def state_turn(state_id) return @state_turns[state_id] end end