[b style="font-weight: bold;"][b style="font-weight: bold;"][b style="font-weight: bold;"]Simple HUD[/b][/b][/b]
Script:[/b][/b][/b]
[b style="font-weight: bold;"]Autor:[/b] Guilherm_Gamer
[b style="font-weight: bold;"]Engine:[/b] RMVXAce
[b style="font-weight: bold;"]Descrição:[/b] Mostra uma simples HUD na tela mostrando face, graphics, level, nome, hp, mp.
[b style="font-weight: bold;"][b style="font-weight: bold;"][b style="font-weight: bold;"][b style="font-weight: bold;"]Engine:[/b] RMVXAce
[b style="font-weight: bold;"]Descrição:[/b] Mostra uma simples HUD na tela mostrando face, graphics, level, nome, hp, mp.
Script:[/b][/b][/b]
- Código:
=begin
Simple HUD
Autor: Guilherm_Gamer
-------------------------##################-----------------------------------
Mostra uma simples HUD na tela mostrando face, graphics, level, nome, hp, mp.
-------------------------##################-----------------------------------
-------------------------##################-----------------------------------
Agradecimento há Faalco pela video-aula
=end
class Window_HUD < Window_Base
def initialize
super(0, 0, 270, 120) #Size da Window
@actor = $game_party.members[0]
refresh
end
def refresh
self.contents.clear
draw_actor_face(@actor, 0, 0) #Cria a Face
draw_actor_name(@actor, 110, 0) #Cria o Nome
draw_actor_level(@actor, 175, 0) #Cria o Lvl
draw_actor_class(@actor, 110, 20) #Cria a classe
draw_actor_hp(@actor, 110, 45) #Cria a Bar de HP
draw_actor_mp(@actor, 110, 65) #Cria a Bar de MP
draw_actor_graphic(@actor, 15, 100) #Cria os Graficos
end
end
class Scene_Map
alias hud_main main
alias hud_update update
def main
@hud = Window_HUD.new
hud_main
@hud.dispose
end
def update
hud_update
@hud.update #Faz o Update
@hud.refresh #Faz o Refresh
end
end
[b style="font-weight: bold;"][b style="font-weight: bold;"][b style="font-weight: bold;"]Agradecimentos:[/b][/b][/b]
Há Faalco pela video-aula e há RD 12 pela correção dos bug´s.