纳金网

标题: Graduated Incrementor (Miscellaneous Behavior) [打印本页]

作者: Asen    时间: 2011-10-15 10:29
标题: Graduated Incrementor (Miscellaneous Behavior)






               Graduated Incrementor (Miscellaneous Behavior)
              









           Summary
         

           Controls any property of the parent object by a number of discrete steps.
         





               Category
              


              Latest Behaviors
            




               Author
              


              Gavin Kistner
            




               Difficulty
              


              (Reference)
            




               Time to Complete
              


              5 Minutes
            








           Downloads
         


            Click Here
           
           to download the associated files.
         


            (This document covers version 1.0.2 of the 'Graduated Incrementor' behavior, current as of 2005-Aug-04)
           

            Description
           


             This behavior mimics the feedback shown by the ‘volume’ indicator on most TVs. It allows you to move the value of a property between a minimum and maximum value over a discrete number of steps.
            

             This behavior only affects the property when the
            
              Increment
            
             or
            
              Decrement
            
             actions are invoked (either via an action in the Studio interface or by calling the
            
              increment()
            
             or
            
              decrement()
            
             methods of this behavior directly).
            

             When invoking either action, you may specify the number of steps to take; the default is one step.
            

             The
            
              Property Name
            
             parameter is evaluated as a child of the parent object. (For example, “scale.z” refers to z attribute of the scale property of the parent object to which this behavior is attached.)
            


            Basic Properties
           



              Property Name
            

              The property to increment.
            

              Min Value
            

              The minimum value which may be set for the property.
            

              Max Value
            

              The maximum value which may be set for the property.
            

              Total Steps
            

              The number of steps to take between the min and max values.
            



            Actions
           



              Increment
            

              Increment the property towards the Max Value by a number of steps.
            



                steps
               

                The number of steps to take
               



              Decrement
            

              Increment the property towards the Min Value by a number of steps.
            



                steps
               

                The number of steps to take
               





            Events
           



              Value Changed
            

              Fires whenever Increment or Decrement are called.
            



            Demonstration
           




              View Demonstration Project
            




              Download Project File
            




作者: 晃晃    时间: 2012-2-14 23:19
呵呵,很好,方便罗。

作者: C.R.CAN    时间: 2012-5-13 23:21
很有心,部分已收录自用,谢谢

作者: 奇    时间: 2012-7-11 23:26
提醒猪猪,千万不能让你看见

作者: tc    时间: 2012-9-27 23:21
谢谢楼主,真是太实用了

作者: 菜刀吻电线    时间: 2012-9-30 23:26
路过、路过、快到鸟,列位请继续...ing

作者: 菜刀吻电线    时间: 2012-10-2 23:18
加精、加亮滴铁子,尤其要多丁页丁页

作者: 菜刀吻电线    时间: 2012-12-1 23:25
再看一看,再顶楼主

作者: 晃晃    时间: 2013-2-15 23:32
跑着去顶朋友滴铁

作者: 菜刀吻电线    时间: 2013-2-16 23:33
百度的叫度娘,网易的叫易娘,新浪内部还在为是叫新娘还是浪娘而争论不休!……不管你们是企鹅的额娘,豆瓣的伴娘,还是华为的伪娘,都要记得,淘宝才是你们的亲娘啊!亲!!

作者: C.R.CAN    时间: 2013-2-28 23:20
我就看看,我不说话





欢迎光临 纳金网 (http://go.narkii.com/club/) Powered by Discuz! X2.5