赞 | 0 |
VIP | 5 |
好人卡 | 14 |
积分 | 15 |
经验 | 110639 |
最后登录 | 2015-10-15 |
在线时间 | 1157 小时 |
Lv3.寻梦者 小柯的徒弟
- 梦石
- 0
- 星屑
- 1515
- 在线时间
- 1157 小时
- 注册时间
- 2008-5-24
- 帖子
- 3085
|
- module Mouse
- def self.update
- left_down = $GetKeyState.call(0x01)
- right_down = $GetKeyState.call(0x02)
- @click_lock = false
- mouse_x, mouse_y = self.get_mouse_pos
- if @mouse_sprite != nil
- @mouse_sprite.x = mouse_x
- @mouse_sprite.y = mouse_y
- end
- if left_down[7] == 1
- @left_repeat = (not @left_repeat)
- @left_trigger = (not @left_press)
- @left_press = true
- else
- @left_press = false
- @left_trigger = false
- @left_repeat = false
- end
- if right_down[7] == 1
- @right_repeat = (not @right_repeat)
- @right_trigger = (not @right_press)
- @right_press = true
- else
- @right_press = false
- @right_trigger = false
- @right_repeat = false
- end
- if $game_switches != nil and $game_switches[9]
- @mouse_sprite.bitmap = Bitmap.new('Graphics/Icons/aaa.png')
- else
- @mouse_sprite.bitmap = Bitmap.new('Graphics/Icons/001-Weapon01.png')
- end
- end
- end
复制代码 把这个脚本放在鼠标脚本的下面~~ |
|