Colapso
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Genesis Menu 1.0

Ir para baixo

Genesis Menu 1.0 Empty Genesis Menu 1.0

Mensagem por Convidad Dom 20 Fev - 9:45

Genesis Menu
Feito por: Slade
Maker Utilizado: RMVX
|Versão: 1.0|


Descrição:
Menu de 1 player. O ABS para o qual esse menu foi criado ja vem com a DEMO.(VAMPYR SBABS)


Funções:
Menu de 1 player com superte a sistema de PET.


Instruções
A raça do pet será a classe dele.


ScreenShots


Download:

http://www.mediafire.com/?w406rc4qo8i5g7d


Script:
Código: [Selecionar]
class Window_Genesis_Menu < Window_Base
def initialize(x,y,l,a)
super(x,y,l,a)
@x,@y,@l,@a = x,y,l,a
self.contents = Bitmap.new(width - 32 , height - 32)
refresh
end

def refresh
self.contents.clear
@actor = $game_party.members[0]
@pet = $game_party.members[1]
draw_actor_face(@actor,0,30)
draw_actor_hp(@actor,0,130)
draw_actor_mp(@actor,0,150)
draw_actor_name(@actor,0,0)
draw_actor_class(@actor,90,177)
self.contents.font.color = Color.new(0,255,0)
self.contents.draw_text(0,195,120,40,"Mascote:")
self.contents.font.color = normal_color
if $game_party.members.size > 1
draw_actor_name(@pet,90,204)
draw_actor_graphic(@pet,257,375)
draw_actor_hp(@pet,200,204)
draw_actor_mp(@pet,200,224)
draw_actor_level(@pet,320,265)
draw_actor_class(@pet,380,228)
@status_position = 135
@status_position_2 = 320
self.contents.font.color = Color.new(0,255,0)
self.contents.draw_text(@status_position_2,170 + @status_position,self.width - 40,WLH,"FORÇA:")
self.contents.font.color = normal_color
self.contents.draw_text(100 + @status_position_2,170 + @status_position,self.width - 40,WLH,@pet.atk)
self.contents.font.color = Color.new(0,255,0)
self.contents.draw_text(@status_position_2,190 + @status_position,self.width - 40,WLH,"DEFESA:")
self.contents.font.color = normal_color
self.contents.draw_text(100 + @status_position_2,190 + @status_position,self.width - 40,WLH,@pet.def)
self.contents.font.color = Color.new(0,255,0)
self.contents.draw_text(@status_position_2,210 + @status_position,self.width - 40,WLH,"AGILIDADE:")
self.contents.font.color = normal_color
self.contents.draw_text(100 + @status_position_2,210 + @status_position,self.width - 40,WLH,@pet.agi)
self.contents.font.color = Color.new(0,255,0)
self.contents.draw_text(@status_position_2,230 + @status_position,self.width - 40,WLH,"MAGIA:")
self.contents.font.color = normal_color
self.contents.draw_text(100 + @status_position_2,230 + @status_position,self.width - 40,WLH,@pet.spi)
else
@status_position = 195
@status_position_2 = 415
self.contents.font.color = system_color
self.contents.draw_text(415,312,120,60,"LVL")
self.contents.font.color = Color.new(0,255,0)
self.contents.draw_text(@status_position_2,170 + @status_position,self.width - 40,WLH,"FORÇA:")
self.contents.draw_text(@status_position_2,190 + @status_position,self.width - 40,WLH,"DEFESA:")
self.contents.draw_text(@status_position_2,210 + @status_position,self.width - 40,WLH,"AGILIDADE:")
self.contents.draw_text(@status_position_2,230 + @status_position,self.width - 40,WLH,"MAGIA:")
end
@posição = 120
self.contents.font.color = Color.new(0,255,0)
self.contents.draw_text(0 + @posição,-4,120,40,"STATUS:")
self.contents.font.color = normal_color
draw_actor_state(@actor,77 + @posição,1,width = 96)
self.contents.draw_text(328,210,120,60,"RAÇA:")
self.contents.font.color = Color.new(0,255,0)
self.contents.draw_text(0,159,120,60,"Classe :")
end
end

class Window_Infeite < Window_Base
def initialize
super(544 - 330,416 - 150,116,150)
refresh
end
def refresh
self.contents.clear
self.back_opacity = 0
self.z = 100
end
end

class Window_Pet < Window_Base
def initialize
super(544 - 330,416 - 150,330,150)
refresh
end
def refresh
self.contents.clear
self.back_opacity = 0
self.contents.font.color = system_color
self.contents.draw_text(134,-20,120,60,":")
end
end

class Scene_Menu < Scene_Base
def initialize(menu_index = 0)
@menu_index = menu_index
end

def start
super
create_menu_background
create_command_window
@gold_window = Window_Gold.new(0, 416)
@genesis_window = Window_Genesis_Menu.new(0,0,544,416)
@window_infeite = Window_Infeite.new
@window_pet = Window_Pet.new
@genesis_window.z = 0
@gold_window.y = 416 - @gold_window.height
@time = Window_Time.new(0,310)
@time.z = 10
end

def terminate
super
dispose_menu_background
@command_window.dispose
@gold_window.dispose
@genesis_window.dispose
@window_infeite.dispose
@window_pet.dispose
@time.dispose
end

def update
super
update_menu_background
@command_window.update
@gold_window.update
@genesis_window.update
@time.update
if @command_window.active
update_command_selection
elsif @status_window.active
update_actor_selection
end
end

def create_command_window
s1 = Vocab::item
s2 = Vocab::equip
s3 = Vocab::skill
s4 = Vocab::status
s5 = "Diario"
s6 = "Mascote"
s7 = Vocab::game_end
@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6,s7])
@command_window.index = @menu_index
@command_window.x = 544 - @command_window.width
if $game_party.members.size == 0 # Se não houver membros na equipe
@command_window.draw_item(0, false) # Desabilita "Items"
@command_window.draw_item(1, false) # Desabilita "Habilidades"
@command_window.draw_item(2, false) # Desabilita "Equipamentos"
@command_window.draw_item(3, false) # Desabilita "Status"
end
if $game_system.save_disabled # Se salvar for proibido
@command_window.draw_item(4, false) # Desabilita "Salvar"
end
end
def update_command_selection
if Input.trigger?(Input::B)
Sound.play_cancel
$scene = Scene_Map.new
elsif Input.trigger?(Input::C)
if $game_party.members.size == 0 and @command_window.index < 4
Sound.play_buzzer
return
elsif $game_system.save_disabled and @command_window.index == 4
Sound.play_buzzer
return
end
Sound.play_decision
case @command_window.index
when 0 # Item
$scene = Scene_Item.new
when 1
$scene = Scene_Equip.new(0)
when 2
$scene = Scene_Skill.new(0)
when 3 # Habilidades, equipamento, status
$scene = Scene_Status.new(0)
when 4 # Salvar
$scene = Scene_File.new(true, false, false)
when 5 # Fim de jogo
$scene = Scene_End.new
end
end
end
end

class Window_Time < Window_Base
#--------------------------------------------------------------------------
# Iniciar
#--------------------------------------------------------------------------
def initialize(x, y)
super(x, y, 214, WLH + 26)
refresh
end
#--------------------------------------------------------------------------
# Principal
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(0, -8, 200, 32, "Tempo:")
@total_sec = Graphics.frame_count / Graphics.frame_rate
hour = @total_sec / 60 / 60
min = @total_sec / 60 % 60
sec = @total_sec % 60
text = sprintf("%02d:%02d:%02d", hour, min, sec)
self.contents.font.color = normal_color
self.contents.draw_text(69, -8, 200, 32, text)
end
#--------------------------------------------------------------------------
# Atualizar
#--------------------------------------------------------------------------
def update
super
if Graphics.frame_count / Graphics.frame_rate != @total_sec
refresh
end
end
end

class Window_Gold < Window_Base
def initialize(x, y)
super(x, y, 214, WLH + 32)
refresh
end

def refresh
self.contents.clear
draw_currency_value($game_party.gold, 4, 0, 127)
end
end

Créditos


Slade por criar e disponibilizar!
Vlad por criar o Vampyr SBABS!
Anonymous
Convidad
Convidado


Ir para o topo Ir para baixo

Ir para o topo


 
Permissões neste sub-fórum
Não podes responder a tópicos