Project1

标题: 鼠标``````滚动条.  ★ 1.000 VIP ★ [打印本页]

作者: suicaoya123    时间: 2008-5-31 01:39
标题: 鼠标``````滚动条.  ★ 1.000 VIP ★

主站上的`````

http://rpg.blue/web/htm/news1021.htm

鼠标脚本选项页的滚动


感觉欠点什么```````对~就是那滚动条```

个人感觉一般的用户都不怎么喜欢用那个按钮式的`````

按钮试感觉很不起眼(除用图片),甚至被忽略了- - (我第一次下了范例就是这样被忽略了)

希望各高手能强化````````谢谢``

用积分才不被论坛打五折```邪恶啊{/cy}

自己再换作VIP
[LINE]1,#dddddd[/LINE]此贴于 2008-6-6 0:27:54 被版主darkten提醒,请楼主看到后对本贴做出回应。 [LINE]1,#dddddd[/LINE]本贴由论坛斑竹禾西结贴,如楼主认为问题未解决,请重新将此贴编辑为“有事请教”,并回帖叙述疑点即可~ ^-^
作者: lldjjf    时间: 2008-5-31 03:24
提示: 作者被禁止或删除 内容自动屏蔽
作者: 禾西    时间: 2008-5-31 06:57
這個東西早有人實現了http://rpg.blue/viewthread.php?tid=88106 [LINE]1,#dddddd[/LINE]系统信息:本贴获得楼主认可,66RPG感谢您的热情解答~
作者: suicaoya123    时间: 2008-6-1 01:27
以下引用禾西于2008-5-30 22:57:29的发言:

這個東西早有人實現了http://rpg.blue/viewthread.php?tid=88106

发现    bug         !!!!!

请修改:

就是当行数不够的时候也能移动,而且对位也不准.


作者: hitlerson    时间: 2008-6-1 01:38
呵呵,看这个贴子里 "卡片" 的那个滚动条.

偶没时间搞这个,所以技能的这个条只是凑活做做的
作者: suicaoya123    时间: 2008-6-1 02:20
以下引用hitlerson于2008-5-31 17:38:21的发言:

呵呵,看这个贴子里 "卡片" 的那个滚动条.

偶没时间搞这个,所以技能的这个条只是凑活做做的


[本贴由作者于 2008-5-31 17:40:57 最后编辑]

我试了```````也一样```

你把窗口里的物品或卡片减到剩下1个`````拖拖滚动条试试

作者: hitlerson    时间: 2008-6-1 02:58
哦~,这样啊,呵呵,没注意,处理下就好了

不过这样要效果好的话,要引入滚动条长度的变化了
作者: suicaoya123    时间: 2008-6-1 03:16
以下引用hitlerson于2008-5-31 18:58:43的发言:

哦~,这样啊,呵呵,没注意,处理下就好了

不过这样要效果好的话,要引入滚动条长度的变化了

或加如脚本````

当物品个数少于x(x=行数)
  滚动条无效`
作者: hitlerson    时间: 2008-6-1 03:27
对的~   这个东西做的粗糙,小毛病一定不少!

  1.       #-----   滚动条判断
  2.       if @item_max > 10
  3.       
  4.       if inside(self.x+self.width-30, self.y+65+@lan1_y, self.x+self.width-7, self.y+110+@lan1_y)
  5.         @index = 10001
  6.         @mouse_x_not_in_rect = false
  7.         if tp_index != @index
  8.           tp_index = @index
  9.           #$game_system.se_play($data_system.cursor_se)
  10.         end
  11.         if @mouse_x_not_in_rect
  12.           @index = -1
  13.         end
  14.       elsif inside(self.x+self.width-30, self.y+50, self.x+self.width-7, self.y+64)
  15.         @index = 10002
  16.         @mouse_x_not_in_rect = false
  17.         if tp_index != @index
  18.           tp_index = @index
  19.           #$game_system.se_play($data_system.cursor_se)
  20.         end
  21.         if @mouse_x_not_in_rect
  22.           @index = -1
  23.         end
  24.       elsif inside(self.x+self.width-30, self.y+441, self.x+self.width-7, self.y+455)
  25.         @index = 10003
  26.         @mouse_x_not_in_rect = false
  27.         if tp_index != @index
  28.           tp_index = @index
  29.         end
  30.         if @mouse_x_not_in_rect
  31.           @index = -1
  32.         end      
  33.         
  34.       end
  35.       end
  36.       #------   kaishi排列按钮
  37.       if inside(self.x+self.width-129, self.y+19, self.x+self.width-109, self.y+28)
  38.         @index = 10011    #
  39.         @mouse_x_not_in_rect = false
  40.         if tp_index != @index
  41.           tp_index = @index
  42.           $game_system.se_play($data_system.cursor_se)
  43.         end
  44.         if @mouse_x_not_in_rect
  45.           @index = -1
  46.         end
复制代码

  1.     if @item_max > 10
  2.       bitmap_gdt = RPG::Cache.picture("gundongtiao")
  3.       self.contents.blt(self.width - 42, 50+@lan1_y, bitmap_gdt, Rect.new(0, 0, 20, 100), 255)
  4.     end
复制代码
[LINE]1,#dddddd[/LINE]系统信息:本贴获得楼主认可,66RPG感谢您的热情解答~
作者: suicaoya123    时间: 2008-6-1 03:36
以下引用hitlerson于2008-5-31 19:27:22的发言:

对的~   这个东西做的粗糙,小毛病一定不少!

      #-----   滚动条判断
      if @item_max > 10
      
      if inside(self.x+self.width-30, self.y+65+@lan1_y, self.x+self.width-7, self.y+110+@lan1_y)
        @index = 10001
        @mouse_x_not_in_rect = false
        if tp_index != @index
          tp_index = @index
          #$game_system.se_play($data_system.cursor_se)
        end
        if @mouse_x_not_in_rect
          @index = -1
        end
      elsif inside(self.x+self.width-30, self.y+50, self.x+self.width-7, self.y+64)
        @index = 10002
        @mouse_x_not_in_rect = false
        if tp_index != @index
          tp_index = @index
          #$game_system.se_play($data_system.cursor_se)
        end
        if @mouse_x_not_in_rect
          @index = -1
        end
      elsif inside(self.x+self.width-30, self.y+441, self.x+self.width-7, self.y+455)
        @index = 10003
        @mouse_x_not_in_rect = false
        if tp_index != @index
          tp_index = @index
        end
        if @mouse_x_not_in_rect
          @index = -1
        end      
        
      end
      end
      #------   kaishi排列按钮
      if inside(self.x+self.width-129, self.y+19, self.x+self.width-109, self.y+28)
        @index = 10011    #
        @mouse_x_not_in_rect = false
        if tp_index != @index
          tp_index = @index
          $game_system.se_play($data_system.cursor_se)
        end
        if @mouse_x_not_in_rect
          @index = -1
        end


    if @item_max > 10
      bitmap_gdt = RPG::Cache.picture("gundongtiao")
      self.contents.blt(self.width - 42, 50+@lan1_y, bitmap_gdt, Rect.new(0, 0, 20, 100), 255)
    end



[本贴由作者于 2008-5-31 19:29:38 最后编辑]

我懒````

你整和吧```````然后发我`````
作者: hitlerson    时间: 2008-6-1 04:54
上面那个覆盖在Window_Selectable_Carda里的

下面的覆盖在Window_CardAllList里的,这还懒啊
作者: suicaoya123    时间: 2008-6-1 06:26
我增加了些功能```还挺好用




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1