Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # )----------------------------------------------------------------------------(
- # )-- AUTHOR: Mr. Trivel --(
- # )-- NAME: Status Screen Bust && Data --(
- # )-- CREATED: 2014-12-07 --(
- # )----------------------------------------------------------------------------(
- # )-- CHANGES --(
- # )-- Moved around how stats are displayed and added hero bust to status. --(
- # )----------------------------------------------------------------------------(
- # )-- INSTRUCTIONS --(
- # )-- Bust pictures are in Graphics/Pictures folder named Bust(ID), where --(
- # )-- ID is actor ID. E.g.: Bust1.png, Bust999.png --(
- # )----------------------------------------------------------------------------(
- # )-- LICENSE INFO --(
- # )-- Allowed to use for commercial and non-commercial projects and games --(
- # )-- developed by AlliedG. --(
- # )----------------------------------------------------------------------------(
- # )====------------------------------------------------------------------------(
- # )-- Class: Window_Status --(
- # )-------------------------------------------------------------------------===(
- class Window_Status < Window_Selectable
- alias :mrts_ws_bm_initialize :initialize
- def initialize(actor)
- @sprite = Sprite.new
- mrts_ws_bm_initialize(actor)
- @sprite.viewport = @viewport
- @sprite.z = 1000
- end
- def dispose
- super
- @sprite.bitmap.dispose
- @sprite.dispose
- end
- # )--------------------------------------------------------------------------(
- # )-- Overwritten Method: refresh +line_height*2 --(
- # )--------------------------------------------------------------------------(
- def refresh
- contents.clear
- x = 16
- y = 4
- draw_actor_name(@actor, x, y +line_height*1 )
- draw_text(x + 105, y +line_height*1 , 300, line_height, "LV #{@actor.level}")
- draw_actor_hp(@actor, x, y + line_height * 2)
- draw_actor_mp(@actor, x, y + line_height * 3)
- draw_parameters(x, y + line_height * 5)
- draw_exp_info(x, y + line_height * 10)
- @sprite.bitmap = Cache.picture("Bust#{@actor.id}")
- @sprite.x = contents.width - @sprite.bitmap.width - 4
- @sprite.y = contents.height - @sprite.bitmap.height + 2
- end
- # )--------------------------------------------------------------------------(
- # )-- Overwritten Method: draw_exp_info --(
- # )--------------------------------------------------------------------------(
- def draw_exp_info(x, y)
- s1 = @actor.max_level? ? "-------" : @actor.exp
- s2 = @actor.max_level? ? "-------" : @actor.next_level_exp - @actor.exp
- s_next = sprintf(Vocab::ExpNext, Vocab::level)
- change_color(system_color)
- draw_text(x, y, 180, line_height, Vocab::ExpTotal)
- draw_text(x, y + line_height, 180, line_height, s_next)
- change_color(normal_color)
- draw_text(x, y, 180, line_height, s1, 2)
- draw_text(x, y + line_height, 180, line_height, s2, 2)
- end
- # )--------------------------------------------------------------------------(
- # )-- Overwritten Method: standard_padding --(
- # )--------------------------------------------------------------------------(
- def standard_padding
- return 0
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement