纳金网
标题:
DAIKON FORGE怎么实现游戏按ESC弹出系统菜单
[打印本页]
作者:
tsjmq
时间:
2014-4-2 08:31
标题:
DAIKON FORGE怎么实现游戏按ESC弹出系统菜单
相当于怎么实现PANEL的消失和出现…
作者:
hyui
时间:
2014-4-2 13:53
It's better to read manual rather than ask here simple questions, or figure it out by yourself how to use search...
作者:
xx232
时间:
2014-4-2 14:15
http://www.narkii.com/club/thread-318972-1.html
看看这个吧 看完就基本会了 官方例子里也有怎么做
作者:
ppqq2001
时间:
2014-4-20 06:37
panel的Interative和Can focus 设置 true;
public void OnKeyDown(dfControl control, dfKeyEventArgs keyEvent)
{
// Add event handler code here
if (keyEvent.KeyCode==KeyCode.Escape)
{
//control.IsVisible = !control.IsVisible;
control.Opacity = control.Opacity == 0f ? 1f : 0f;
}
}
欢迎光临 纳金网 (http://old.narkii.com/club/)
Powered by Discuz! X2.5