Exemple #1
0
 public List<ObjectList> FlatUpdate(float elapsedSeconds, Input Input, Renderable node)
 {
     var mouse = Input.QueryAxis("primary");
     node.MouseHover = true;
         node.LocalMouseX = (int)(mouse.X - node.uiRoot.rect.X);
         node.LocalMouseY = (int)(mouse.Y - node.uiRoot.rect.Y);
     return Update(elapsedSeconds, Input, node);
 }
Exemple #2
0
 public List<ObjectList> Update(float elapsedSeconds, Input Input, Renderable guiNode)
 {
     var mousePressed = Input.Check("click");
     var events = new List<ObjectList>();
     guiNode.uiRoot.HandleMouseEx(guiNode.MouseHover, guiNode.LocalMouseX, guiNode.LocalMouseY, mousePressed,
        (olist) => { events.Add(olist); });
     guiNode.MouseHover = false;
     return events;
 }
Exemple #3
0
 public SceneNode(Renderable Renderable, Euler Euler = null)
 {
     this.Orientation = Euler;
     if (this.Orientation == null) this.Orientation = new Euler();
     this.Renderable = Renderable;
 }
Exemple #4
0
 public void DrawRenderable(Renderable renderable)
 {
     uiRenderer.Camera = renderable.uiCamera;
     uiRenderer.BeginScene(renderable.renderTarget);
     renderable.uiRoot.Render(uiRenderer);
 }