Code: |
draw_text_contour(158, 207, 50, 25, $data_mapzone[$game_map.map_id][1]) |
Code: |
contents.fill_rect(x,y,width,height,Constant::C_Trans) draw_text_contour(x,y,width,height,text,align) |
Code: |
if @text_map != $data_mapzone[$game_map.map_id][1] @text_map=$data_mapzone[$game_map.map_id][1] contents.fill_rect(158,207,50,25,Constant::C_Trans) draw_text_contour(158, 207, 50, 25, $data_mapzone[$game_map.map_id][1]) end |
Code: |
#============================================================================== # ■ Pokemon_Menu # Pokemon Script Project DS - Palbolsky # 22/02/10 #----------------------------------------------------------------------------- # Scène modifiable #----------------------------------------------------------------------------- # Interface graphique du menu principal accessible par échap #----------------------------------------------------------------------------- class Interface_Echap < Window_Base include POKEMON_S def initialize super(0, 0, 640, 480) self.contents = Bitmap.new(width - 32, height - 32) self.contents.font.name = $fontface self.contents.font.size = $fontsize self.opacity = 0 self.z = 21 @interface = Sprite.new @interface.x = 13 @interface.y = 227 @interface.z = 20 text_interface apparence refresh end def dispose super @interface.dispose end def apparence if $options[1] == 1 or $options[1] == nil # Vert @string = "_vert" elsif $options[1] == 0 # Bleu @string = "_bleu" elsif $options[1] == 2 # Rouge @string = "_rouge" end end def refresh if $pokemon_party.size > 0 @interface.bitmap = RPG::Cache.picture("Menu Echap/menu echap2" + @string) else @interface.bitmap = RPG::Cache.picture("Menu Echap/menu echap1" + @string) end if $data_pokedex[0] == true @interface.bitmap = RPG::Cache.picture("Menu Echap/menu echap3" + @string) end if $game_switches[9] == true @interface.bitmap = RPG::Cache.picture("Menu Echap/menu echap" + @string) end if $data_mapzone[$game_map.map_id][1] != @map_name @map_name=$data_mapzone[$game_map.map_id][1] text_interface end end def text_interface contents.clear draw_text_interface(16, 253, 50, 25, "POKéDEX", 1) draw_text_interface(16, 293, 50, 25, "POKéMON", 1) draw_text_interface(16, 333, 50, 25, "SAC", 1) draw_text_interface(1, 373, 80, 25, "POKéMATOS", 1) draw_text_interface(86, 253, 70, 25, Player.name, 1) draw_text_interface(96, 293, 50, 25, "SAUVER", 1) draw_text_interface(96, 333, 50, 25, "OPTIONS", 1) draw_text_contour(158, 207, 50, 25, @map_name.to_s) end end |
Code: |
draw_text_contour(px_rect, py_rect, longueur_rect, hauteur_rect, @map_name.to_s,1) |