This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.
Welll, this is my status screen. Pieced together piece by piece.
Credit would be glorious, and preferred. But hey, do whatever.
Screenshot
Instructions
Plug in and play
Notes
The status picture is found in Graphics/Pictures, and the image's title should simple by the Actor's name
For some reason, the empty exp bar takes it's colour from system colour 19 (the 3rd green)
Script
Code:
class Window_Base < Window
#--------------------------------------------------------------------------
# * Constant Variables
#--------------------------------------------------------------------------
EXP_COLOR1 = Color.new(255, 255, 100)
EXP_COLOR2 = Color.new(255, 192, 40)
EXP_BAR_STRING = 'EXP'
#--------------------------------------------------------------------------
# * Draw EXP
# actor : actor
# x : draw spot x-coordinate
# y : draw spot y-coordinate
# width : Width
#--------------------------------------------------------------------------
def draw_actor_exp(actor, x, y, width = 120)
draw_actor_exp_gauge(actor, x, y, width)
self.contents.font.color = system_color
self.contents.draw_text(x, y, 30, WLH, EXP_BAR_STRING)
self.contents.font.color = normal_color
last_font_size = self.contents.font.size
xr = x + width
if width < 120
self.contents.draw_text(xr - 44, y, 44, WLH, actor.exp_s, 2)
else
self.contents.draw_text(xr - 99, y, 44, WLH, actor.exp_s, 2)
self.contents.font.color = normal_color
self.contents.draw_text(xr - 55, y, 11, WLH, "/", 2)
self.contents.draw_text(xr - 44, y, 44, WLH, actor.next_exp_s, 2)
end
end
#--------------------------------------------------------------------------
# * Draw EXP gauge
# actor : actor
# x : draw spot x-coordinate
# y : draw spot y-coordinate
# width : Width
#--------------------------------------------------------------------------
def draw_actor_exp_gauge(actor, x, y, width = 120)
gw = width * actor.exp / actor.next_exp_s.to_i
gc1 = EXP_COLOR1
gc2 = EXP_COLOR2
self.contents.fill_rect(x, y + WLH - 8, width, 6, gauge_back_color)
self.contents.gradient_fill_rect(x, y + WLH - 8, gw, 6, gc1, gc2)
end
end
class Window_Base < Window
def draw_actor_picture(picture_name, x, y)
bitmap = Cache.picture(picture_name)
self.contents.blt(x, y, bitmap, bitmap.rect)
end
end
#==============================================================================
# ** Window_Status
#------------------------------------------------------------------------------
# This window displays full status specs on the status screen.
#==============================================================================