10.13 Utility - Option Switch 選項開關(guān)


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 ...)控制兩個或更多狀態(tài),用于需要在多個狀態(tài)中選擇一個的交互(如:標(biāo)簽欄)。只有兩種狀態(tài)一般用 [Switch] 模塊。

Option Picker 模塊一起使用,Option Picker 相當(dāng)于升級版 Transition 模塊,用來定義多個值。以前稱為 **Index Switch索引開關(guān) **。
右鍵增加更多狀態(tài)(即左側(cè)輸入口的數(shù)量)。查看 基礎(chǔ) - 狀態(tài) 了解更多信息。

輸入口

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 相關(guān)模塊

Switch,Counter,Option PickerOption Sender


Related Learn Content 教程

Timed Animations
Create time-based, automatic animations.

Multiple States 多個狀態(tài)
Interact with more than just two states.
超過兩個狀態(tài)的交互。


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.


最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容

  • Interact with more than just two states. 超過兩個狀態(tài)的交互。 We ha...
    劉板栗閱讀 1,043評論 0 1
  • 關(guān)于position屬性 總述 position有5種屬性值,其中`inherit`表示從父元素繼承positio...
    吳大仙_a5ae閱讀 591評論 0 0
  • 等待小姑娘的心情就好像賣豬肉的壯漢在自家鋪子門口眼巴巴瞅著別人送豬上門,望眼欲穿。13號是粉色的,很舒服,沒那么少...
    花犯閱讀 227評論 0 0
  • 趁著中午的空 和老公見面 看一看想買的大書架 買了雪碧和酸奶 等公交車的時候用硬幣玩翻轉(zhuǎn)游戲 咯咯笑 不亦樂乎 五...
    Iris1212閱讀 180評論 0 0