Project1
标题:
怎么在事件的脚本编辑里改变对话框的大小?
[打印本页]
作者:
gaofei677
时间:
2007-8-16 22:38
标题:
怎么在事件的脚本编辑里改变对话框的大小?
如题,就是用事件的脚本编辑改变对话框尺寸。 还有坐标怎么改?[LINE]1,#dddddd[/LINE]
此贴于 2007-8-18 13:21:03 被版主K’提醒,请楼主看到后对本贴做出回应。
还有坐标怎么改?还有坐标怎么改?还有坐标怎么改?还有坐标怎么改?
没人回答啊 ????
作者:
gaofei677
时间:
2007-8-16 22:38
标题:
怎么在事件的脚本编辑里改变对话框的大小?
如题,就是用事件的脚本编辑改变对话框尺寸。 还有坐标怎么改?[LINE]1,#dddddd[/LINE]
此贴于 2007-8-18 13:21:03 被版主K’提醒,请楼主看到后对本贴做出回应。
还有坐标怎么改?还有坐标怎么改?还有坐标怎么改?还有坐标怎么改?
没人回答啊 ????
作者:
舞灵
时间:
2007-8-16 22:44
提示:
作者被禁止或删除 内容自动屏蔽
作者:
gaofei677
时间:
2007-8-17 01:18
这个我知道,我是要用事件里面的脚本啊{/ll}
作者:
K’
时间:
2007-8-17 01:27
super(80, 304, 480 + $game_variables[1], 160 + $game_variables[2])
改成这样 1,2号变量分别控制宽、高 负数的话就减少
同理 位置也可以用这种方法改变。
作者:
gaofei677
时间:
2007-8-18 18:48
能用,谢谢
作者:
gaofei677
时间:
2007-8-18 20:19
{/dk}不好意思,最后还是用不起,我用了没反应,我把开关改成了20和 21
super(80, 304, 480 + $game_variables[20], 120 + $game_variables[21])
然后用的 变量操作-开关20-带入- -100
变量操作-开关21-带入- 50
哪点错了?{/dk}
作者:
神思
时间:
2007-8-18 20:28
想不到K君也会犯这种错```
initialize里的东西只会在.new的时候运行一次的说
把这段东西放到main前
这样就1号变量控制宽2号变量控制高
class Window_Message
WidthVariables = 1
HeightVariables = 2
#--------------------------------------------------------------------------
# ● 设置窗口位置与不透明度
#--------------------------------------------------------------------------
def reset_window
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 = 304
end
end
self.width = [$game_variables[WidthVariables], 64].max
self.height = [$game_variables[HeightVariables], 64].max
self.contents.clear
self.contents.dispose
self.contents = Bitmap.new(width - 32, height - 32)
if $game_system.message_frame == 0
self.opacity = 255
else
self.opacity = 0
end
self.back_opacity = 160
end
end
复制代码
作者:
K’
时间:
2007-8-18 21:23
之前认为显示文章的窗口是每次显示文章都生成一次。。
太想当然了。。{/gg}
作者:
gaofei677
时间:
2007-8-22 06:31
谢谢,不过最后那个姐姐的脚本还是有点问题:
self.width = [$game_variables[WidthVariables], 64].max
self.height = [$game_variables[HeightVariables], 64].max
self.contents.clear
self.contents.dispose
self.contents = Bitmap.new(width - 32, height - 32)
if $game_system.message_frame == 0
这一段应该改成
self.width = [$game_variables[WidthVariables]+ 480].max
self.height = [$game_variables[HeightVariables]+ 160].max
self.contents.clear
self.contents.dispose
self.contents = Bitmap.new(width - 32, height - 32)
if $game_system.message_frame == 0
不然脚本不起作用而且初始对话框也太小了{/cy}
随便问句,如果要改对话框坐标 像HeightVariables的东西,应该改成什么?{/jy}
作者:
gaofei677
时间:
2007-8-24 17:07
还有坐标,有人能帮忙吗?
作者:
索尔迦·蓝
时间:
2007-8-24 18:12
提示:
作者被禁止或删除 内容自动屏蔽
作者:
gaofei677
时间:
2007-8-25 20:29
谢谢,不过我不是不自己想,而是我根本不会,指出前面的错误,那个应该不算吧{/cy}
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1