纳金网
标题:
工具提示的问题
[打印本页]
作者:
may
时间:
2013-6-30 14:23
标题:
工具提示的问题
function OnGUI () {
if(Window0)
{
GUI.Window(0,Rect(0*ScaleWidth,50*ScaleHeight,80*ScaleWidth,500*ScaleHeight),doWindow0,"主菜單");
}
GUI.Label(Rect(100*ScaleWidth,100*ScaleHeight,500*ScaleWidth,200*ScaleHeight),GUI.tooltip);
}
function doWindow0 (windowid:int) {
if(GUI.Button(Rect(0*ScaleWidth,50*ScaleHeight,25*ScaleWidth,25*ScaleHeight),GUIContent("退出","退出程序")))
{
}
}
我想让doWindow0中的工具提示显示到 OnGUI中 如何实现呢?我上面的代码是把tooltip放进了OnGUI但没有效果的。
欢迎光临 纳金网 (http://go.narkii.com/club/)
Powered by Discuz! X2.5