protected HUDItem(Window win, string name, HUDBase root, HUDItem parent, List <HUDItem> children) { Win = win; Name = name; Root = root; Parent = parent; _children = children; }
public static void SetupUI() { hud = new HUDBase(win); win.MouseDown = new Action <OpenTK.Input.MouseButtonEventArgs>(ev => { hud.DoMouseDown(ev); }); win.MouseUp = new Action <OpenTK.Input.MouseButtonEventArgs>(ev => { hud.DoMouseUp(ev); }); win.KeyDown = new Action <OpenTK.Input.KeyboardKeyEventArgs>(ev => { if (ev.Key == OpenTK.Input.Key.Escape) { win.Close(); return; } hud.DoKeyDown(ev); }); win.KeyUp = new Action <OpenTK.Input.KeyboardKeyEventArgs>(ev => { hud.DoKeyUp(ev); }); win.MouseMove = new Action <OpenTK.Input.MouseMoveEventArgs>(ev => { }); cam = new Camera() { ncp = 0.01f, fcp = 1000.0f, fov = 90.0f }; HUDCameraController cameraRotater = new HUDCameraController("Camera Controller", hud); HUDGeom ge = new HUDGeom("Geometry Interface", hud); }
public EntityManager(HUDBase itemRoot) { item = new HUDItem("Entity Manager", itemRoot); }