Neko Fondateur
Messages : 184 Date d'inscription : 14/07/2013 Age : 25 Localisation : Ici, la plupart du temps.
| Sujet: [RPG MAKER XP ] Afficher le niveau des héros Sam 20 Juil - 14:16 | |
| ScreenshostAuteurWanoklox et Gif Script - Code:
-
#-------------------------------------------------------- #Script: Battle_lvl # #Auteur: Wanoklox et Gif #-------------------------------------------------------- #-------------------------------------------------------- # # # Window_Base < Window # # #-------------------------------------------------------- class Window_Base < Window #-------------------------------------------------------- # def draw_actor_name(actor, x, y) #-------------------------------------------------------- def draw_actor_name(actor, x, y) self.contents.font.color = normal_color self.contents.draw_text(x, y, 120, 32, actor.name) end #-------------------------------------------------------- # def draw_actor_level(actor, x, y) #-------------------------------------------------------- def draw_actor_level(actor, x, y) self.contents.font.color = normal_color self.contents.draw_text(x+21, y, 100, 32, "Lv."+actor.level.to_s, 2) end end #-------------------------------------------------------- # # # Window_BattleStatus < Window_Base # # #-------------------------------------------------------- class Window_BattleStatus < Window_Base #-------------------------------------------------------- # def refresh #-------------------------------------------------------- def refresh self.contents.clear @item_max = $game_party.actors.size for i in 0...$game_party.actors.size actor = $game_party.actors[i] actor_x = i * 160 + 4 self.contents.font.size = 20 draw_actor_name(actor, actor_x, 20) self.contents.font.size = 15 draw_actor_hp(actor, actor_x, 40, 120) draw_actor_sp(actor, actor_x, 60, 120) draw_actor_level(actor, actor_x, 20) draw_actor_state(actor, actor_x, 96) if @level_up_flags[i] draw_actor_state(actor, actor_x, 96) end end end end | |
|