Project1
标题:
怎样把对话框的长度加长?
[打印本页]
作者:
最终剧
时间:
2007-6-26 04:17
提示:
作者被禁止或删除 内容自动屏蔽
作者:
最终剧
时间:
2007-6-26 04:17
提示:
作者被禁止或删除 内容自动屏蔽
作者:
精灵使者
时间:
2007-6-26 04:30
加长显然不合适,原因是字体太大吧 = =
在main的字体定义的下边添上一句
font.default_size = 20
这样对话框的字就能全部显示了。而且非常漂亮。
作者:
七夕小雨
时间:
2007-6-26 04:48
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
配合修改即可 [LINE]1,#dddddd[/LINE]
系统信息:本贴由版主絮儿认可为正确答案,66RPG感谢您的热情解答~
作者:
精灵使者
时间:
2007-6-26 04:56
如果想单纯的改长度的话,楼上正解。楼主想解决的问题就是默认字体会超出对话框外边的问题……
作者:
最终剧
时间:
2007-6-30 23:12
提示:
作者被禁止或删除 内容自动屏蔽
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1