- 注册时间
- 2011-2-13
- 最后登录
- 2014-5-13
③业余
- 积分
- 162
|
楼主 |
发表于 2013-11-6 17:01:37
|
显示全部楼层
已自行解決,原因是之前沒加入sf.tran來控制
在MainWindow.tjs的onPrimaryClick()
下面加入
if(sf.hide==true && sf.tran!=true)
{
sf.hide=false;
kag.process("hide.ks", "*hideout");
}
sf.hide=true代表已在hide.ks,可以進行離開
sf.tran=true代表轉場進行中
這樣一來不管怎麼點,都會因為sf.tran=true
而不會一直call進kag.process("hide.ks", "*hideout"); 造成錯誤
當然在hide.ks的*hide跟*hideout要適時對sf.hide跟sf.tran改值 |
|
|