Ejemplo n.º 1
0
 protected HUDItem(Window win, string name, HUDBase root, HUDItem parent, List <HUDItem> children)
 {
     Win       = win;
     Name      = name;
     Root      = root;
     Parent    = parent;
     _children = children;
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public EntityManager(HUDBase itemRoot)
 {
     item = new HUDItem("Entity Manager", itemRoot);
 }