【110509】第1w会员有惊喜~!
赛尔号吧
全部回复
仅看楼主
level 6
﹏凌゛ 楼主
2011年05月08日 16点05分 1
level 6
﹏凌゛ 楼主
自己做脚本~!
2011年05月08日 16点05分 3
level 6
﹏凌゛ 楼主
啊度一下
2011年05月08日 16点05分 5
level 10
我暗恋LZ这样的事情我会到处乱说吗
2011年05月08日 16点05分 6
level 6
﹏凌゛ 楼主
self.opacity = 0
      self.z = 1            
      refresh(0)
    end
    #--------------------------------------------------------------------------
    #--------------------------------------------------------------------------
    def refresh(current)
      self.contents.clear
      draw_counter_bar(0, 0, current)
    end
end
#==============================================================================
#     Window_KeyCount
#------------------------------------------------------------------------------
#  
#==============================================================================
class Window_KeyCount < Window_Base
    #--------------------------------------------------------------------------
    #--------------------------------------------------------------------------
    def initialize(key)
      super(0, 230, 180, 80)
      self.contents = Bitmap.new(width - 32, height - 32)
      self.opacity = 160     
      self.z = 0
      @key = key
      @key_count = 0
      refresh
    end
    #--------------------------------------------------------------------------
    #--------------------------------------------------------------------------
    def refresh
      self.contents.clear
      for i in [email protected]
        if @key.size > 4
          if @key_count >= 3
            x = (i-@key_count+2)*32
          else
            x = i *32
          end
        else        
          x = i * 32
        end
        if i < @key_count
          self.contents.font.color = knockout_color
          self.contents.font.size = 16
        elsif i== @key_count        
          self.contents.font.color = normal_color
          self.contents.font.size = 25
        else
          self.contents.font.color = disabled_color
          self.contents.font.size = 18
        end
        self.contents.draw_text(x, 0, 100, 32, Input.key_converter(@key[i]))
      end
    end
    #--------------------------------------------------------------------------
    #--------------------------------------------------------------------------
    def key_in
      @key_count += 1
      refresh
    end
    #--------------------------------------------------------------------------
    #--------------------------------------------------------------------------
    def text_in(text)
      self.contents.clear
      self.contents.font.size = 20
      self.contents.draw_text(0, 0, 130, 32, text, 1)
    end
end

2011年05月08日 16点05分 8
level 6
﹏凌゛ 楼主
[88]我了个神啊
2011年05月08日 16点05分 10
level 11
哇技术宅!
2011年05月08日 22点05分 12
level 9
=-=。
2011年05月08日 22点05分 13
level 6
楼主它妈昨天死了我会说吗T T默哀
2011年05月08日 22点05分 14
level 6
﹏凌゛ 楼主
回复14楼:
你昨天和你妈ML一夜我会说不
2011年05月09日 10点05分 15
1