10.13 Utility - Option Switch 选项开关


Control two or more states using an index (0, 1, 2...). For two states, use Switch. Useful for tracking a state that is one of multiple options (ex: tab bar). Often used with Option Picker to select from two or more options. Formerly known as Index Switch.
Right-click to add additional states.
See State Basics for more information.

使用索引(0,1,2 ...)控制两个或更多状态,用于需要在多个状态中选择一个的交互(如:标签栏)。只有两种状态一般用 [Switch] 模块。

Option Picker 模块一起使用,Option Picker 相当于升级版 Transition 模块,用来定义多个值。以前称为 **Index Switch索引开关 **。
右键增加更多状态(即左侧输入口的数量)。查看 基础 - 状态 了解更多信息。

输入口

Set to 0 接口1
A pulse that sets the Option Switch to option 0.
第一个交互连接到这里。

Set to 1 接口2
A pulse that sets the Option Switch to option 1.
第二个交互连接到这里。

Set to 2 接口3
A pulse that sets the Option Switch to option 2.
第三个交互连接到这里。

输出口

Option 输出
An index that represents the state of the Option Switch.
输出操作索引中的值。
板栗:连接到 Option Picker 模块的 Option 输入口。


Related Patches 相关模块

Switch,Counter,Option PickerOption Sender


Related Learn Content 教程

Timed Animations
Create time-based, automatic animations.

Multiple States 多个状态
Interact with more than just two states.
超过两个状态的交互。


Related Examples

Facebook Live Comments
Automatically add comments in a Facebook Live video stream.

Moments Onboarding
The original Moments app full onboarding flow.

Traffic Light
Transition across three or more states and include logic.


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Interact with more than just two states. 超过两个状态的交互。 We ha...
    刘板栗阅读 1,033评论 0 1
  • 关于position属性 总述 position有5种属性值,其中`inherit`表示从父元素继承positio...
    吴大仙_a5ae阅读 577评论 0 0
  • 等待小姑娘的心情就好像卖猪肉的壮汉在自家铺子门口眼巴巴瞅着别人送猪上门,望眼欲穿。13号是粉色的,很舒服,没那么少...
    花犯阅读 227评论 0 0
  • 趁着中午的空 和老公见面 看一看想买的大书架 买了雪碧和酸奶 等公交车的时候用硬币玩翻转游戏 咯咯笑 不亦乐乎 五...
    Iris1212阅读 178评论 0 0