5
我開始用鞋子編碼GUI。我試圖從例子中的進度條,但我發現沒有辦法退出動畫,break
沒有工作......Abort Rubys Shoes動畫
animate do |frames|
unless frames > 100
@p.fraction = (frames % 100)/100.0
else
break
end
end
是否有可能停止與鞋子動畫?謝謝。
什麼樣的價值觀不'i'穿過塊運行?它只能達到100? (因爲它是一個進度條而要求) –
'i'代表動畫完成的幀。現在改變了。 – Scott
沒有得到您的答案的電子郵件...謝謝! – Scott