| 赞 | 1 |
| VIP | |
| 好人卡 | |
| 积分 | 6 |
| 经验 | |
| 最后登录 | 2022-8-5 |
| 在线时间 | 271 小时 |
神隐的主犯
- 梦石
- 0
- 星屑
- 553
- 在线时间
- 271 小时
- 注册时间
- 2008-2-22
- 回帖
- 7534

|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
- module Graphics
- #--------------------------------------------------------------------------
- # ● ゲーム画面のサイズを変更
- #--------------------------------------------------------------------------
- unless method_defined?(:resize_screen_KGC_MapLightening)
- class << Graphics
- alias resize_screen_KGC_MapLightening resize_screen
- end
- def self.resize_screen(width, height)
- resize_screen_KGC_MapLightening(width, height)
- if $game_temp != nil
- $game_temp.setup_lightening_value
- end
- end
- end
- end
复制代码
以上就来着 VX 地图轻量化的脚本, 有亮点疑问请教高手。{/hx}(或者触手)
1. unless method_defined?(:resize_screen_KGC_MapLightening)
为什么参数要加 : (冒号) 呢??
还有, method_defined? 这个方法是在哪里定义的??
2. class << Graphics
看下文好像是改变类方法的读取范围,猜测。
数组的 "<<" 这个方法是不是将数据从数组的末尾压进数组里去??那有没有取出来的方法呢??{/hx}
以上,请教各位。 版务信息:版主帮忙结贴~ |
|