| 赞 | 12  | 
 
| VIP | 107 | 
 
| 好人卡 | 6 | 
 
| 积分 | 4 | 
 
| 经验 | 31122 | 
 
| 最后登录 | 2024-6-29 | 
 
| 在线时间 | 1606 小时 | 
 
 
 
 
 
Lv2.观梦者 傻♂逼 
	- 梦石
 - 0 
 
        - 星屑
 - 374 
 
        - 在线时间
 - 1606 小时
 
        - 注册时间
 - 2007-3-13
 
        - 帖子
 - 6562
 
 
   
 
 | 
	
class Game_Picture 
attr_accessor   :x                        # X 坐标 
attr_accessor   :y                        # Y 坐标 
attr_accessor   :number                   # 编号 
attr_accessor   :td                       # 拖动标记 
def name=(str) 
  @name = str 
end 
 
end 
 
class Sprite_Picture 
 
alias update_old update 
def update 
  update_old 
  return if @picture_name == "" or @picture_name[/td/].nil? 
  mx,my = Mouse.get_mouse_pos 
  lx = self.x - self.ox 
  rx = lx + self.bitmap.width 
  ty = self.y - self.oy 
  by = ty + self.bitmap.height 
  if mx < lx or mx > rx or my < ty or my > by or 
    self.bitmap.get_pixel(mx-lx,my-ty).alpha == 0 
    @picture.name = @picture.name.split(/_/)[0]+"_"[email protected](/_/)[1] 
    return 
  end 
  if @picture.name.split(/_/)[2].nil? 
    @picture.name = @picture.name + "_02" 
  end 
  if Input.trigger?(13) 
    @picture.name.split(/_/)[0].sub(/td([0-9]+)/,"") 
    self.bitmap.dispose 
    $game_temp.common_event_id = 任意事件id.to_i 
  end 
end 
 
end 
 
 
 
 
公共事件: 
显示图片( 单击后图片)  系统信息:本贴获得楼主认可,66RPG感谢您的热情解答~ |   
 
 
 
 |