Framerjs 更改状态时单击的按钮
当我单击屏幕1中的蓝色收藏夹按钮时,我想显示收藏夹列表(屏幕2),然后单击绿色收藏夹按钮进入屏幕3。但是,当我单击屏幕1中的收藏夹按钮时,我立即进入屏幕3。我该如何解决这个问题 ||----------屏幕1--------------------屏幕2----------屏幕3----------屏幕 代码Framerjs 更改状态时单击的按钮,framerjs,Framerjs,当我单击屏幕1中的蓝色收藏夹按钮时,我想显示收藏夹列表(屏幕2),然后单击绿色收藏夹按钮进入屏幕3。但是,当我单击屏幕1中的收藏夹按钮时,我立即进入屏幕3。我该如何解决这个问题 ||----------屏幕1--------------------屏幕2----------屏幕3----------屏幕 代码 #Show favorites page (Click blue favorites button) $.favoritesButton.on Events.Click, ->
#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")
状态“开”表示不透明度变为1,状态“默认”表示不透明度变为0。绿色收藏夹按钮2位于蓝色收藏夹按钮的顶部 解决了!我意识到我只需要移动绿色收藏夹按钮上方的蓝色收藏夹按钮
#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