THE NVL Maker

 找回密码
 注册
搜索
查看: 1004|回复: 2

[脚本编辑] 一旦使用鼠标滚轮或者中键就报错

[复制链接]

15

主题

47

帖子

0

精华

游戏开发者

积分
47
发表于 2023-5-12 07:30:33 | 显示全部楼层 |阅读模式
本帖最后由 豆浆 于 2023-5-12 07:45 编辑

如题,在测试中一旦使用鼠标滚轮或者中键就报错。显示脚本发生例外无法找到成员“frame”最后测试了一下因该是查看历史记录的问题

看了报错信息是  data/editor/gui_history.ks 的98行左右出错

*文字范围
[iscript]
f.参数=new Dictionary();
f.参数.frame=f.config_history.bgd.frame;
f.参数.marginl=f.config_history.marginl;
f.参数.marginr=f.config_history.marginr;
f.参数.margint=f.config_history.margint;
f.参数.marginb=f.config_history.marginb;
[endscript]                                                           (大概就是在这个位置)
[call storage="window_margin_param.ks"]
[iscript]
f.config_history.marginl=(int)f.参数.marginl;
f.config_history.marginr=(int)f.参数.marginr;
f.config_history.margint=(int)f.参数.margint;
f.config_history.marginb=(int)f.参数.marginb;
[endscript]
[jump target=*window]


我不知道怎么改。。。。。不知道能否在一般的脚本编辑中输入一行命令禁用历史记录?

另外我想知道一下如何改变默认的操作键位的绑定(例如我想把滚轮改成阅读速度之内的)




回复

使用道具 举报

16

主题

982

帖子

0

精华

管理员

Rank: 9Rank: 9Rank: 9

积分
1003
发表于 2023-5-14 19:07:56 来自手机 | 显示全部楼层
这应该是历史记录设置文件是旧版但游戏工程是新版的原因,用编辑器打开历史记录编辑界面重新保存一下应该就好了。
回复

使用道具 举报

15

主题

47

帖子

0

精华

游戏开发者

积分
47
 楼主| 发表于 2023-5-14 20:10:44 | 显示全部楼层
感谢V大,重新编辑了一下果然好了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|nvlmaker

GMT+8, 2024-3-28 23:25 , Processed in 0.010093 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表