Cerca nel Forum
Showing results for tags 'MSX - Bars Type'.
Trovato 1 risultato
-
Nome Script: MSX - Bars Type Versione: 1.0 Autore/i: Melosx Informazioni: Aggiunge due tipi di barre per personalizare di più i vostri menu... Ho pensato a questo script giocando a Skyrim... Screenshots: Istruzioni: Nello script. Script: #=============================================================================# ** MSX - Bars Type#=============================================================================# Autore: Melosx# Versione: 1.0 => 13-1-2012##=============================================================================# * Istruzioni#-----------------------------------------------------------------------------# Aggiunge due nuovi tipi di barre. Questi nuovi tipi vanno settati inserendo 0, 1 o 2 nel codice# che disegna le barre. di default è settato 0 cioè il tipo di barra di default.##==============================================================================class Window_Base < Window def draw_gauge(x, y, width, rate, color1, color2, type = 0) case type when 0 fill_w = (width * rate).to_i gauge_y = y + line_height - 8 contents.fill_rect(x, gauge_y, width, 6, gauge_back_color) contents.gradient_fill_rect(x, gauge_y, fill_w, 6, color1, color2) when 1 fill_w = (width * rate).to_i gauge_y = y + line_height - 8 gr_x = x + (width - fill_w) / 2 contents.fill_rect(x, gauge_y, width, 6, gauge_back_color) contents.gradient_fill_rect(gr_x, gauge_y, fill_w, 6, color1, color2) when 2 fill_w = (width * rate).to_i gauge_y = y + line_height - 8 gr_x = x + (width - fill_w) contents.fill_rect(x, gauge_y, width, 6, gauge_back_color) contents.gradient_fill_rect(gr_x, gauge_y, fill_w, 6, color1, color2) end end def draw_actor_hp(actor, x, y, width = 124, type = 0) draw_gauge(x, y, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2, type = 1) change_color(system_color) draw_text(x, y, 30, line_height, Vocab::hp_a) draw_current_and_max_values(x, y, width, actor.hp, actor.mhp, hp_color(actor), normal_color) end def draw_actor_mp(actor, x, y, width = 124, type = 0) draw_gauge(x, y, width, actor.mp_rate, mp_gauge_color1, mp_gauge_color2, type = 2) change_color(system_color) draw_text(x, y, 30, line_height, Vocab::mp_a) draw_current_and_max_values(x, y, width, actor.mp, actor.mmp, mp_color(actor), normal_color) end def draw_actor_tp(actor, x, y, width = 124, type = 0) draw_gauge(x, y, width, actor.tp_rate, tp_gauge_color1, tp_gauge_color2, type) change_color(system_color) draw_text(x, y, 30, line_height, Vocab::tp_a) change_color(tp_color(actor)) draw_text(x + width - 42, y, 42, line_height, actor.tp.to_i, 2) endend Demo:N/D Incompatibilità: Non ne ha, almeno credo... ho pensato a tutto...