~Site
¤Accueil
¤Forum
¤Admin

~Base de scripts
¤Scripts de base
¤Scripts Menu
¤Scripts Combat
¤Scripts Système
¤Scripts Modifiés

Scripts de Base
Game_Temp
Game_System
Game_Switches
Game_Variables
Game_SelfSwitches
Game_Screen
Game_Picture
Game_Battler 1
Game_Battler 2
Game_Battler 3
Game_BattleAction
Game_Actor
Game_Enemy
Game_Actors
Game_Party
Game_Troop
Game_Map
Game_CommonEvent
Game_Character 1
Game_Character 2
Game_Character 3
Game_Event
Game_Player
Sprite_Character
Sprite_Battler
Sprite_Picture
Sprite_Timer
Spriteset_Map
Spriteset_Battle
Window_Base
Window_Selectable
Window_Command
Window_Help
Window_Gold
Window_PlayTime
Window_Steps
Window_MenuStatus
Window_Item
Window_Skill
Window_SkillStatus
Window_Target
Window_EquipLeft
Window_EquipRight
Window_EquipItem
Window_Status
Window_SaveFile
Window_ShopCommand
Window_ShopBuy
Window_ShopSell
Window_ShopNumber
Window_ShopStatus
Window_NameEdit
Window_NameInput
Window_InputNumber
Window_Message
Window_PartyCommand
Window_BattleStatus
Window_BattleResult
Window_DebugLeft
Window_DebugRight
Window_Dataset
Arrow_Base
Arrow_Enemy
Arrow_Actor
Interpreter 1
Interpreter 2
Interpreter 3
Interpreter 4
Interpreter 5
Interpreter 6
Interpreter 7
Scene_Title
Scene_Map
Scene_Menu
Scene_Item
Scene_Skill
Scene_Equip
Scene_Status
Scene_File
Scene_Save
Scene_Load
Scene_End
Scene_Battle 1
Scene_Battle 2
Scene_Battle 3
Scene_Battle 4
Scene_Shop
Scene_Name
Scene_Gameover
Scene_Debug
Main


Window_Message ::: posté le 2006-02-16 @ 09:59:00
Auteur: Yukihiro matsumoto

#============================================
# ¡ Window_Message
#----------------------------------------------
# @•¶Í•ަ‚ÉŽg‚¤ƒƒbƒZ[ƒWƒEƒBƒ“ƒhƒE‚Å‚·B
#============================================

class Window_Message < Window_Selectable
#------------------------------------------
# œ ƒIƒuƒWƒFƒNƒg‰Šú‰»
#------------------------------------------
def initialize
super(80, 304, 480, 160)
self.contents = Bitmap.new(width - 32, height - 32)
self.visible = false
self.z = 9998
@fade_in = false
@fade_out = false
@contents_showing = false
@cursor_width = 0
self.active = false
self.index = -1
end
#------------------------------------------
# œ ‰ð•ú
#------------------------------------------
def dispose
terminate_message
$game_temp.message_window_showing = false
if @input_number_window != nil
@input_number_window.dispose
end
super
end
#------------------------------------------
# œ ƒƒbƒZ[ƒWI—¹ˆ—
#------------------------------------------
def terminate_message
self.active = false
self.pause = false
self.index = -1
self.contents.clear
# •ަ’†ƒtƒ‰ƒO‚ðƒNƒŠƒA
@contents_showing = false
# ƒƒbƒZ[ƒW ƒR[ƒ‹ƒoƒbƒN‚ðŒÄ‚Ô
if $game_temp.message_proc != nil
$game_temp.message_proc.call
end
# •¶ÍA‘I‘ðŽˆA”’l“ü—͂Ɋւ·‚é•Ï”‚ðƒNƒŠƒA
$game_temp.message_text = nil
$game_temp.message_proc = nil
$game_temp.choice_start = 99
$game_temp.choice_max = 0
$game_temp.choice_cancel_type = 0
$game_temp.choice_proc = nil
$game_temp.num_input_start = 99
$game_temp.num_input_variable_id = 0
$game_temp.num_input_digits_max = 0
# ƒS[ƒ‹ƒhƒEƒBƒ“ƒhƒE‚ðŠJ•ú
if @gold_window != nil
@gold_window.dispose
@gold_window = nil
end
end
#------------------------------------------
# œ ƒŠƒtƒŒƒbƒVƒ…
#------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = normal_color
self.contents.font.name = $fontface
self.contents.font.size = $fontsize
x = y = 0
@cursor_width = 0
# ‘I‘ðŽˆ‚È‚çŽš‰º‚°‚ðs‚¤
if $game_temp.choice_start == 0
x = 8
end
# •ަ‘Ò‚¿‚̃ƒbƒZ[ƒW‚ª‚ ‚éê‡
if $game_temp.message_text != nil
text = $game_temp.message_text
# §Œä•¶Žšˆ—
begin
last_text = text.clone
text.gsub!(/\[Vv][([0-9]+)]/) { $game_variables[$1.to_i] }
end until text == last_text
text.gsub!(/\[Nn][([0-9]+)]/) do
$game_actors[$1.to_i] != nil ? $game_actors[$1.to_i].name : ""
end
# •Ö‹XãA"\\" ‚ð "
Design By RaZ © Watery Build 2005