12 第1页 | 共2 页下一页
返回列表 发新帖
查看: 3929|回复: 13
打印 上一主题 下一主题

[Anark] Selection Group (Interactive Behavior)

[复制链接]
Asen    

867

主题

0

听众

1万

积分

外协人员

Rank: 7Rank: 7Rank: 7

纳金币
17488
精华
1
跳转到指定楼层
楼主
发表于 2011-10-15 10:35:00 |只看该作者 |倒序浏览






               Selection Group (Interactive Behavior)
              









           Summary
         

           Provides exlusive selection for sets of objects.
         





               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.5 of the 'Selection Group' behavior, current as of 2005-Aug-04)
           

            Description
           


             Attach this behavior to objects (or groups) where you want to be able to ‘select’ only one of the objects at a time. Every object with this behavior that has the same
            
              Group Name
            
             set will be selected in a mutually-exclusive fashion. An object is selected by clicking on it, invoking the
            
              Selected
            
             action on the behavior, or using script to call the
            
              select()
            
             method of the object, or the
            
              selectParent()
            
             method of the behavior.
            

             When an object is selected, the behavior will fire the
            
              Selected
            
             event. When an object is deselected, it fires the
            
              Deselected
            
             event. (Both events will bubble up to the parent object, its parent, and so on all the way up to the scene.)
            

             You may have multiple sets of objects involved in selection groups; each set must have a unique
            
              Group Name
            
             .
            

             By default, the behavior needs to be attached to each object you want in the group. For convenience, you may attach this behavior to a parent group, and check the
            
              Apply to Children?
            
             flag. This will copy the behavior to every child object and group (but not descendants) at runtime. The downside of this convenience is that you cannot setup Studio actions to listen for a the
            
              Selected
            
             and
            
              Deselected
            
             events on specific child objects.
            

             If neither
            
              Scene in Group?
            
             or
            
              Allow Deselect?
            
             is checked, at least one object in the group must be selected at all time. The first object added to the group will be automatically selected.
            

             If
            
              Scene in Group?
            
             is checked, clicking on the background (or any other object which bubbles the onMouseDown event up the tree without cancelling it) will deselect all objects in the selection group.
            

             If
            
              Allow Deselect?
            
             is checked, clicking on the currently-selected object will deselect it.
            


            Basic Properties
           



              Group Name
            

              The name of the group (must be the same for all objects in the group).
            

              Use Selected Color?
            

              Change the object to another color when selected?
            

              Selected Color
            

              Color to use for the object when selected.
            



            Advanced Properties
           



              Scene in Group?
            

              Should clicking on the scene deselect all objects?
            

              Allow Deselect?
            

              Should clicking on the selected object deselect it?
            

              Apply to Children?
            

              Apply this to all child models/groups, instead of the parent?
            



            Actions
           



              Select Parent
            

              Selects the parent element.
            

              Deselect Parent
            

              Deselects the parent element (if 'Allow Deselect?' is checked).
            



            Events
           



              Selected
            

              Fires when the parent element is selected.
            

              Deselected
            

              Fires when the parent element is deselected.
            



            Demonstration
           




              View Demonstration Project
            




              Download Project File
            



分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

沙发
发表于 2012-2-28 23:31:25 |只看该作者
我无语!
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

板凳
发表于 2012-4-3 23:33:36 |只看该作者
此地無銀。。。
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

地板
发表于 2012-4-16 23:19:55 |只看该作者
很有心,部分已收录自用,谢谢
回复

使用道具 举报

462

主题

1

听众

31万

积分

首席设计师

Rank: 8Rank: 8

纳金币
2
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

5#
发表于 2012-4-30 23:19:43 |只看该作者
既来之,则看之!
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

6#
发表于 2012-6-19 23:18:03 |只看该作者
凡系斑竹滴话要听;凡系朋友滴帖要顶!
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

7#
发表于 2012-7-3 23:26:30 |只看该作者
加精、加亮滴铁子,尤其要多丁页丁页
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

8#
发表于 2012-8-24 23:24:27 |只看该作者
无聊时可以刷屏幕 灌水 也可以试试 帖子的标题究竟可以写多长
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

9#
发表于 2012-9-1 01:08:00 |只看该作者
读铁系缘分,顶铁系友情
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

10#
发表于 2013-1-5 20:59:32 |只看该作者
读铁系缘分,顶铁系友情
回复

使用道具 举报

12 第1页 | 共2 页下一页
返回列表 发新帖
您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2025-2-5 10:40 , Processed in 0.067524 second(s), 27 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部