2017-05-15 277 views
0

當我單擊屏幕1中的藍色收藏夾按鈕時,我想調出收藏夾列表(屏幕2),然後單擊綠色的收藏夾按鈕以轉至屏幕3.但是,當我點擊屏幕1中的收藏夾按鈕時,我立即轉到屏幕3.我該如何解決這個問題?更改狀態時單擊按鈕

|| ---------- Screen 1 ----------- || ------------ Screen 2 ---- ----- || -----------屏幕3 ----------- ||

enter image description hereenter image description hereenter image description here

代碼

#Show favorites page (Click blue favorites button) 
$.favoritesButton.on Events.Click, -> 
    #Show list of names 
    $.otherCellsClickFavPage.states.switch("on") 
    $.nameClickFavPage.states.switch("on") 
    $.checkClickFavPage.states.switch("on") 

    #Hide blue favorites button & show green favorites button 2 
    $.favoritesButton.states.switchInstant("default") 
    $.favoritesButton2.states.switch("on") 

#Send to all favorites (Click on the green favorites button 2) 
$.favoritesButton2.on Events.Click, -> 
    #Show Send to All Favorites Page 
    $.favoritesButtonSentToAllFav.states.switch("on") 
    $.sentMessageSentToAllFav.states.switch("on") 
    $.cellsSentToAllFav.states.switch("on") 

    #Hide green favorites button 2 & blue favorites button, so can show pink + white favorites button 
    $.favoritesButton2.states.switch("default") 
    $.favoritesButton.states.switch("default") 

「ON」 狀態的手段把不透明度爲1和狀態 「默認」 是指不透明度爲0的綠色收藏夾按鈕2之上藍色的收藏夾按鈕。

回答

0

解決!我意識到我只需要移動綠色「收藏夾」按鈕頂部的藍色收藏夾按鈕。

#Place Favorites button on top of favorites button 2 
$.favoritesButton.placeBefore($.favoritesButton2) 

#Show favorites page (Click favorites button) 
$.favoritesButton.on Events.Click, -> 
    #Show list of names 
    $.otherCellsClickFavPage.states.switch("on") 
    $.nameClickFavPage.states.switch("on") 
    $.checkClickFavPage.states.switch("on") 

    #Hide blue favorites button & show green favorites button 2 
    $.favoritesButton.states.switchInstant("default") 
    $.favoritesButton2.states.switch("on") 

    #Place Favorites button 2 on top of favorites button 
    $.favoritesButton2.placeBefore($.favoritesButton) 

#Send to ALL favorites (Click on the green favorites button 2) 
$.favoritesButton2.on Events.Click, -> 
    #Show Send to All Favorites Page 
    $.favoritesButtonSentToAllFav.states.switch("on") 
    $.sentMessageSentToAllFav.states.switch("on") 
    $.cellsSentToAllFav.states.switch("on") 

    #Hide green favorites button 2 & blue favorites button, so can show  pink + white favorites button 
    $.favoritesButton2.states.switch("off") 
    $.favoritesButton.states.switch("off") 

國家 「關」 的方式把不透明度爲0