Any idea why I can’t drag this window, or any GUI Window I’ve tried this with?
function DataTableWindow (windowID : int) {
GUI.Label (Rect (18, 22, 200, 20), "Delta t =");
dataTable13 = GUI.TextField (Rect (95, 25, 60, 16), dataTable13, 10, customMenu);
GUI.Label (Rect (160, 22, 200, 20), "sec");
GUI.Label (Rect (18, 42, 200, 20), "Puck Mass =");
dataTable14 = GUI.TextField (Rect (95, 45, 60, 16), dataTable14, 10, customMenu);
GUI.Label (Rect (160, 42, 200, 20), "kg");
GUI.Label (Rect (18, 62, 200, 20), "Theta =");
dataTable15 = GUI.TextField (Rect (95, 65, 60, 16), dataTable15, 10, customMenu);
GUI.Label (Rect (160, 62, 200, 20), "deg");
GUI.Label (Rect (18, 85, 200, 20), "Point");
GUI.Label (Rect (75, 85, 200, 20), "t (s)");
GUI.Label (Rect (140, 85, 200, 20), "x (m)");
var y = 105;
for (var i=0; i<13; i++){
GUI.Label (Rect (20, y, 30, 20), i.ToString());
dataTable11[i] = GUI.TextField (Rect (55, y, 60, 16), dataTable11[i], 10, customMenu);
dataTable12[i] = GUI.TextField (Rect (125, y, 60, 16), dataTable12[i], 10, customMenu);
y += 18;
}
if (GUI.Button (Rect (65,350,80,20), "Done")) {
for (var i : GameObject in gSparkGen) {
i.renderer.enabled = false;
}
Camera.main.transform.position = gCameraPositions[0];
Camera.main.transform.rotation.eulerAngles = gCameraRotations[0];
gCameraLoc = 0;
showTableWindow = false;
}
GUI.DragWindow();
}