赞 | 3 |
VIP | 1324 |
好人卡 | 17 |
积分 | 10 |
经验 | 61438 |
最后登录 | 2024-6-19 |
在线时间 | 937 小时 |
Lv3.寻梦者 昨日的黄昏
- 梦石
- 0
- 星屑
- 1005
- 在线时间
- 937 小时
- 注册时间
- 2006-11-5
- 帖子
- 4128
 
|
Window_Message类
如果你插入了新的对话脚本请修改你的对话脚本~
搜索def reset_window你会发现低下的东西
- def reset_window
- # 判定
- if @popchar >= 0
- events = $game_map.events
- if events != nil
- character = get_character(@popchar)
- x = [[character.screen_x - 0 - self.width / 2, 4].max, 636 - self.width].min
- y = [[character.screen_y - 48 - self.height, 4].max, 476 - self.height].min
- self.x = x
- self.y = y
- end
- elsif @popchar == -1
- self.x = -4
- self.y = -4
- self.width = 648
- self.height = 488
- else
- if $game_temp.in_battle
- self.y = 16
- else
- case $game_system.message_position
- when 0 # 上
- self.y = 16
- when 1 # 中
- self.y = 160
- when 2 # 下
- self.y = 320
- end
- self.x = -5
- if @face_file == nil
- self.width = 650
- else
- self.width = 650
- self.x -= 60
- end
- self.height = 160
- end
- end
- self.contents = Bitmap.new(self.width - 32, self.height - 32)
- if @face_file != nil
- self.contents.blt(16, 16, RPG::Cache.picture(@face_file), Rect.new(0, 0, 96, 96))
- end
- if @popchar == -1
- self.opacity = 255
- self.back_opacity = 0
- elsif $game_system.message_frame == 0
- self.opacity = 255
- self.back_opacity = 255
- else
- self.opacity = 0
- self.back_opacity = 255
- end
- end
复制代码
其中有self.x 与 self.width
配合修改即可 系统信息:本贴由版主絮儿认可为正确答案,66RPG感谢您的热情解答~ |
|